diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-03-26 19:21:20 +0000 |
---|---|---|
committer | <> | 2014-05-08 15:03:54 +0000 |
commit | fb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch) | |
tree | c2103d76aec5f1f10892cd1d3a38e24f665ae5db /doc/manual/docbook2latex.xsl | |
parent | 58ed4748338f9466599adfc8a9171280ed99e23f (diff) | |
download | VirtualBox-master.tar.gz |
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'doc/manual/docbook2latex.xsl')
-rw-r--r-- | doc/manual/docbook2latex.xsl | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/doc/manual/docbook2latex.xsl b/doc/manual/docbook2latex.xsl index 7aaf730f..07045ef6 100644 --- a/doc/manual/docbook2latex.xsl +++ b/doc/manual/docbook2latex.xsl @@ -85,6 +85,7 @@ <xsl:output method="text"/> <xsl:strip-space elements="*"/> + <xsl:preserve-space elements="para"/> <xsl:template match="/book"> <xsl:text> @@ -99,6 +100,7 @@ a4paper, colorlinks=true, linkcolor=blue, + urlcolor=darkgreen, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=0, @@ -113,6 +115,7 @@ \usepackage{fancyvrb} \usepackage{alltt} \usepackage{color} +\definecolor{darkgreen}{rgb}{0,0.6,0} </xsl:text> <xsl:if test="$TARGETLANG='de_DE'">\usepackage[ngerman]{babel} \PrerenderUnicode{ΓΌ}</xsl:if> @@ -236,7 +239,14 @@ {\fontsize{16pt}{20pt}\selectfont\rmfamily% \begin{center} -\docbooktitleedition +</xsl:text> + <xsl:if test="//bookinfo/othercredit"> + <xsl:text>\docbookbookinfoothercreditcontrib{}: \docbookbookinfoothercreditfirstname{} \docbookbookinfoothercreditsurname + +\vspace{8mm} +</xsl:text> + </xsl:if> + <xsl:text>\docbooktitleedition \vspace{2mm} @@ -313,7 +323,7 @@ <xsl:text>}</xsl:text> </xsl:when> </xsl:choose> - <xsl:variable name="refid" select="(@id) | (../@id)" /> + <xsl:variable name="refid" select="../@id" /> <xsl:if test="$refid"> <xsl:value-of select="concat('
\label{', $refid, '}')" /> </xsl:if> @@ -370,6 +380,36 @@ </xsl:choose> </xsl:template> + <xsl:template match="firstname"> + <xsl:choose> + <xsl:when test="name(..)='othercredit'"> + <xsl:text>\newcommand\docbookbookinfoothercreditfirstname{</xsl:text> + <xsl:apply-templates /> + <xsl:text>}
</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="surname"> + <xsl:choose> + <xsl:when test="name(..)='othercredit'"> + <xsl:text>\newcommand\docbookbookinfoothercreditsurname{</xsl:text> + <xsl:apply-templates /> + <xsl:text>}
</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="contrib"> + <xsl:choose> + <xsl:when test="name(..)='othercredit'"> + <xsl:text>\newcommand\docbookbookinfoothercreditcontrib{</xsl:text> + <xsl:apply-templates /> + <xsl:text>}
</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:template> + <xsl:template match="glossary"> <xsl:text>

\backmatter
\chapter{Glossary}
</xsl:text> <xsl:apply-templates /> |