I'd like to have different versions of my document. So far I built the document such that I only have to change
\newcommand{\setversion}{0}
to the version number I'd like and the respective document is compiled. However, I'd like that the document is compiled mutliple times automatically and with different \setversion-parameter. Is that possible and how?
I am using pdflatex by the way.
I found out that there are
latexmk mydoc.texHow can I avoid compiling twice?rubber --pdf mydoc.tex- arara: Using arara to compile powerdot twice http://texdoc.net/texmf-dist/doc/support/arara/arara-usermanual.pdf
but I got kind of confuse how to do my simple case.
Solution:
pdflatex '\newcommand{\setversion}{2}\input{yourfile}'
pdflatex '\newcommand\setversion}{2}\input{yourfile}'– David Carlisle Jan 12 '16 at 18:12Package pgfkeys Error: I do not know the key '/tikz/semi thick' and I am goin g to ignore it. Perhaps you misspelled it.– Make42 Jan 12 '16 at 22:47semithickand notsemi thick. No matter how you compile it, the latter will always give that error. – cfr Jan 13 '16 at 00:55semithick. Fun fact though: While it does not work using the pdflatex-command, it does work when I use Kile! – Make42 Jan 13 '16 at 11:09.texfile. Probablypdflatexby default. But no TeX engine will magically cause a PGF key to be recognised which has not been defined. Unless it is using different packages and you somewhere define this as a custom key and that definition is somehow loaded when Kile's command is executed but not when you runpdflatex.... Have you ill-advisedly set Kile's compile to continue past errors? – cfr Jan 13 '16 at 20:39pdflatex '\newcommand{\setversion}{2}\input{yourfile}'was perfectly fine - I just wanted to accept it as an answer. – Make42 Jan 21 '16 at 20:17