In order to get three output files at the same time (by one compilation) I added the option --shell-escape and
\ifx\conditionmacro\undefined
\immediate\write18{%
pdflatex --jobname="\jobname"
"\gdef\string\conditionmacro{1}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_halb"
"\gdef\string\conditionmacro{2}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_voll"
"\gdef\string\conditionmacro{3}\string\input\space\jobname"
}%
\expandafter\stop
\fi
to my preamble, but errors aren't displayed anymore now and a failing compilation process isn't being stopped. How can I achieve a normal behavior again?
Update
This example works and produces three different output files:
\documentclass{article}
\usepackage{tagging}
\ifx\conditionmacro\undefined
\immediate\write18{%
pdflatex --jobname="\jobname"
"\gdef\string\conditionmacro{1}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_halb"
"\gdef\string\conditionmacro{2}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_voll"
"\gdef\string\conditionmacro{3}\string\input\space\jobname"
}%
\expandafter\stop
\fi
\ifnum\conditionmacro>1 \usetag{halb}\fi
\ifnum\conditionmacro=3 \usetag{voll}\fi
\begin{document}
test
\tagged{halb}{test-halb}
\tagged{voll}{test-voll}
\end{document}
This one doesn't (of course), but instead of stopping the process and displaying errors (like the normal behavior of TeXstudio), it gets stucked:
\documentclass{article}
\usepackage{tagging}
\ifx\conditionmacro\undefined
\immediate\write18{%
pdflatex --jobname="\jobname"
"\gdef\string\conditionmacro{1}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_halb"
"\gdef\string\conditionmacro{2}\string\input\space\jobname"
}%
\immediate\write18{%
pdflatex --jobname="\jobname_voll"
"\gdef\string\conditionmacro{3}\string\input\space\jobname"
}%
\expandafter\stop
\fi
\ifnum\conditionmacro>1 \usetag{halb}\fi
\ifnum\conditionmacro=3 \usetag{voll}\fi
\begin{document}
test
\tagged{halb}{test-halb}
\tagged{voll}{test-voll}
}
\end{document}
I would like to keep the usual behavior of TeXstudio.
--shell-escapeas a routine usage, it is disabled by default for good reason. – David Carlisle Nov 28 '18 at 17:18\jobname1,\jobname2and\jobname3. Remark the numbers at the end. – Ulrike Fischer Nov 28 '18 at 17:52-interaction=nonstopmodeto your internal calls as well. – Troy Nov 28 '18 at 18:20\jobname_voll.log) because it contains the other two cases, or rather the whole document (for my actual purposes). I've passed your mentioned option to my internal calls (to each of the three corresponding lines) now. Thank you! But how can I tell TeXstudio to load the right log file? – Thrash Nov 28 '18 at 18:49\jobnamethat can not work in general. – David Carlisle Nov 28 '18 at 19:46\jobname_vollrunning as the only instance? – Thrash Nov 28 '18 at 19:58