--- Begin Message ---
Petter Reinholdtsen <[email protected]> wrote:
> Any idea how to adjust dblatex to work more like this?
Thanks for your investigations how to solve this in TeX. The attached
patch [1] should integrate your solution into dblatex. Please note that
it's based on the current version 0.3.4-1, stable is only allowed to get
security fixes.
The only location where the difference can be observed is in the
document structure on the left side of the xpdf window, right?
[1]
Author: Andreas Hoenen <[email protected]>
Description: Hotfix for BTS report #683166:
In the PDF document structure don't include chapters after a book part
in the part.
--- a/xsl/part.xsl
+++ b/xsl/part.xsl
@@ -11,6 +11,7 @@
<xsl:text>% </xsl:text>
<xsl:call-template name="mapheading"/>
<xsl:apply-templates/>
+ <xsl:text>% \bookmarksetup{startatroot} </xsl:text>
</xsl:template>
<xsl:template match="part/docinfo"/>
--- a/latex/style/dbk_hyper.sty
+++ b/latex/style/dbk_hyper.sty
@@ -14,17 +14,20 @@
\def\hyperparamadd{}
}{}
\ifpdf
- \usepackage[pdftex,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
+ \usepackage{bookmark,hyperref}
+ \csname hypersetup{pdftex,plainpages=false,\hyperparam,\hyperparamadd}\endcsname
\def\hyperlabel#1{\hypertarget{#1}{}}
\else\ifxetex
- \usepackage[xetex,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
+ \usepackage{bookmark,hyperref}
+ \csname hypersetup{xetex,plainpages=false,\hyperparam,\hyperparamadd}\endcsname
\def\hyperlabel#1{\hypertarget{#1}{}}
\else
- \usepackage[dvips,plainpages=false,\hyperparam,\hyperparamadd]{hyperref}
+ \usepackage{bookmark,hyperref}
+ \csname hypersetup{dvips,plainpages=false,\hyperparam,\hyperparamadd}\endcsname
\def\hyperlabel#1{\Hy@raisedlink{\hyper@anchorstart{#1}\hyper@anchorend}}
\fi\fi
}{
- \usepackage{hyperref}
+ \usepackage{bookmark,hyperref}
\def\hyperlabel#1{}
}
Regards, Andreas
--
Andreas Hoenen <[email protected]>
GPG: 1024D/B888D2CE
A4A6 E8B5 593A E89B 496B
82F0 728D 8B7E B888 D2CE
pgpEdkfMIxJWh.pgp
Description: PGP signature
--- End Message ---