Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit270fec9

Browse files
committed
doc: Improve PDF bookmarks
Also create PDF bookmarks/ToC entries for subsections of referencepages. This was a regression from the previous jadetex-based build.Reported-by: Erik Rijkers <er@xs4all.nl>
1 parent4867d7f commit270fec9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

‎doc/src/sgml/stylesheet-fo.xsl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,28 @@
7070
<xsl:apply-templatesmode="no.anchor.mode"/>
7171
</xsl:template>
7272

73+
<!-- include refsects in PDF bookmarks
74+
(https://github.com/docbook/xslt10-stylesheets/issues/46)-->
75+
76+
<xsl:templatematch="refsect1|refsect2|refsect3"
77+
mode="bookmark">
78+
79+
<xsl:variablename="id">
80+
<xsl:call-templatename="object.id"/>
81+
</xsl:variable>
82+
<xsl:variablename="bookmark-label">
83+
<xsl:apply-templatesselect="."mode="object.title.markup"/>
84+
</xsl:variable>
85+
86+
<fo:bookmarkinternal-destination="{$id}">
87+
<xsl:attributename="starting-state">
88+
<xsl:value-ofselect="$bookmarks.state"/>
89+
</xsl:attribute>
90+
<fo:bookmark-title>
91+
<xsl:value-ofselect="normalize-space($bookmark-label)"/>
92+
</fo:bookmark-title>
93+
<xsl:apply-templatesselect="*"mode="bookmark"/>
94+
</fo:bookmark>
95+
</xsl:template>
96+
7397
</xsl:stylesheet>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp