more of eo

This commit is contained in:
Frédéric Péters 2012-05-09 22:16:15 +02:00
parent d86e0e6797
commit 51c043d736
2 changed files with 39 additions and 12 deletions

View File

@ -119,6 +119,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
<xsl:apply-templates mode="mal2latex.inline.mode"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="@type='topic'"> (page \pageref{<xsl:value-of select="@xref"/>})</xsl:if>
</xsl:template>
<xsl:template mode="mal2latex.inline.mode" match="mal:span">

View File

@ -137,7 +137,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
\usepackage{fullpage}
\usepackage{float}
\usepackage[french]{babel}
\PrerenderUnicode{éàê}
\PrerenderUnicode{éàêë}
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{bookman}
@ -148,6 +148,10 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
\definecolor{grayback}{RGB}{</xsl:text><xsl:value-of select="$gray_background"/><xsl:text>}
\definecolor{yellowback}{RGB}{</xsl:text><xsl:value-of select="$yellow_background"/><xsl:text>}
\definecolor{yellowborder}{RGB}{</xsl:text><xsl:value-of select="$yellow_border"/><xsl:text>}
\definecolor{eopink}{rgb}{0.92,0.0,0.55}
\definecolor{eoblue}{rgb}{0.22,0.65,0.86}
\setlength{\parindent}{0in}
\setlength{\parskip}{1em}
\newenvironment{malexample}%
@ -194,13 +198,13 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
\reset@font
\null\vfil
\begin{flushleft}
\huge \@title
\color{eopink} \huge\bfseries \@title
\end{flushleft}
\par
\hrule height 1pt
\par
\begin{flushright}
\LARGE \@author \par
\color{eopink} \LARGE \@author \par
\end{flushright}
\vskip 60\p@
\vfil\null
@ -220,6 +224,22 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
\ifthenelse{\equal{#1}{}}{\marginpar{\vskip 3pt \includegraphics{note}}}{}
}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\addtocontents{toc}{\protect\thispagestyle{fancy}}
\fancyhead{}
\fancyfoot{}
\fancyfoot[RO, LE] {Page \thepage sur \pageref*{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\titleformat{\section}[block]{\color{eopink}\Large\bfseries\filcenter}{}{1em}{}
\titleformat{\subsection}[hang]{\color{eopink}\Large\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}[hang]{\color{eopink}\large\bfseries}{XX: \thesubsubsection}{1em}{}
\newcommand{\sectionbreak}{\clearpage}
\makeatother
@ -246,7 +266,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
</xsl:variable>
<xsl:text>\documentclass[a4paper,11pt]{article}&#x000A;</xsl:text>
<xsl:call-template name="sty"/>
<xsl:text>\usepackage[colorlinks=true,linkcolor=blue,pdftitle={</xsl:text>
<xsl:text>\usepackage[colorlinks=true,linkcolor=eoblue,pdftitle={</xsl:text>
<xsl:value-of select="$title"/>
<xsl:text>},pdfauthor={</xsl:text>
<xsl:value-of select="$author"/>
@ -276,25 +296,31 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
</xsl:choose>
<xsl:value-of select="mal:title"/>
<xsl:text>}&#x000A;</xsl:text>
<xsl:text>\label{</xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>}&#x000A;</xsl:text>
<xsl:apply-templates mode="mal2latex.block.mode"
select="*[not(self::mal:info or self::mal:title or self::mal:subtitle or self::mal:section)]"/>
<xsl:apply-templates select="mal:section"/>
<xsl:apply-templates select="mal:section">
<xsl:with-param name="depth" select="$depth"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="mal:section">
<xsl:param name="depth">-1</xsl:param>
<xsl:choose>
<xsl:when test="count(ancestor::mal:section) = 0">
<xsl:text>\subsection*{</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>\subsubsection*{</xsl:text>
</xsl:otherwise>
<xsl:when test="$depth+count(ancestor::mal:section) = 1"><xsl:text>\subsection*{</xsl:text></xsl:when>
<xsl:when test="$depth+count(ancestor::mal:section) = 2"><xsl:text>\subsubsection*{</xsl:text></xsl:when>
<xsl:when test="$depth+count(ancestor::mal:section) = 3"><xsl:text>\paragraph{</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>\textsc{</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="mal:title"/>
<xsl:text>}&#x000A;</xsl:text>
<xsl:apply-templates mode="mal2latex.block.mode"
select="*[not(self::mal:info or self::mal:title or self::mal:subtitle or self::mal:section)]"/>
<xsl:apply-templates select="mal:section"/>
<xsl:apply-templates select="mal:section">
<xsl:with-param name="depth" select="$depth"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template name="mal.sort.tsort">