The letter
class makes it possible to generate two letters from a single run.
\documentclass[11pt]{letter}
\usepackage{lipsum}
\begin{document}
\name{John Doe}
\signature{John Doe}
\begin{letter}{Mr.\ Foo Bar}
\opening{Dear Mr.\ Bar}
\lipsum[1]
\end{letter}
\begin{letter}{Mr.\ Bar Foo}
\opening{Dear Mr.\ Foo}
\lipsum[2]
\end{letter}
\end{document}
But the resulting two letters are only logically distinct. They are generated in the same PDF file.
Is it ever possible, using any mechanism (irrelevant of letter
), to get LaTeX to generate two ("physical", not logical) PDF files from a single run? Presumably the initialization in the preamble will be available for both.
My hunch is that this is not possible, and the best might be to concoct a shell script that passes a (boolean) parameter. Can you confirm?
arara
orrubber
ormklatex
to initiate multiple compilations. Or you can 'burst' a PDF after compilation using one of those tools to automate it. – cfr Dec 2 '16 at 16:48