I have a main document defined of which I need to extract different versions. For example, in:
\section*{5\\animalia}
\vspace{\oneline}
\includegraphics[page={33}, trim=1cm 0 0 0]{\pdfsource}
\includepdf[page={34-37}]{\pdfsource}
the last line would be compiled only if I would run pdflatex
with the argument AA
.
There should be around 20 different versions to prepare, so it would be great if I could compile all these in a batch, instead of preparing 20 different files. There are no common elements to select, so the lines from AA
will all be different ones from AB
or AJ
.
I had a look at \newcommand
and \xparse
, but I think I didn't find exactly what I needed. Any suggestions?
One other detail: the argument would also be passed to a text line at the start, namely:
\subsection*{ARGUMENT}
would print as AA
. I think that is easy to do, but I couldn't also find a concrete example.