[OS X TeX] Named theorem
Alex Scorpan
scorpan at gmail.com
Fri Jul 28 17:17:49 CEST 2006
> I tried
>
> \thm at notefont{\bfseries\upshape}%
>
> in the preamble
As it uses @, it needs to be inside an \makeatletter ... \makeatother
thing. That is, your preable should have
\makeatletter
\thm at notefont{\bfseries\upshape}
\makeatother
Without this, LaTeX reads \thm, then @, and doesn't know what \thm
is; on the other hand, \makeatletter makes @ be read as a letter,
and LaTeX will read the whole command \thm at notefont; the subsequent
\makeatother restores @ to non-letter.
The character @ is understood as a letter inside all .sty and .cls
files, but not in the .tex file. This is so that all sorts of
internal commands that use @ in their name would not be accidentally
redefined by a hapless user. It's part of LaTeX's ideology of
protecting users from themselves.
Alex
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list