# [pdftex] creating multiple versions of same document

Dok, D. van d.vandok at ecn.nl
Wed Mar 28 18:37:34 CEST 2001

> This may be a stupid question.............
> Is it possible to generate multiple versions of the same
> document from a
> makefile/script?
> I would like to produce double sided / single sided / web optimised
> versions of the same file without having to edit the source
> file each time.
>
> I'm using pdflatex
>

The easiest way I can think of is to prepare three files: double.tex,
single.tex and screen.tex, with proper preambles and as a body:

\begin{document}
\input mythesis
\end{document}

but I'm curious after other peoples tricks...

Dennis van Dok