Remove special characters like ’ from key name: \documentclass{book} \usepackage{tikz} \usepackage{parskip} \begin{document} \tikzset{Karls grid/.style={help lines,color=blue!50}} \begin{tikzpicture} \draw[Karls grid] (-5,-5) grid (5,5); \end{tikzpicture} \end{document}


One way to approach this issue is to do a 'dry run' of \ExecuteMetaData, i.e., run a modified version of the command that stores the code between the tags in a macro and test if this macro is empty. If that is the case you can issue an error message. After the dry run you should do a 'real' run with the original version of \ExecuteMetaData. It would be nice ...


Here is a way: main.tex: \documentclass{article} \usepackage{lipsum} \usepackage{pgffor} %Add the files you wish to be included here: \def\onlyinput{main1,main2} %Command definition \newcommand{\minput}[1]{\def\xx{#1}\foreach \x in \onlyinput{\ifx\x\xx\input{#1}\fi}} \begin{document} \section{Standard Section} \lipsum[1] \minput{main1} \minput{main2}...

Only top voted, non community-wiki answers of a minimum length are eligible