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

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Wed Sep 21 10:39:52 EDT 2005


As a follow up, save the different macros (Applescripts) in TS giving  
them appropriate names and please notice that

>>> set shellScript to "cd " & dirName & ";"
>>> set shellScript to shellScript & "~/Library/TeXShop/bin/pdflatexc  "
>>> &"\def\modus{1} \input "& baseName
>>> do shell script shellScript

is not the complete Applescript but only a part of it. You should  
also check that the shellscript ~/Library/TeXShop/bin/pdflatexc is  
available.

Claus

On Sep 21, 2005, at 16:23, Claus Gerhardt wrote:

> 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/
>
>

------------------------- 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