[tex-live] revtex4-1 not recognized under texlive (! Undefined control sequence. l.24 \documentclass [aps, prl, preprint, groupedaddress]{revtex4-1} )

Herbert Schulz herbs at wideopenwest.com
Wed Aug 11 19:57:55 CEST 2010


On Aug 11, 2010, at 12:46 PM, Sabuj Pattanayek wrote:

> Hi,
> 
> I'm trying to get revtex4-1 to work under my /usr/local/texlive
> installation . I installed revtex4-1 according to the README found in
> the revtex4-1.zip file from here
> https://authors.aps.org/revtex4/revtex4-1.zip . I then ran mktexlsr
> and also texhash and it looks like it did the right thing :
> 
> texhash: Updating /usr/local/texlive/2009/texmf/ls-R...
> texhash: Updating /usr/local/texlive/2009/texmf-config/ls-R...
> texhash: Updating /usr/local/texlive/2009/texmf-dist/ls-R...
> texhash: Updating /usr/local/texlive/2009/../texmf-local/ls-R...
> texhash: Updating /usr/local/texlive/2009/texmf-var/ls-R...
> texhash: Done.
> 
> These commands also give :
> 
> $ kpsewhich revtex4-1.cls
> /usr/local/texlive/2009/../texmf-local/tex/latex/revtex/revtex4-1.cls
> 
> $ kpsewhich revtex4.cls
> /usr/local/texlive/2009/texmf-dist/tex/latex/revtex4/revtex4.cls
> 
> $ kpsewhich -var-value TEXMFLOCAL
> /usr/local/texlive/2009/../texmf-local
> 
> But then when I try to run tex on the aps template under
> /usr/local/texlive/texmf-local/doc/latex/revtex/sample/aps/apstemplate.tex
> or on the 00readme.tex file from the revtex4-1 distribution I get the
> error :
> 
> for apstemplate.tex :
> 
> $ tex apstemplate.tex
> This is TeX, Version 3.1415926 (TeX Live 2009)
> (./apstemplate.tex
> ! Undefined control sequence.
> l.24 \documentclass
>                   [aps,prl,preprint,groupedaddress]{revtex4-1}
> 
> for 00readme.tex :
> 
> $ tex 00readme.tex
> This is TeX, Version 3.1415926 (TeX Live 2009)
> (./00readme.tex
> ! Undefined control sequence.
> l.1 \title
>          {%
> ?
> ! Undefined control sequence.
> l.2  The \classname
>                   {revtex4-1} document class of the American Physical Society%
> 
> 
> Any ideas?
> 
> Thanks,
> Sabuj Pattanayek

Howdy,

First of all revtex4-1.cls is already a part of TeX Live 2009 so there was no need to try to install it. BAacking you install out is probably the best thing you can do.

Second it probably isn't a good idea to compile a template since it probably needs things filled in to make it useful.

Finally, you need to compile with latex or pdflatex to have it work since \documentclass is pat of the LaTeX2e macro package. That is what the error message is all about

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the tex-live mailing list