VirtualBox

Changeset 49487 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Nov 14, 2013 6:11:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90640
Message:

doc/manual/docbook2latex.xsl: add support for othercredit tag and the relevant sub-tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook2latex.xsl

    r46207 r49487  
    240240{\fontsize{16pt}{20pt}\selectfont\rmfamily%
    241241\begin{center}
    242 \docbooktitleedition
     242</xsl:text>
     243    <xsl:if test="//bookinfo/othercredit">
     244      <xsl:text>\docbookbookinfoothercreditcontrib{}: \docbookbookinfoothercreditfirstname{} \docbookbookinfoothercreditsurname
     245
     246\vspace{8mm}
     247</xsl:text>
     248    </xsl:if>
     249    <xsl:text>\docbooktitleedition
    243250
    244251\vspace{2mm}
     
    368375      <xsl:when test="name(..)='copyright'">
    369376        <xsl:text>\newcommand\docbookbookinfocopyrightholder{</xsl:text>
     377        <xsl:apply-templates />
     378        <xsl:text>}&#x0a;</xsl:text>
     379      </xsl:when>
     380    </xsl:choose>
     381  </xsl:template>
     382
     383  <xsl:template match="firstname">
     384    <xsl:choose>
     385      <xsl:when test="name(..)='othercredit'">
     386        <xsl:text>\newcommand\docbookbookinfoothercreditfirstname{</xsl:text>
     387        <xsl:apply-templates />
     388        <xsl:text>}&#x0a;</xsl:text>
     389      </xsl:when>
     390    </xsl:choose>
     391  </xsl:template>
     392
     393  <xsl:template match="surname">
     394    <xsl:choose>
     395      <xsl:when test="name(..)='othercredit'">
     396        <xsl:text>\newcommand\docbookbookinfoothercreditsurname{</xsl:text>
     397        <xsl:apply-templates />
     398        <xsl:text>}&#x0a;</xsl:text>
     399      </xsl:when>
     400    </xsl:choose>
     401  </xsl:template>
     402
     403  <xsl:template match="contrib">
     404    <xsl:choose>
     405      <xsl:when test="name(..)='othercredit'">
     406        <xsl:text>\newcommand\docbookbookinfoothercreditcontrib{</xsl:text>
    370407        <xsl:apply-templates />
    371408        <xsl:text>}&#x0a;</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette