[OS X TeX] TeXshop and Makefiles/preprocessor and multiple .tex files

Johan Glimming glimming at kth.se
Tue Feb 22 12:49:29 CET 2005


Hello,

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

I use the lhs2TeX package which allows me to type Haskell source code 
using
|data List a = Nil+Cons a (List a)| bracketing, among other things. The 
%include command is needed because the preprocessor needs a way to 
expand the structure, and indeed input would work in most other cases.

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

I also split up section1.tex into subsectionN.tex. Can I then use the 
same %SourceDoc trick, and what do I point SourceDoc to in 
subsectionN.tex?

> Create a typesetting engine in ~/Library/TeXShop/Engines:
> Make.engine

I added this script but I get the output "nothing to be done for 
thesis.tex" after pressing "Typeset". I think the problem might be the 
path? Is Make.engine executing in the directory of the source file 
thesis.tex?

Thanks,
Johan Glimming.

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