[texhax] declaretheoremstyle: undefined control sequence

Lars Madsen daleif at imf.au.dk
Mon Apr 23 20:59:23 CEST 2012


On 04/23/2012 08:43 PM, wenhuo hu wrote:
> Thank you daleif for your reply.
>
> I downloaded the thmtools.sty file just under the source folder.
> here is the first two lines in that file.
> \NeedsTeXFormat {LaTeX2e}
> \ProvidesPackage {thmtools}[2011/11/27 v62]
>

I would recommend installing a new full latex installation. As can be 
seen from your paste, you have not updated all the needed files. Thus 
I'd recommend installing the TUG TeX Live instead. Then YOU decide when 
to update.


> here is the run results shown on screen:
>
> $ pdflatex test.tex
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
> entering extended mode
> (./test.tex
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
> dumylang, noh
> yphenation, pinyin, loaded.
> (/usr/share/texmf-texlive/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/share/texmf-texlive/tex/latex/base/size10.clo))
> (/usr/share/texmf-texlive/tex/latex/ntheorem/ntheorem.sty
> Style `ntheorem', Version 1.25 <2005/07/07>
> ) (./thmtools.sty (/usr/share/texmf-texlive/tex/latex/thmtools/thm-patch.sty
> (/usr/share/texmf-texlive/tex/latex/thmtools/parseargs.sty))
> (/usr/share/texmf-texlive/tex/latex/thmtools/thm-kv.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))
> (/usr/share/texmf-texlive/tex/latex/thmtools/thm-autoref.sty
> (/usr/share/texmf-texlive/tex/latex/thmtools/aliasctr.sty
> (/usr/share/texmf-texlive/tex/latex/carlisle/remreset.sty)))
> (/usr/share/texmf-texlive/tex/latex/thmtools/thm-listof.sty)
> (/usr/share/texmf-texlive/tex/latex/thmtools/thm-restate.sty)
> (./thm-ntheorem.sty))
> ! Undefined control sequence.
> l.8 \declaretheoremstyle
>
> [headfont=\scshape,bodyfont=\itshape,numberwithin=se...
>
> ? q
>
>
> On Mon, Apr 23, 2012 at 1:53 PM, Lars Madsen <daleif at imf.au.dk
> <mailto:daleif at imf.au.dk>> wrote:
>
>     On 04/23/2012 01:43 AM, wenhuo hu wrote:
>
>         Hi everyone,
>
>         When I try this:
>
>         |\documentclass{article}
>
>
>         \usepackage{ntheorem}
>
>         \usepackage{thmtools}
>
>         \declaretheoremstyle[headfont=__\scshape,bodyfont=\itshape,__numberwithin=section]{mystyle}
>
>         \declaretheorem[style=mystyle]__{definition}
>
>
>         \usepackage[english]{babel}
>
>         \usepackage{blindtext}
>
>
>         \begin{document}
>
>         |
>
>         |
>
>         |
>
>         I got this:
>
>         ! Undefined control sequence.
>         l.9 \declaretheoremstyle
>                                  [
>
>         My system is Ubuntu 12.04 with texlive, full install.
>
>         Thanks a lot!!
>
>         Wenhuo
>
>
>
>     which package version are you using.
>
>     Note that the ubuntu packages are hopelessly outdated.
>
>
>     /daleif
>
>
>
>
> --
>
>
> Wenhuo Hu
> Park lab
>
> Memorial Sloan Kettering Cancer Center
> Zuckerman Research Building
> 408 East 69th Street
> Room ZRC-527
> New York, NY 10065
> Phone 646-888-3220
> huw at mskcc.org <mailto:huw at mskcc.org>



More information about the texhax mailing list