VirtualBox

Changeset 56469 in vbox for trunk/doc


Ignore:
Timestamp:
Jun 17, 2015 8:33:10 AM (9 years ago)
Author:
vboxsync
Message:

docbook2latex.xsl: new section tricks.

File:
1 edited

Legend:

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

    r56466 r56469  
    329329        </xsl:call-template>
    330330      </xsl:when>
     331      <xsl:when test="parent::sect2[@condition='no-toc'] or parent::refsect1 or (parent::section and count(ancestor::section) = 2)">
     332        <xsl:call-template name="title-wrapper">
     333          <xsl:with-param name="texcmd">\subsection*</xsl:with-param>
     334        </xsl:call-template>
     335      </xsl:when>
    331336      <xsl:when test="name(..)='sect2'">
    332337        <xsl:call-template name="title-wrapper">
     
    334339        </xsl:call-template>
    335340      </xsl:when>
     341      <xsl:when test="parent::sect3[@condition='no-toc'] or parent::refsect2 or (parent::section and count(ancestor::section) = 3)">
     342        <xsl:call-template name="title-wrapper">
     343          <xsl:with-param name="texcmd">\subsubsection*</xsl:with-param>
     344        </xsl:call-template>
     345      </xsl:when>
    336346      <xsl:when test="name(..)='sect3'">
    337347        <xsl:call-template name="title-wrapper">
     
    339349        </xsl:call-template>
    340350      </xsl:when>
     351      <xsl:when test="parent::sect4[@condition='no-toc'] or parent::refsect3 or (parent::section and count(ancestor::section) = 4)">
     352        <xsl:call-template name="title-wrapper">
     353          <xsl:with-param name="texcmd">\paragraph*</xsl:with-param>
     354        </xsl:call-template>
     355      </xsl:when>
    341356      <xsl:when test="name(..)='sect4'">
    342357        <xsl:call-template name="title-wrapper">
     
    344359        </xsl:call-template>
    345360      </xsl:when>
     361      <xsl:when test="parent::sect5[@condition='no-toc'] or parent::refsect4 or (parent::section and count(ancestor::section) = 5)">
     362        <xsl:call-template name="title-wrapper">
     363          <xsl:with-param name="texcmd">\subparagraph*</xsl:with-param>
     364        </xsl:call-template>
     365      </xsl:when>
    346366      <xsl:when test="name(..)='sect5'">
    347367        <xsl:call-template name="title-wrapper">
    348368          <xsl:with-param name="texcmd">\subparagraph</xsl:with-param>
    349         </xsl:call-template>
    350       </xsl:when>
    351       <xsl:when test="name(..)='refsect1'">
    352         <xsl:call-template name="title-wrapper">
    353           <xsl:with-param name="texcmd">\subsection*</xsl:with-param>
    354         </xsl:call-template>
    355       </xsl:when>
    356       <xsl:when test="name(..)='refsect2'">
    357         <xsl:call-template name="title-wrapper">
    358           <xsl:with-param name="texcmd">\subsubsection*</xsl:with-param>
    359369        </xsl:call-template>
    360370      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.

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