LaTeX forum ⇒ LyXHelp: TeX capacity exceeded [grouping levels]

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Blaazen
Posts: 4
Joined: Fri Jun 01, 2018 7:03 pm

Help: TeX capacity exceeded [grouping levels]

Postby Blaazen » Fri Jun 01, 2018 11:04 pm

Hello,

I need help with following error: TeX capacity exceeded, sorry [grouping levels=255] (or 80000, or 100000, depends if I use pdflatex, LuaTex, ps2pdf or so). I guess it is more related to changes in Lyx (or packages), because I tried 2 years old backup of my document and I get this error too although I'm sure that conversion to pdf worked well at that time.

My Lyx: 2.3.0, OS Linux Chakra 64-bit, Qt 5.10.1, texlive-langgreek 2017.46662-1 (from Arch Linux repository).

Preamble:
\usepackage{footnote}
\makesavenoteenv{tabular}

Log:
  1. This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Chakra) (preloaded format=pdflatex 2018.2.25) 1 JUN 2018 22:53
  2. entering extended mode
  3. restricted \write18 enabled.
  4. %&-line parsing enabled.
  5. **devman2.tex
  6. (./devman2.tex
  7. LaTeX2e <2017-04-15>
  8. Babel <3.12> and hyphenation patterns for 84 language(s) loaded.
  9.  
  10. (/usr/share/texmf-dist/tex/latex/base/article.cls
  11. Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
  12. (/usr/share/texmf-dist/tex/latex/base/size10.clo
  13. File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
  14. )
  15. \c@part=\count79
  16. \c@section=\count80
  17. \c@subsection=\count81
  18. \c@subsubsection=\count82
  19. \c@paragraph=\count83
  20. \c@subparagraph=\count84
  21. \c@figure=\count85
  22. \c@table=\count86
  23. \abovecaptionskip=\skip41
  24. \belowcaptionskip=\skip42
  25. \bibindent=\dimen102
  26. ) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty
  27. Package: fontenc 2017/04/05 v2.0i Standard LaTeX package
  28. (/usr/share/texmf-dist/tex/latex/greek-fontenc/lgrenc.def
  29. File: lgrenc.def 2015/12/07 v0.13.1 LGR Greek font encoding definitions
  30. (/usr/share/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
  31. File: greek-fontenc.def 2015/08/04 v0.13 Common Greek font encoding definitions
  32.  
  33. )) (/usr/share/texmf-dist/tex/latex/base/t1enc.def
  34. File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
  35. LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
  36. )) (/usr/share/texmf-dist/tex/latex/base/inputenc.sty
  37. Package: inputenc 2015/03/17 v1.2c Input encoding file
  38. \inpenc@prehook=\toks14
  39. \inpenc@posthook=\toks15
  40. (/usr/share/texmf-dist/tex/latex/base/latin9.def
  41. File: latin9.def 2015/03/17 v1.2c Input encoding file
  42. )) (/usr/share/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
  43. Package: fancyhdr 2017/06/30 v3.9a Extensive control of page headers and footer
  44. s
  45. \f@nch@headwidth=\skip43
  46. \f@nch@O@elh=\skip44
  47. \f@nch@O@erh=\skip45
  48. \f@nch@O@olh=\skip46
  49. \f@nch@O@orh=\skip47
  50. \f@nch@O@elf=\skip48
  51. \f@nch@O@erf=\skip49
  52. \f@nch@O@olf=\skip50
  53. \f@nch@O@orf=\skip51
  54. ) (/usr/share/texmf-dist/tex/latex/tools/longtable.sty
  55. Package: longtable 2014/10/28 v4.11 Multi-page Table package (DPC)
  56. \LTleft=\skip52
  57. \LTright=\skip53
  58. \LTpre=\skip54
  59. \LTpost=\skip55
  60. \LTchunksize=\count87
  61. \LTcapwidth=\dimen103
  62. \LT@head=\box26
  63. \LT@firsthead=\box27
  64. \LT@foot=\box28
  65. \LT@lastfoot=\box29
  66. \LT@cols=\count88
  67. \LT@rows=\count89
  68. \c@LT@tables=\count90
  69. \c@LT@chunks=\count91
  70. \LT@p@ftn=\toks16
  71. ) (/usr/share/texmf-dist/tex/latex/url/url.sty
  72. \Urlmuskip=\muskip10
  73. Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
  74. ) (/usr/share/texmf-dist/tex/latex/mdwtools/footnote.sty
  75. Package: footnote 1997/01/28 1.13 Save footnotes around boxes
  76. \fn@notes=\box30
  77. \fn@width=\dimen104
  78. ) (/usr/share/texmf-dist/tex/generic/babel/babel.sty
  79. Package: babel 2017/06/29 3.12 The Babel package
  80. (/usr/share/texmf-dist/tex/generic/babel/switch.def
  81. File: switch.def 2017/06/29 3.12 Babel switching mechanism
  82. ) (/usr/share/texmf-dist/tex/generic/babel-english/english.ldf
  83. Language: english 2017/06/06 v3.3r English support from the babel system
  84. (/usr/share/texmf-dist/tex/generic/babel/babel.def
  85. File: babel.def 2017/06/29 3.12 Babel common definitions
  86. (/usr/share/texmf-dist/tex/generic/babel/switch.def
  87. File: switch.def 2017/06/29 3.12 Babel switching mechanism
  88. )
  89. \babel@savecnt=\count92
  90. \U@D=\dimen105
  91. )
  92. \l@canadian = a dialect from \language\l@american
  93. \l@australian = a dialect from \language\l@british
  94. \l@newzealand = a dialect from \language\l@british
  95. )) (/usr/share/texmf-dist/tex/latex/listings/listings.sty (/usr/share/texmf-dis
  96. t/tex/latex/graphics/keyval.sty
  97. Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
  98. \KV@toks@=\toks17
  99. )
  100. \lst@mode=\count93
  101. \lst@gtempboxa=\box31
  102. \lst@token=\toks18
  103. \lst@length=\count94
  104. \lst@currlwidth=\dimen106
  105. \lst@column=\count95
  106. \lst@pos=\count96
  107. \lst@lostspace=\dimen107
  108. \lst@width=\dimen108
  109. \lst@newlines=\count97
  110. \lst@lineno=\count98
  111. \lst@maxwidth=\dimen109
  112. (/usr/share/texmf-dist/tex/latex/listings/lstmisc.sty
  113. File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz)
  114. \c@lstnumber=\count99
  115. \lst@skipnumbers=\count100
  116. \lst@framebox=\box32
  117. ) (/usr/share/texmf-dist/tex/latex/listings/listings.cfg
  118. File: listings.cfg 2015/06/04 1.6 listings configuration
  119. ))
  120. Package: listings 2015/06/04 1.6 (Carsten Heinz)
  121. No file devman2.aux.
  122. \openout1 = `devman2.aux'.
  123.  
  124. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 57.
  125. LaTeX Font Info: ... okay on input line 57.
  126. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 57.
  127. LaTeX Font Info: ... okay on input line 57.
  128. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 57.
  129. LaTeX Font Info: ... okay on input line 57.
  130. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 57.
  131. LaTeX Font Info: ... okay on input line 57.
  132. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 57.
  133. LaTeX Font Info: ... okay on input line 57.
  134. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 57.
  135. LaTeX Font Info: ... okay on input line 57.
  136. LaTeX Font Info: Checking defaults for LGR/cmr/m/n on input line 57.
  137. LaTeX Font Info: Try loading font information for LGR+cmr on input line 57.
  138. (/usr/share/texmf-dist/tex/latex/cbfonts-fd/lgrcmr.fd
  139. File: lgrcmr.fd 2017/07/29 v1.2 Greek European Computer Regular
  140. )
  141. LaTeX Font Info: ... okay on input line 57.
  142. \c@lstlisting=\count101
  143. ! TeX capacity exceeded, sorry [grouping levels=255].
  144. \savenotes ->\begingroup
  145. \if@savingnotes \else \@savingnotestrue \let \@foot...
  146. l.67 \maketitle
  147.  
  148. If you really absolutely need more capacity,
  149. you can ask a wizard to enlarge me.
  150.  
  151.  
  152. Here is how much of TeX's memory you used:
  153. 3337 strings out of 492990
  154. 47839 string characters out of 6138692
  155. 97869 words of memory out of 5000000
  156. 6914 multiletter control sequences out of 15000+600000
  157. 5935 words of font info for 17 fonts, out of 8000000 for 9000
  158. 1141 hyphenation exceptions out of 8191
  159. 26i,1n,43p,462b,630s stack positions out of 5000i,500n,10000p,200000b,80000s
  160. ! ==> Fatal error occurred, no output PDF file produced!


Line 57 of my lyx file is:
56 \use_bibtopic false
57 \use_indices false
58 \paperorientation portrait

IMO I don't have anything special in my document, mainly text, tables, toc.

Thanks for help, if you need more info, let me know.

Vojtěch
Last edited by Blaazen on Sat Jun 02, 2018 3:21 pm, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9151
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Jun 02, 2018 11:33 am

Hi Vojtěch,

welcome to the forum!

Can you perhaps make a pdfLaTeX export in LyX, and post it here? At least until the \maketitle line.

Stefan
Site admin

Blaazen
Posts: 4
Joined: Fri Jun 01, 2018 7:03 pm

Postby Blaazen » Sat Jun 02, 2018 1:31 pm

Thanks for reply.

I got the same error if I use preview (Ctrl+R) or File -> Export -> pdflatex.

The log is the same as in my first post.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9151
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Jun 02, 2018 1:40 pm

Export to pdfLaTeX doesn't produce a PDF and cannot bring the error. I'd like to se the exported .tex file.

Stefan
Site admin

Blaazen
Posts: 4
Joined: Fri Jun 01, 2018 7:03 pm

Postby Blaazen » Sat Jun 02, 2018 2:09 pm

I understand. This is snippet from beggining to \maketitle. Whole tex file has 40kB and ~1700 lines.

  1. %% LyX 2.3.0 created this file. For more info, see <!-- m --><a class="postlink" href="http://www.lyx.org/">http://www.lyx.org/</a><!-- m -->.
  2. %% Do not edit unless you really know what you are doing.
  3. \documentclass[english]{article}
  4. \usepackage[LGR,T1]{fontenc}
  5. \usepackage[latin9]{inputenc}
  6. \usepackage{fancyhdr}
  7. \pagestyle{fancy}
  8. \usepackage{longtable}
  9. \usepackage{url}
  10. \usepackage{footnote}
  11.  
  12. \makeatletter
  13.  
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
  15.  
  16. \makesavenoteenv{tabular}
  17.  
  18. \DeclareRobustCommand{\greektext}{%
  19. \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
  20. \DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
  21. \ProvideTextCommand{\~}{LGR}[1]{\char126#1}
  22.  
  23. %% Because html converters don't know tabularnewline
  24. \providecommand{\tabularnewline}{\\}
  25.  
  26. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
  27. \newenvironment{lyxcode}
  28. {\par\begin{list}{}{
  29. \setlength{\rightmargin}{\leftmargin}
  30. \setlength{\listparindent}{0pt}% needed for AMS classes
  31. \raggedright
  32. \setlength{\itemsep}{0pt}
  33. \setlength{\parsep}{0pt}
  34. \normalfont\ttfamily}%
  35. \item[]}
  36. {\end{list}}
  37. \newenvironment{lyxlist}[1]
  38. {\begin{list}{}
  39. {\settowidth{\labelwidth}{#1}
  40. \setlength{\leftmargin}{\labelwidth}
  41. \addtolength{\leftmargin}{\labelsep}
  42. \renewcommand{\makelabel}[1]{##1\hfil}}}
  43. {\end{list}}
  44.  
  45. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
  46. \usepackage{footnote}
  47. \makesavenoteenv{tabular}
  48.  
  49. \makeatother
  50.  
  51. \usepackage{babel}
  52. \usepackage{listings}
  53. \renewcommand{\lstlistingname}{Listing}
  54.  
  55. \begin{document}
  56.  
  57. \lhead{\url{http://www.ecsas.org}}
  58.  
  59. \title{Analoga ECSAS Developer's Manual}
  60.  
  61. \author{Vojt\v{e}ch \v{C}ihák\\
  62. <!-- e --><a href="mailto:vojtech.cihak@atlas.cz">vojtech.cihak@atlas.cz</a><!-- e -->\\
  63. Czech Republic}
  64.  
  65. \maketitle

User avatar
Stefan Kottwitz
Site Admin
Posts: 9151
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Jun 02, 2018 3:07 pm

Very good! Now I can test it and could reproduce the error and test the fix. In this export, we see that LyX already defined \makesavenoteenv{tabular}, seen in line 16 of the export. As you added it to the preamble yourself too, seen in line 47 of the export, it's called twice and that causes the error, this double modification. Just remove it from your document preamble.

Stefan
Site admin

Blaazen
Posts: 4
Joined: Fri Jun 01, 2018 7:03 pm

Postby Blaazen » Sat Jun 02, 2018 3:19 pm

Yes, it works now! Thank you very much!


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 6 guests