On 19.7.2020 19:13, Bernhard Kleine wrote:
> I have used a thumb register in a book produced with LaTeX. That was
> fairly straight forward. I wonder whether this is also possible with
> docbook -> PDF. Is there a solution already?

I suppose your are using FO based output of DocBook XSLT 1.0
stylesheets. It depends on what you want to display in thumb index, but
if you will put the following code into existing footer.table named
template you will get chapter number and title in the thumb index (see
https://books.google.cz/books?id=x93yCgAAQBAJ&lpg=PA1&dq=big%20data%20a%20nosql%20datab%C3%A1ze&pg=PA21#v=onepage&q=big%20data%20a%20nosql%20datab%C3%A1ze&f=false
for preview):

  <xsl:if test="($sequence = 'odd' or $sequence = 'first') and
$pageclass != 'lot' and not(self::d:book) and not(self::d:part)">
    <fo:block-container absolute-position="fixed"
reference-orientation="90" width="28mm" height="16mm"
                        left="150mm" background-color="#A0A0A0"
font-size="8pt" font-weight="bold"
                        font-family="{$title.font.family}"
text-align="center" color="black" padding="2mm" hyphenate="false">
      <xsl:attribute name="top">
        <xsl:value-of select="(count(preceding::d:chapter |
preceding::d:appendix | preceding::d:preface |
preceding::d:bibliography) mod 7) * 28 + 18"/>
        <xsl:text>mm</xsl:text>
      </xsl:attribute>
      <fo:block>
        <xsl:variable name="label">
          <xsl:apply-templates select="." mode="label.markup"/>
        </xsl:variable>
        <xsl:if test="$label != ''">
          <xsl:copy-of select="$label"/>
          <xsl:text>. </xsl:text>
        </xsl:if>
        <xsl:apply-templates select="." mode="titleabbrev.markup">
          <xsl:with-param name="allow-anchors" select="0"/>
        </xsl:apply-templates>
      </fo:block>
    </fo:block-container>
  </xsl:if>


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to