Re: Thumb index (was: thumb register)

Bernhard Kleine <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
I found "thumb index" only after I had send the mail. Sorry for the
confusion.

This looks very promising. I was thinking not about the index of two
chapters at the same position, but on different position from Chap1 down
to Chap10 and then restarting on the top to 21 and so an.

Any solution to this. As I am using xml, but not programming it, I would
like ready made solutions.

Credits for this would be published in the boook.

Regards Bernhard

Am 20.07.2020 um 12:21 schrieb Jirka Kosek:
> 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>
>
>
-- 
spitzhalde9
D-79853 lenzkirch
[email protected]
www.b-kleine.com, www.urseetal.net
Ich darf auch auf mein neues Buch "Falter in Lenzkirch" aufmerksam machen 
(Infos bei mir)
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEI0BAafaAN33JqgXb0KhbIOwMGQ8FAl8VvaYACgkQ0KhbIOwM
GQ9Rmw//VVl/XhTxZNW52MWH5+J6po4pCLD3T5Mvc1z072rHoR6RaHXs2AwYDYxs
Tc/dRKdKGnFIasG5BytIKHE14A2tltPzcDSDp019KgI6RWvXscAXt/D8KfVHgxLI
v3omQxM4zvFjlgisoljE+tkLmcVddMpdEILmJRnqG+u2arllHA0o4tdeMrimJuhc
Jr/oT5qrcki6bqGpOZFCCccgD7jDdx01XYjhdXv4y1pOX54rtSBwKgdrM29KoXZM
A0iRrLyoKVVQvmOZ7cxU6F28ozDUHrADIjY6ddi/vM2PT/VYDqf0Wqo2lvbFIDZB
7FWrAIXGF2Ei0f7kQyAmc5oGH9EES93WGR04uyM1WXFwqRmXpS1usoLQPKG5cND4
RmZBzR5cuMy9mXOE5PQZ8eSPK2PlzCnY8no5A4okPgSZ3BrT6qXA+PHZ25jx7IPz
qJ5W9/zTzvgdL1VcaYLBgJTnH4NSFjeJKMBysD2jlYtrBhnI9cmGQdRQqJQvMSCf
EvYjg75jLOc+kOdQhR3oO3qvghUU/Rnsse5E4tzbIMKPSSi4KIERiW0Qtw628MpC
aggXaK9+YqJq0m83Kg0FXy7Od21lRhQoBjP1Spzow1pejThnoYt5h77ciKiTLPpy
uaCBwC8MvoZA4gcdne2cuC/Qn/jDKddfDeZzJTYE67dFjJSYZGY=
=IqtM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.