I have an external .tex
file that stores all of my custom commands, and I also wanted that .tex
file to include \newtheorem
lines. The structure of this input file is of the form:
\newcommand{\im}{\text{im}} \
\newcommand{\id}{\text{id}} \
\newcommand{\rref}{\text{rref}} \
\
\newtheorem{axiom}{Axiom} \
\newtheorem{lemma}{Lemma} \
etc.
I'm not sure if my syntax is correct, but all of my \newtheorem
lines are of that form. When I import the external .tex
file everything works except the \newtheorem{}
components. An error pops up stating:
"Undefined control sequence. LaTeX error: Missing \begin{document}."
backslash-endofline
, which you shouldn't have.command1
, etc., are meant literally to correspond to\command1
, etc., that ordinarily conflicts with the rules for command names, which can contain only letters, nothing non-alphabetic like digits.