[OS X TeX] Equivalent to TeXify in TeXShop?
Friedrich Vosberg
fvosberg at mac.com
Tue Mar 13 03:01:49 EDT 2007
Morning.
Am 10.03.2007 um 22.59 schrieb Peter Dyballa:
>
> Am 10.03.2007 um 22:30 schrieb Friedrich Vosberg:
>
>> How can I check whether it works? And how can I invoke it in
>> TeXShop to handle a TeX file?
>
> Friedrich: you don't use it from TeX Shop! Didn't you show in that
> TeX excerpt that TeX itself is invoking texify?!
I want to say: What must I do to let the script be executed when
entering Cmd+T in TeXShop?
>>> you can move it into /usr/local/bin,
>>
>> Could I move it into my standard TeX trees ~/Library/texmf/...?
>
> [...] you'd need to adjust PATH that the texify executable can be
> found in your cellar.
I think PATH is configured in this manner by default. Because updmap
is found.
>> PS: Sometimes it's not really maclike to configure TeX on Mac.
>
> [...] climate damaging Carbon Emacs [...] a German problem with so
> many Carbon power plants in planning, because it was so cold this
> winter.
Not due to the *coldness* in Winter we need carbon power plants in
the future, but for the upcoming *warm* winters we need a lot of
power wasting air conditions.
;-)
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Wenn \Wort nicht definiert ist, dann:
%
\begingroup
\newcommand*\fs{\space\space\space\space}%
\makeatletter
\@ifdefinable\@forkifnonneginteger{%
\long\def\@forkifnonneginteger#1\@nil{%
\ifx\@nnil#1\@nnil
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}%
}%
\newcommand\forkifnonneginteger[1]{%
\ifx\@nnil#1\@nnil
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
{\@secondoftwo}%
{\afterassignment\@forkifnonneginteger
\count@=0#1\space\@nil}%
}%
\begingroup
\newcommand*\loopcall{%
\@tempcnta0
\loop
\catcode\number\@tempcnta=12
\advance\@tempcnta1
\ifnum\number\@tempcnta<256
\repeat
\endlinechar=-1
\loop
\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: %
}%
\immediate\read-1to\chosen
\@tempswatrue
\expandafter\forkifnonneginteger
\expandafter{\chosen}{%
\ifnum\chosen<4
\@tempswafalse
\fi
}{}%
\if at tempswa
\message{%
Bitte ganze Zahl im Bereich von 0 bis 3 in
Dezimaldarstellung^^Jnur unter Verwendung
arabischer Ziffern eintippen und danach^^Jdie
Eingabetaste druecken!^^J%
}%
\repeat
\global\let\chosen\chosen
\endgroup
}%
\expandafter\endgroup\loopcall
\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
\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)?
TIA and kind regards, Friedrich
--
»Wir wollten Arbeitskräfte, und es kamen Menschen.« (Max Frisch)
------------------------- 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