I am trying to restate a theorem environment using theomac.sty which floats around, following a suggestion I received here:
how do I refer back to counters?
The package I downloaded loads well, but whenever I run pdflatex I get the following error:
! You can't use `\spacefactor' in vertical mode.
\@->\spacefactor
\@m
l.199 \@
newtheoremWithMacro{replemma}{lemma}
I am confused what it means. I tried following it a bit in google, but it still does not make much sense to me.
Here is the lemma environment my style file defines:
\def\lemmaname{Lemma}
\newtheorem{lemma}{\lemmaname}%[section]
\def\thelemma{\arabic{lemma}}
\def\lemmafont{}
\def\lemmaheadfont{\bfseries}
The theomac style file can be found in: http://cookp.com/thread/1500775/Equation%20kopieren%20referenzieren
can someone identify why I am getting this error? Just a hint as to what it means could be also helpful... I can't find the command spacefactor in either syle files (theomac.sty or the style file that defines theorems.)