VirtualBox

Changeset 96834 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Sep 22, 2022 8:38:30 PM (2 years ago)
Author:
vboxsync
Message:

doc/manual/docbook2latex.xsl: Improve frontmatter handling, eliminating the need to get the role hint. Also gets the page numbering right for the table of contents.

File:
1 edited

Legend:

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

    r96615 r96834  
    232232
    233233\begin{document}
     234\frontmatter
    234235% bird/2018-05-14: Use sloppypar so we don't push path names and other long words
    235236%                  thru the right margin.  TODO: Find better solution? microtype?
     
    340341
    341342    <xsl:call-template name="xsltprocNewlineOutputHack"/>
    342     <xsl:if test="$texcmd='\chapter' and $role='frontmatter'">
    343       <xsl:text>\frontmatter&#x0a;</xsl:text>
    344     </xsl:if>
    345     <xsl:if test="$texcmd='\chapter' and ../preceding-sibling::*[1][@role='frontmatter']">
     343    <xsl:if test="$texcmd='\chapter' and name(../preceding-sibling::*[1])='preface'">
    346344      <xsl:text>\mainmatter&#x0a;</xsl:text>
    347345    </xsl:if>
     
    384382        <xsl:call-template name="title-wrapper">
    385383          <xsl:with-param name="texcmd">\chapter</xsl:with-param>
    386         </xsl:call-template>
    387       </xsl:when>
    388       <xsl:when test="name(..)='sect1' and ../../@role='frontmatter'">
    389         <xsl:call-template name="title-wrapper">
    390           <xsl:with-param name="texcmd">\section*</xsl:with-param>
    391384        </xsl:call-template>
    392385      </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