[OS X TeX] Strange TeXShop engine behaviour

Claus Gerhardt claus.gerhardt at uni-heidelberg.de
Fri Sep 23 02:26:41 CEST 2011


You can bypass TeXShop completely by calling shell scripts through Applescripts using the command

do shell script "fullpathToBinary options "&fileName

As an example have a look at my bibtex scripts. There is no need to use engines. The overhead (file path, etc.) can be part of the Applescript (it can be part of an Applescript template).

Claus


On Sep 23, 2011, at 0:40, Alan Munn wrote:

> On Sep 22, 2011, at 5:21 PM, Peter Dyballa wrote:
> 
>> 
>> Am 22.09.2011 um 20:15 schrieb Alan Munn:
>> 
>>> export PATH=$PATH:/usr/texbin:/usr/local/bin
>> 
>> This does not look that good: $PATH can contain the path to some other TeX distribution… Usually /usr/texbin is put before the standard path. OTOH, $PATH can be already correct from what the Mac TeX installation does to your system. Then the last two components are not needed.
> 
> I was just modeling this on other TeXShop engines, which do it this way (e.g. XeLaTeX.engine, LuaLaTeX.engine).  My system only has MacTeX on it anyway, so it's not really a problem.
> 
> And I'm assuming this is not the source of the encoding issue.  Somehow it seems that when bash is called from within TeXShop it doesn't respect the locale.
> 
> Which leads me to a solution:
> 
> if I add
> 
> export LANG=en_US.UTF-8
> 
> to the engine, then it works.  (Although this will work for me, a better solution would use the encoding of the actual file, but I don't know how to do that.)
> 
> Alan
> 
>> 
>> --
>> Greetings
>> 
>> Pete
>> 
>> There's something the technicians need to learn from the artists. If it isn't aesthetically pleasing, it's probably wrong.
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
> 
> -- 
> Alan Munn
> amunn at gmx.com
> 
> 
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list