GeneralTeX capacity exceeded [save size=80000]

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

TeX capacity exceeded [save size=80000]

Post by bstex »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

TeX capacity exceeded [save size=80000]

Post by Stefan Kottwitz »

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
LaTeX.org admin
bstex
Posts: 69
Joined: Mon Oct 23, 2017 10:22 am

TeX capacity exceeded [save size=80000]

Post by bstex »

Hi,
my book is full of greek text combined with english text.
I have this code on my preamble:

Code: Select all

\usepackage[Greek,Latin]{ucharclasses}

% Language declaration
\usepackage{xltxtra}

\usepackage{polyglossia}
\setmainlanguage{greek}
\setotherlanguages{english}

\setTransitionsForGreek{\selectlanguage{greek}}{\selectlanguage{english}}

% Fonts
\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: 10340
Joined: Mon Mar 10, 2008 9:44 pm

TeX capacity exceeded [save size=80000]

Post by Stefan Kottwitz »

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
LaTeX.org admin
bstex
Posts: 69
Joined: Mon Oct 23, 2017 10:22 am

TeX capacity exceeded [save size=80000]

Post by bstex »

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???
Post Reply