[Tex/LaTex] TeX capacity exceeded, sorry [input stack size=5000] after loading “hanging module” in both parent and child documents in LyX Classicthesis

capacityclassicthesiserrorslyx

I use classicthesis-LyX-v4.2_biblatex_bibtex8

I got this error message when I load hanging module into the parent document (probably my personal issue, as I tried it on the newly downloaded template, there was no such message)
Error description: "If you really absolutely need more capacity,
you can ask a wizard to enlarge me."

Action 1:

If I remove

  1. the child document bibliography.lyx, which contains all references (I don't have time to use database, so I just copied the endnote reference list from word) converted from standard environment to hanging environment (by loading hanging module)
  2. the hanging module

from the parent document (classicthesis), then everything is back to normal again, no error message at all.

Action 2:

If I replace the bibliography.lyx in a newly downloaded Classicthesis template with my created bibliography.lyx, no errors at all.

Action 3:

I copied the parent document from the newly downloaded template to replace the existing one, then the same error message pops up as well.

Therefore, I presume it is caused by a clash between the created bibliography.lyx and my written chapters. Is it because my thesis has too much stuff? How to enlarge the capacity?

Best Answer

Based on hanging package chokes on apostrophes,

simply add \usepackage[notquote]{hanging} to Document->Setting->Latex Preamble for both the parent document (that is, classicthesis.lyx) and the child document in which you want to use hanging module (for example, Bibliography.lyx) solves the problem!

Related Question