Your message dated Fri, 03 Aug 2012 20:28:50 +0200
with message-id <22125.1344018530@manetheren>
has caused the   report #683166,
regarding dblatex: Creating parts also when it should not
to be marked as having been forwarded to the upstream software
author(s) Benoit Guillon <[email protected]>

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
683166: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683166
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Hi BenoƮt,

could you please review a patch suggestion [1] for Debian BTS report
#683166 [2], which has also been sent by the reporter, Petter
Reinholdtsen, to the Sourceforge tracker as #3553962 [3]?  It is based
on Petter's research how to solve this in TeX.

[1] 
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=30;filename=20_chapter_after_part.patch;att=1;bug=683166
[2] http://bugs.debian.org/683166
[3] 
http://sourceforge.net/tracker/?func=detail&aid=3553962&group_id=72607&atid=535062

Regards, Andreas
-- 
Andreas Hoenen <[email protected]>
GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE

--- 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>%&#10;</xsl:text>
   <xsl:call-template name="mapheading"/>
   <xsl:apply-templates/>
+  <xsl:text>%&#10;\bookmarksetup{startatroot}&#10;</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

Attachment: pgpEdkfMIxJWh.pgp
Description: PGP signature


--- End Message ---

Attachment: pgpn6rpqScGkZ.pgp
Description: PGP signature


--- End Message ---

Reply via email to