Steve Litt wrote:
> On Friday 11 May 2007 15:09, Paul A. Rubin wrote:
>   
>> Steve Litt wrote:
>>     
> This didn't work for me. Here's a tiny LaTeX file incorporating it:
>
> %====================================
> \documentclass[12pt]{book}
> [EMAIL PROTECTED]
>
> \begin{document}
> mysize is \mysize
> \end{document}
> %====================================
>
> When I try to compile it, here's what happens:
>
> [EMAIL PROTECTED] vimfacts]$ latex junk2.tex
> [snip]
> ! Undefined control sequence.
> \mysize ->\f 
>              @size
> l.7 mysize is \mysize
>                      
> ?
>
> Any ideas what I should do?
>   
\makeatletter
[EMAIL PROTECTED]
\makeatother

Otherwise, LaTeX parses this:
    [EMAIL PROTECTED]
as if it were:
    \newcommand{\mysize}{\f @size} %note the space after '\f'
since '@' isn't ordinarily a `letter', that is, something that can occur
as part of a command name. You always have to use
\makeatletter--\makeatother in the preamble when using @-commands. You
do NOT have to do this in .cls and .sty files. Note that this means that
you also need the \makeatletter--\makeatother pair in Preamble sections
of LyX layouts.

rh

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to