[OS X TeX] Equivalent to TeXify in TeXShop?

Peter Dyballa Peter_Dyballa at Web.DE
Tue Mar 13 06:50:36 EDT 2007


Am 13.03.2007 um 08:01 schrieb Friedrich Vosberg:

> This is the file that works with texify and that I want to typeset:
>
> ===== 8>< =====
> % begin of file: file.tex
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %  Test, ob \Wort definiert ist:
> %
> \expandafter\ifx\csname Wort\endcsname\relax
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

It seems that this TeX file relies on additional arguments on the  
command line by which a variable \Wort is being pre-defined.

>       \message{%
>         Sie haben folgende Optionen:^^J^^J%
>         0 - Bleibenlassen! Alles abbrechen.^^J%
>         1 - \jobname1.pdf mit dem Wort vivat.^^J%
>         2 - \jobname1.pdf mit dem Wort vivat^^J%
>         \fs und^^J%
>         \fs \jobname2.pdf mit dem Wort crescat.^^J%
>         3 - \jobname1.pdf mit dem Wort vivat^^J%
>         \fs und^^J%
>         \fs \jobname2.pdf mit dem Wort crescat^^J%
>         \fs und^^J%
>         \fs \jobname3.pdf mit dem Wort floreat.^^J%
>         \fs ^^J%
>         Zahl eingeben und [Return] druecken: %
>       }%

Here (I did not understand under which circumstances) you obviously  
need to input something, at least a RETurn – I doubt that TeXShop  
supports this ... 'though it'll work in GNU or Carbon Emacs (could be  
Cocoa Emacs.app, too).

>       \message{%
>         Bitte ganze Zahl im Bereich von 0 bis 3 in
>         Dezimaldarstellung^^Jnur unter Verwendung
>         arabischer Ziffern eintippen und danach^^Jdie
>         Eingabetaste druecken!^^J%
>       }%

Requesting the delinquent to properly input a number in some  
particular format ...

>   \ifnum0\chosen > 0\relax
>     \immediate\write18{%
>       texify
>       --pdf
>       --tex-option="-job-name=\jobname1
>                     \string\gdef\string\Wort{Vivat!}
>                     \string\input\space\jobname.tex"
>       \jobname.tex%
>     }%
>   \fi
>   \ifnum0\chosen > 1\relax
>     \immediate\write18{%
>       texify
>       --pdf
>       --tex-option="-job-name=\jobname2
>                     \string\gdef\string\Wort{Crescat!}
>                     \string\input\space\jobname.tex"
>       \jobname.tex%
>     }
>   \fi
>   \ifnum0\chosen > 2\relax
>     \immediate\write18{%
>       texify
>       --pdf
>       --tex-option="-job-name=\jobname3
>                     \string\gdef\string\Wort{Floreat!}
>                     \string\input\space\jobname.tex"
>       \jobname.tex%
>     }
>   \fi

Depending on the number input one of three preset texify invocations  
is launched from inside the running TeX job, so TeX need to be  
invoked with -shell-escape!

>   \expandafter\stop
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \fi
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%
> \documentclass{article}
> \begin{document}
> Hier ist ein Dokument mit einem schicken Wort.\\
> Das Wort lautet: \Wort
> \end{document}
> % EOF file.tex
> ===== ><8 =====
>
> It should produce differenz outputs of one input depending on a  
> given value.
>
> How can I use it on my Mac (i-Installer installation)?

On the command line:

	latex -shell-escape <file name> '\def\Wort{Unsinn!}'

--
Mit friedvollen Grüßen

   Pete

A child of five could understand this!  Fetch me a child of five.



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list