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.

Attachment: draftfail.dbk
Description: Binary data

--- /usr/share/texmf/tex/latex/dblatex/style/docbook.sty	2010-04-05 02:07:53.000000000 +0200
+++ /usr/share/texmf/tex/latex/dblatex/style/docbook.sty.patched	2011-06-07 12:09:05.328646429 +0200
@@ -89,8 +89,20 @@
   }}
 }
 \else
+\ifxetex
+\usepackage{pdfpages}
+\usepackage{color}
+\def\showwatermark#1{%
+  \AddToShipoutPicture{
+  \AtTextCenter{%
+  \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
+  \rotatebox{45}{\textsf{\textbf{\color[gray]{0.8}#1}}}}}%
+  }}
+}
+\else
 \def\showwatermark#1{}%
 \fi
+\fi
 
 % ##############################################################################
 % ### Page Parameters

Reply via email to