[OS X TeX] TeXshop and Makefiles/preprocessor and multiple .tex files
Maarten Sneep
maarten.sneep at xs4all.nl
Tue Feb 22 05:53:29 EST 2005
On 22 feb 2005, at 11:42, Johan Glimming wrote:
> I am using a Makefile for building my dvi,pdf,ps from LaTeX files. The
> reason for this is that I use a preprocessor which first generates a
> file FILE.out.tex from FILE.tex from my TeX source. This preprocessor
> accepts some special comments such as %include etc which conform with
> LaTeX syntax.
?? confused ?? Can you give some details as to why you'd need that?
\input{filename} will include without starting a new page, and is
portable.
> In addition, I normally split up my LaTeX files into a bunch of
> smaller files such as section1.tex and section2.tex to easily handle
> them.
That is what I do, but I don't need a preprocessor, so an example would
be nice.
> Now, I am a beginner of TeXshop, and I wonder if I can at all use
> TeXshop together with these slightly special requirements. Maybe
> someone else has experience from this or related requirements?
In all documents, except the master document, put a metacomment:
%SourceDoc ../main.tex
(replace ../main.tex with the actual relative path to the master
document)
Create a typesetting engine in ~/Library/TeXShop/Engines:
Make.engine
#!/bin/bash
make
# that's it.
And select this custom typesetting engine for use with your master file
(this can be done with a %& metacomment in TeXShop, but that makes the
file not portable across platforms, so steer clear of that). You could
set this engine as your personal (la)tex script in the preferences, and
set it as default.
Maarten
--------------------- 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 MacOSX-TeX
mailing list