[OS X TeX] TeXshop and Makefiles/preprocessor and multiple .tex files
maarten.sneep at xs4all.nl
Tue Feb 22 14:27:53 CET 2005
On 22 feb 2005, at 14:14, Johan Glimming wrote:
> After restarting TeXShop and selecting the personal script it worked!
> However, there is still something strange going on in my Makefile. I
> TEXINPUTS=../macros/: BIBINPUTS=../bib/: lhs2TeX -P../macros/: --poly
> thesis.tex > thesis.out.tex
Be _very_ careful when setting TEXINPUTS and BIBINPUTS, it may cause
severe headaches, unless you really know what you're doing.
> I also have set SHELL=/bin/bash just to make sure. I am puzzled as to
> why TeXShop does not assign the right path to Make.engine when it is
Add an echo "$PATH" to the script (the engine), and see if the full
paths are in there in the log output. IIRC the path to ghostscript and
tex are added to the (restricted) environment when the engine is run,
but you should add other paths yourself. I may be mistaken though, and
maybe all paths have to be added.
> It seems that TeXshop uses /etc/bashrc but not ~/.bashrc where my
> custom path is being set up. I think this is weird, but perhaps there
> is an explanation to it.
restricted shell is the key. (And I think it runs neither)
> In addition, it is also weird that my above attempt to resolve the
> path problem does not work, since I do explicitly set the path to
> lhs2TeX there. Evidently the "ifdef" clause has no consequence other
> than the else-statement.
Yup, very weird, especially since gs causes the path to be there
already. You could just add the path to the Make.engine script
regardless, since it will be discarded after the run anyway.
--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives