\makeatletter
and \makeatother
in a *.sty file for commands generated with newcommand.py, but depending the place at which it is put it can make the compilation failing with e.g. the following error:
Code: Select all
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.133 \newif\if@
firstdetailselement\@firstdetailselementtrue
?
when /makeatother is just above a \newif.
When it is later in the file I get the following error:
! You can't use `\spacefactor' in vertical mode.
\@->\spacefactor
\@m
l.121 \section{Skills}
\renewcommand*{\section}
in the file; if I put the \makeatletter
just after that command definition the compilation runs without errors. But the problem is that I need it above.