[OS X TeX] Named theorem

Herbert Schulz herbs at wideopenwest.com
Fri Jul 28 11:13:28 EDT 2006


On Jul 28, 2006, at 10:04 AM, Alain Schremmer wrote:

>
> I tried
>
>        \thm at notefont{\bfseries\upshape}%
>
> in the preamble but then I got
>
>    ! Undefined control sequence.
>    l.108     ^^I\thm
>                     @notefont{\bfseries\upshape}%
>
> So, I commented out the "added line" in amsthm.sty and now it works  
> as advertised. Of course, that will leave "editors" of the book (if  
> any) with the very puzzle I had. But might there be a more  
> immediate, hidden cost? (Un train peut en cacher un autre, as they  
> used to post in train stations.)
>
> Very grateful regards
> --schremmer

Howdy,

You've got to first make @ a normal letter:

\makeatletter
\thm at notefont{\bfseries\upshape}
\makeatother

so it can be part of a command name. When LaTeX is processing package  
files it sets that automatically but use in the preamble requires it  
explicitly.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)


------------------------- 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 MacOSX-TeX mailing list