summaryrefslogtreecommitdiff
path: root/doc/manual/docbook2latex.xsl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /doc/manual/docbook2latex.xsl
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-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.xsl44
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}&#10;\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('&#x0a;\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>}&#x0a;</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>}&#x0a;</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>}&#x0a;</xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
<xsl:template match="glossary">
<xsl:text>&#x0a;&#x0a;\backmatter&#x0a;\chapter{Glossary}&#x0a;</xsl:text>
<xsl:apply-templates />