[OS X TeX] an engine that produces three different PDF files at one run

Friedrich Vosberg vatolin at mac.com
Tue Aug 15 21:50:26 CEST 2006


Morning.

I have written a package that produces PDF output files with  
watermarks depending on an input during the LaTeX run. Here is an  
minimal example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{ltxdoc}
\usepackage{eso-pic}
\usepackage{graphicx}
%%-------------------------------------------------------------
\makeatletter
\InputIfFileExists{modus.tex}{}{%
   \typein[\modus]{Insert the watermark:}
   \begingroup
     \immediate\openout\@unused=modus.tex
     \immediate\write\@unused{\string\def\string\modus{\modus}}%
     \immediate\closeout\@unused
   \endgroup
}
\makeatother
%%-------------------------------------------------------------
\AddToShipoutPicture{%
   \AtTextCenter{%
     \makebox(0,0)[c]{%
       \resizebox{\textwidth}{!}{%
         \textcolor[gray]{0.8}{\modus}%
       }%
     }%
   }%
}%
%%-------------------------------------------------------------
\begin{document}
foobar
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I want to get for instance three different PDF files at one LaTeX run  
if I insert »triple«: One PDF file with no watermark, one file with  
the watermark COPY and one file with the watermark CERTIFIED. How can  
I get this?

TIA and kind regards. Friedrich




--
»The day Microsoft makes something that doesn't suck is probably the  
day they start making vacuum cleaners.« (Ernest Jan Plugge)



------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list