numberwithin

289 views
Skip to first unread message

Chip Brock

unread,
Oct 18, 2009, 5:25:33 PM10/18/09
to tufte-latex, Chip Brock
hi
Has something happened to the \numberwithin command?

If I add:

\newcounter{problemcounter}
\numberwithin{problemcounter}{chapter}

\newenvironment{problem}[1]{%
  \refstepcounter{problemcounter}
    \addcontentsline{lol}{problem}{\protect\numberline{theproblemcounter} #1}
    \textbf{problem \theproblemcounter. #1}\par}

to the preamble, I get an 

!  Undefined control sequence.
<recently read>   \numberwithin
                                                      {problemcounter}{chapter}

?

thanks
Ray

Kevin Godby

unread,
Oct 18, 2009, 5:59:03 PM10/18/09
to tufte...@googlegroups.com, Chip Brock
Hello.

I don't think anything in the Tufte-LaTeX document classes would
affect \numberwithin. It looks like it's not defined. You might
double-check that you've included \usepackage{amsmath} prior to the
block of code you provided above.

If you still have problems with this, could you send me a complete
example (from \documentclass to \end{document}) that illustrates the
problem?

Thanks!

--Kevin

chip

unread,
Nov 8, 2009, 9:13:29 AM11/8/09
to tufte-latex
I'm sorry...I thought I had replied! Yes...somehow, I had failed to
include amsmath when I converted my project to tufte-latex. That was
the problem. Thanks...
Reply all
Reply to author
Forward
0 new messages