[OS X TeX] Different printouts of one document by one click?
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Wed Sep 21 08:25:29 EDT 2005
You have to use Applescripts, e.g., a modification my Applescript
pdflatxc which is offered in TS. The crucial command is
set shellScript to "cd " & dirName & ";"
set shellScript to shellScript & "~/Library/TeXShop/bin/pdflatexc "
& baseName
do shell script shellScript
replace this by
set shellScript to "cd " & dirName & ";"
set shellScript to shellScript & "~/Library/TeXShop/bin/pdflatexc "
&"\def\modus{1} \input "& baseName
do shell script shellScript
Then create as many versions with different modi as you need. These
versions can be activated by key short cuts.
In this construction I trusted your command
pdflatex '\def\modus{1} \input <filename>'
which I personally didn't know and also didn't check.
On Sep 21, 2005, at 10:27, Friedrich Vosberg wrote:
> 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/
>
>
>
------------------------- 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 MacOSX-TeX
mailing list