Featured Book

LaTeX Beginners Guide

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 1 guest

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Appendix with amsart error: missing \endcsname inserted

amsartappendixnumberingAdd tags Information and discussion about specific document classes and how to create your own document classes.

Appendix with amsart error: missing \endcsname inserted

Postby mimi314159 on Sat May 18th, 2013

Hi, I'm new to the forums. :) I'm trying to create an appendix with amsart , but the equation numbering will not reset properly. I found the appendix code on http://www.ams.org/publications/authors/faq/author-faq

If I comment out the two equation lines, the darn thing compiles. Does amsart use a different counter?

I'm running Gummi 0.6.1 on Ubuntu 12.04.

Here's a minimal working example:
Code: Select all  •  Open in writeLaTeX
\documentclass{amsart}
\usepackage{amsthm, amsmath, amssymb, enumerate}

\begin{document
}

Testing
%%%%% Set up the Appendix %%%%%
\setcounter{section}{0}
%\setcounter{theorem}{0}
%\renewcommand{\thetheorem}{\thesection.\arabic{theorem}}
\setcounter{\equation}{0}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\setcounter{figure}{0}
\setcounter{table}{0}

\appendix
\section*{Appendix}
\renewcommand{\thesection}{A}

\subsection{Effective stress principle}

\end{document
}


Here's the log file:
Code: Select all  •  Open in writeLaTeX
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2013.5.6)  17 MAY 2013 15:24
entering extended mode
 \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**/tmp/gummi_NFF9WW
(/tmp/gummi_NFF9WW
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
\linespacing=\dimen102
\normalparindent=\dimen103
\normaltopskip=\skip41
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip42

For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01

(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen104
))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen105
)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count79
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count80
\leftroot@=\count81
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count82
\DOTSCASE@=\count83
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen106
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count84
\c@MaxMatrixCols=\count85
\dotsspace@=\muskip10
\c@parentequation=\count86
\dspbrk@lvl=\count87
\tag@help=\toks15
\row@=\count88
\column@=\count89
\maxfields@=\count90
\andhelp@=\toks16
\eqnshift@=\dimen107
\alignsep@=\dimen108
\tagshift@=\dimen109
\tagwidth@=\dimen110
\totwidth@=\dimen111
\lineht@=\dimen112
\@envbody=\toks17
\multlinegap=\skip43
\multlinetaggap=\skip44
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \
] on input line 2667.
)
LaTeX Font Info:    Try loading font information for U+msa on input line 388.

(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 96.
)
\copyins=\insert233
\abstractbox=\box28
\listisep=\skip45
\c@part=\count91
\c@section=\count92
\c@subsection=\count93
\c@subsubsection=\count94
\c@paragraph=\count95
\c@subparagraph=\count96
\c@figure=\count97
\c@table=\count98
\abovecaptionskip=\skip46
\belowcaptionskip=\skip47
\captionindent=\dimen113
\thm@style=\toks19
\thm@bodyfont=\toks20
\thm@headfont=\toks21
\thm@notefont=\toks22
\thm@headpunct=\toks23
\thm@preskip=\skip48
\thm@postskip=\skip49
\thm@headsep=\skip50
\dth@everypar=\toks24
)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2009/06/22 v3.00
)
(/usr/share/texmf-texlive/tex/latex/tools/enumerate.sty
Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)
\@enLab=\toks25
) (/tmp/gummi_NFF9WW.aux)
\openout1 = `gummi_NFF9WW.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Try loading font information for U+msa on input line 4.
 (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
)
LaTeX Font Info:    Try loading font information for U+msb on input line 4.

(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2009/06/22 v3.00 AMS symbols B
)
/tmp/gummi_NFF9WW:11: Missing \endcsname inserted.
<to be read again>
                   \global
l.11 \setcounter{\equation}{0}
                               
Here is how much of TeX's memory you used:
 1584 strings out of 495061
 17197 string characters out of 1182622
 63097 words of memory out of 3000000
 4643 multiletter control sequences out of 15000+50000
 7385 words of font info for 29 fonts, out of 3000000 for 9000
 189 hyphenation exceptions out of 8191
 34i,3n,26p,298b,130s stack positions out of 5000i,500n,10000p,200000b,50000s

/tmp/gummi_NFF9WW:11:  ==> Fatal error occurred, no output PDF file produced!

Thanks for your help!
mimi314159
 
Posts: 1
Joined: Sat May 18th, 2013

Re: Appendix with amsart error: missing \endcsname inserted

Postby Stefan_K on Sun May 19th, 2013

Hi,

welcome to the forum!

To fix the error, use the counter name without a backslash, i.e. write

Code: Select all  •  Open in writeLaTeX
\setcounter{equation}{0}


Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6269
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany


Topic Tags

amsartappendixnumbering

Return to Document Classes

Who is online

Users browsing this forum: No registered users and 1 guest