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