LaTeX forum ⇒ Document ClassesAppendix with amsart error: missing \endcsname inserted

Information and discussion about specific document classes and how to create your own document classes.
mimi314159
Posts: 1
Joined: Sat May 18, 2013 12:20 am

Appendix with amsart error: missing \endcsname inserted

Postby mimi314159 » Sat May 18, 2013 12:33 am

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:
  1. \documentclass{amsart}
  2. \usepackage{amsthm, amsmath, amssymb, enumerate}
  3.  
  4. \begin{document}
  5.  
  6. Testing
  7. %%%%% Set up the Appendix %%%%%
  8. \setcounter{section}{0}
  9. %\setcounter{theorem}{0}
  10. %\renewcommand{\thetheorem}{\thesection.\arabic{theorem}}
  11. \setcounter{\equation}{0}
  12. \renewcommand{\theequation}{\thesection.\arabic{equation}}
  13. \setcounter{figure}{0}
  14. \setcounter{table}{0}
  15.  
  16. \appendix
  17. \section*{Appendix}
  18. \renewcommand{\thesection}{A}
  19.  
  20. \subsection{Effective stress principle}
  21.  
  22. \end{document}


Here's the log file:
  1. This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2013.5.6) 17 MAY 2013 15:24
  2. entering extended mode
  3. \write18 enabled.
  4. file:line:error style messages enabled.
  5. %&-line parsing enabled.
  6. **/tmp/gummi_NFF9WW
  7. (/tmp/gummi_NFF9WW
  8. LaTeX2e <2009/09/24>
  9. Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
  10. yphenation, loaded.
  11. (/usr/share/texmf-texlive/tex/latex/amscls/amsart.cls
  12. Document Class: amsart 2009/07/02 v2.20.1
  13. \linespacing=\dimen102
  14. \normalparindent=\dimen103
  15. \normaltopskip=\skip41
  16. (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
  17. Package: amsmath 2000/07/18 v2.13 AMS math features
  18. \@mathmargin=\skip42
  19.  
  20. For additional information on amsmath, use the `?' option.
  21. (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
  22. Package: amstext 2000/06/29 v2.01
  23.  
  24. (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty
  25. File: amsgen.sty 1999/11/30 v2.0
  26. \@emptytoks=\toks14
  27. \ex@=\dimen104
  28. ))
  29. (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty
  30. Package: amsbsy 1999/11/29 v1.2d
  31. \pmbraise@=\dimen105
  32. )
  33. (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty
  34. Package: amsopn 1999/12/14 v2.01 operator names
  35. )
  36. \inf@bad=\count79
  37. LaTeX Info: Redefining \frac on input line 211.
  38. \uproot@=\count80
  39. \leftroot@=\count81
  40. LaTeX Info: Redefining \overline on input line 307.
  41. \classnum@=\count82
  42. \DOTSCASE@=\count83
  43. LaTeX Info: Redefining \ldots on input line 379.
  44. LaTeX Info: Redefining \dots on input line 382.
  45. LaTeX Info: Redefining \cdots on input line 467.
  46. \Mathstrutbox@=\box26
  47. \strutbox@=\box27
  48. \big@size=\dimen106
  49. LaTeX Font Info: Redeclaring font encoding OML on input line 567.
  50. LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
  51. \macc@depth=\count84
  52. \c@MaxMatrixCols=\count85
  53. \dotsspace@=\muskip10
  54. \c@parentequation=\count86
  55. \dspbrk@lvl=\count87
  56. \tag@help=\toks15
  57. \row@=\count88
  58. \column@=\count89
  59. \maxfields@=\count90
  60. \andhelp@=\toks16
  61. \eqnshift@=\dimen107
  62. \alignsep@=\dimen108
  63. \tagshift@=\dimen109
  64. \tagwidth@=\dimen110
  65. \totwidth@=\dimen111
  66. \lineht@=\dimen112
  67. \@envbody=\toks17
  68. \multlinegap=\skip43
  69. \multlinetaggap=\skip44
  70. \mathdisplay@stack=\toks18
  71. LaTeX Info: Redefining \[ on input line 2666.
  72. LaTeX Info: Redefining \] on input line 2667.
  73. )
  74. LaTeX Font Info: Try loading font information for U+msa on input line 388.
  75.  
  76. (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
  77. File: umsa.fd 2009/06/22 v3.00 AMS symbols A
  78. )
  79. (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty
  80. Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
  81. \symAMSa=\mathgroup4
  82. \symAMSb=\mathgroup5
  83. LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
  84. (Font) U/euf/m/n --> U/euf/b/n on input line 96.
  85. )
  86. \copyins=\insert233
  87. \abstractbox=\box28
  88. \listisep=\skip45
  89. \c@part=\count91
  90. \c@section=\count92
  91. \c@subsection=\count93
  92. \c@subsubsection=\count94
  93. \c@paragraph=\count95
  94. \c@subparagraph=\count96
  95. \c@figure=\count97
  96. \c@table=\count98
  97. \abovecaptionskip=\skip46
  98. \belowcaptionskip=\skip47
  99. \captionindent=\dimen113
  100. \thm@style=\toks19
  101. \thm@bodyfont=\toks20
  102. \thm@headfont=\toks21
  103. \thm@notefont=\toks22
  104. \thm@headpunct=\toks23
  105. \thm@preskip=\skip48
  106. \thm@postskip=\skip49
  107. \thm@headsep=\skip50
  108. \dth@everypar=\toks24
  109. )
  110. (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
  111. Package: amssymb 2009/06/22 v3.00
  112. )
  113. (/usr/share/texmf-texlive/tex/latex/tools/enumerate.sty
  114. Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)
  115. \@enLab=\toks25
  116. ) (/tmp/gummi_NFF9WW.aux)
  117. \openout1 = `gummi_NFF9WW.aux'.
  118.  
  119. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
  120. LaTeX Font Info: ... okay on input line 4.
  121. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
  122. LaTeX Font Info: ... okay on input line 4.
  123. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
  124. LaTeX Font Info: ... okay on input line 4.
  125. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
  126. LaTeX Font Info: ... okay on input line 4.
  127. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
  128. LaTeX Font Info: ... okay on input line 4.
  129. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
  130. LaTeX Font Info: ... okay on input line 4.
  131. LaTeX Font Info: Try loading font information for U+msa on input line 4.
  132. (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd
  133. File: umsa.fd 2009/06/22 v3.00 AMS symbols A
  134. )
  135. LaTeX Font Info: Try loading font information for U+msb on input line 4.
  136.  
  137. (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd
  138. File: umsb.fd 2009/06/22 v3.00 AMS symbols B
  139. )
  140. /tmp/gummi_NFF9WW:11: Missing \endcsname inserted.
  141. <to be read again>
  142. \global
  143. l.11 \setcounter{\equation}{0}
  144.  
  145. Here is how much of TeX's memory you used:
  146. 1584 strings out of 495061
  147. 17197 string characters out of 1182622
  148. 63097 words of memory out of 3000000
  149. 4643 multiletter control sequences out of 15000+50000
  150. 7385 words of font info for 29 fonts, out of 3000000 for 9000
  151. 189 hyphenation exceptions out of 8191
  152. 34i,3n,26p,298b,130s stack positions out of 5000i,500n,10000p,200000b,50000s
  153.  
  154. /tmp/gummi_NFF9WW:11: ==> Fatal error occurred, no output PDF file produced!

Thanks for your help!

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun May 19, 2013 1:38 am

Hi,

welcome to the forum!

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

  1. \setcounter{equation}{0}


Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 1 guest