[OS X TeX] Different printouts of one document by one click?

Friedrich Vosberg vatolin at mac.com
Wed Sep 21 10:27:59 CEST 2005


Morning.

This ist a document I want to printout in three versions (without watermark, with watermark COPY and with watermark ATTESTED COPY:

===== 8>< =====
\documentclass{ltxdoc}
\usepackage{eso-pic}
\usepackage{color}
\usepackage{graphicx}
\usepackage{xspace}

\ifcase\modus\or
\AddToShipoutPicture{%
	\AtTextCenter{%
	\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
	\rotatebox{50}{\textcolor[gray]{0.8}{COPY}}%
	}}}}
	\or
\usepackage{xspace}
	\AddToShipoutPicture{%
	\AtTextCenter{%
	\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
	\rotatebox{50}{\textcolor[gray]{0.8}{ATTESTED COPY}}%
	}}}}%
\fi

\begin{document}
Text
\end{document}
===== ><8 =====

I typeset the different versions of that document using Terminal.app and input

    pdflatex '\def\modus{0} \input <filename>' 
or 
    pdflatex '\def\modus{1} \input <filename>' 
or 
    pdflatex '\def\modus{2} \input <filename>'

How can I typeset such documents in modus 1, 2 or 3 by »one click« using the TeXShop interface?

Thanks in advance and kind regards
Friedrich
------------------------- 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