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

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Wed Sep 21 16:23:51 CEST 2005


The engine file works too, in fact the Applescript which I proposed  
only calls a shellscript which is the same as an engine file.  
However, the Applescripts can be saved as macros in TS and can then  
be called either by a key short cut or via the macros button in the  
tool bar of your file.

The macro 'pdflatexc' should already be present in TS, you only have  
to modify it as I indicated.

Claus


On Sep 21, 2005, at 15:43, Friedrich Vosberg wrote:

> On Wednesday, September 21, 2005, at 02:29PM, Claus Gerhardt  
> <gerhardt at math.uni-heidelberg.de> wrote:
>
>
>> You have to use Applescripts,
>>
>
> Oomph! I've used it never before.
>
>
>> e.g., a modification my Applescript
>> pdflatxc which is offered in TS.[...]
>>
>> replace this by
>>
>
> Why should I _replace_ this script?
>
>
>> set shellScript to "cd " & dirName & ";"
>> set shellScript to shellScript & "~/Library/TeXShop/bin/pdflatexc  "
>> &"\def\modus{1} \input "& baseName
>> do shell script shellScript
>>
>
> Done. But in which directory I have to save this script?
>
> Why does an engine file like
> ===== 8>< =====
> #!/bin/tcsh
>
> set path=($path /usr/local/teTeX/bin/powerpc-apple-darwin-current / 
> usr/local/bin)
> pdflatex '\def\modus{3} \input "$1"'
> ===== ><8 =====
> not work? (I'm asbolutly a greenhorn in scripting.)
>
> TIA 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 macostex-archives mailing list