LaTeX forum ⇒ GeneralTeX capacity exceeded [save size=80000]

LaTeX specific issues not fitting into one of the other forums of this category.
bstex
Posts: 30
Joined: Mon Oct 23, 2017 10:22 am

TeX capacity exceeded [save size=80000]

Postby bstex » Mon Nov 20, 2017 4:41 pm

Hi,
my .tex file is pretty big at this time and when I compile it, it says:
! TeX capacity exceeded, sorry [save size=80000].
<recently read> \__int_eval_end:
l.51771 \select@language {greek}
...
57i,0n,83p,10496b,80001s stack positions out of 15000i,500n,10000p,200000b,80000s


I tried this and this
(which are pretty much the same:
the first one says to do "sudo fmtutil-sys --all",
the second says to "sudo texhash" after the texmf.cnf edit)

but no luck.
In fact, after changing the texmf.cnf and adding the appropriate line of code (save_size = 200000), I think that nothing happens, because after trying to compile my .tex again, the log error is EXACTLY the same (save size=80000), like it didn't update the "save size" to 200000.
Any help, please?

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

Postby Stefan Kottwitz » Tue Nov 21, 2017 3:48 pm

Such capacity exceeded errors are often caused by errors, not by the size of a document. An example is a recursive definition. I guess we need to see some code, such as the document preamble, and the code around the point where the error occurs.

Stefan
Site admin

bstex
Posts: 30
Joined: Mon Oct 23, 2017 10:22 am

Postby bstex » Tue Nov 21, 2017 11:32 pm

Hi,
my book is full of greek text combined with english text.
I have this code on my preamble:
  1. \usepackage[Greek,Latin]{ucharclasses}
  2.  
  3. % Language declaration
  4. \usepackage{xltxtra}
  5.  
  6. \usepackage{polyglossia}
  7. \setmainlanguage{greek}
  8. \setotherlanguages{english}
  9.  
  10. \setTransitionsForGreek{\selectlanguage{greek}}{\selectlanguage{english}}
  11.  
  12. % Fonts
  13. \setmainfont[Kerning=On,Mapping=tex-text]{Myriad Pro}

and I think that it is the continuous change of the language between greek/english inside my book that causes the capacity exceeded error.

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

Postby Stefan Kottwitz » Tue Nov 21, 2017 11:46 pm

Frequent changes don't cause such an error. It should be caused by code that you did not show yet.

Are you able to narrow it down and post it here?

Stefan
Site admin

bstex
Posts: 30
Joined: Mon Oct 23, 2017 10:22 am

Postby bstex » Wed Nov 22, 2017 2:30 pm

Well, my book is already separated into 15 files and I use another file (I call it "book.tex") with the preamble and \include command to combine them.
All 15 files have about 9000 lines of code, so it's not so easy for me to narrow it!

BUT I found this:
I put the preamble to each one of the 15 files and they were compiled perfectly.
If I combine all the 9000 lines of code into one file, this "TeX capacity exceeded [save size=80000] error" appears again.

Does this mean that my book.tex has the problem?

Also, I noticed that, despite the error, the pdf file is created perfectly. So, should I ignore the capacity error???


Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests