[pdftex] creating multiple versions of same document

Reinhard Kotucha reinhard at kammer.uni-hannover.de
Thu Mar 29 21:03:37 CEST 2001


>>>>> "Dok" == Dok, D van <d.vandok at ecn.nl> writes:
    > \iffirstpass 
    > \openoutputfile [...]

You cannot change the name of the output file from within TeX.  If you
really want set the name you could do this by loading a dummy file
(that might be empty but must exist).

pdflatex '\def\filetype{thesis-s}\input{\filetype}\input{thesis}'

The empty files thesis-s.tex and thesis-p.tex must exist but all
the TeX stuff is in thesis.tex.

You could then use \ifthenelse in thesis.tex to find out whether
\filetype is thesis-s or thesis-p. 

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			               Phone: +49-511-751355
Berggartenstr. 9
D-30419 Hannover	              mailto:reinhard at kammer.uni-hannover.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------





More information about the pdftex mailing list