Your message dated Wed, 06 Jul 2011 20:10:00 +0200
with message-id <22057.1309975800@manetheren>
has caused the   report #629514,
regarding dblatex: fails to set draft watermark with xetex backend
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.)


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

I want to inform you of Debian BTS report #629514 [1]:

W. Martin Borgert <[email protected]> wrote:

> Package: dblatex
> Version: 0.3-2
> Tags: patch
>
> The following command results in a document without draft
> watermark:
>
> dblatex --backend=xetex --param=draft.mode=yes draftfail.dbk
>
> The attached patch works for me, but might be not the right
> way to fix the problem.

You may note that I have adapted Wolfgangs patch suggestion (thanks!)
slightly [2]:
- reduce code redundancy
- extend patch to db2latex style

If would ask you to review it, on positive reply I intend to integrate
it into the upcoming Debian dblatex release 0.3.2-1.

[1] http://bugs.debian.org/629514
[2] 
Author: "W. Martin Borgert" <[email protected]>, Andreas Hoenen 
<[email protected]>
Description: Hotfix for BTS report #629514:
In draft mode set draft watermark for XeTeX backend, too.
--- a/latex/style/docbook.sty
+++ b/latex/style/docbook.sty
@@ -78,19 +78,17 @@
 
 % Display ``DRAFT'' as a water mark:
 \usepackage{ifpdf}
-\ifpdf
-\usepackage{pdfpages}
-\usepackage{color}
-\def\showwatermark#1{%
-  \AddToShipoutPicture{
-  \AtTextCenter{%
-  \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
-  \rotatebox{45}{\textsf{\textbf{\color[gray]{0.8}#1}}}}}%
-  }}
+\ifthenelse{\boolean{pdf}\OR\boolean{xetex}}{
+  \usepackage{pdfpages}
+  \usepackage{color}
+  \def\showwatermark#1{%
+    \AddToShipoutPicture{
+      \AtTextCenter{%
+        \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
+            \rotatebox{45}{\textsf{\textbf{\color[gray]{0.8}#1}}}}}%
+}}}}{
+  \def\showwatermark#1{}
 }
-\else
-\def\showwatermark#1{}%
-\fi
 
 % 
##############################################################################
 % ### Page Parameters
--- a/latex/contrib/db2latex/db2latex.sty
+++ b/latex/contrib/db2latex/db2latex.sty
@@ -92,19 +92,17 @@
 
 % Display ``DRAFT'' as a water mark:
 \usepackage{ifpdf}
-\ifpdf
-\usepackage{pdfpages}
-\usepackage{color}
-\def\showwatermark#1{%
-  \AddToShipoutPicture{
-  \AtTextCenter{%
-  \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
-  \rotatebox{45}{\textsf{\textbf{\color[gray]{0.8}#1}}}}}%
-  }}
+\ifthenelse{\boolean{pdf}\OR\boolean{xetex}}{
+  \usepackage{pdfpages}
+  \usepackage{color}
+  \def\showwatermark#1{%
+    \AddToShipoutPicture{
+      \AtTextCenter{%
+        \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
+            \rotatebox{45}{\textsf{\textbf{\color[gray]{0.8}#1}}}}}%
+}}}}{
+  \def\showwatermark#1{}
 }
-\else
-\def\showwatermark#1{}%
-\fi
 
 % --------------------------
 % Title and Bookinfo display
Regards, Andreas
-- 
Andreas Hoenen <[email protected]>
GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE

Attachment: pgpRNunTLgKiv.pgp
Description: PGP signature


--- End Message ---

Reply via email to