The tag has no usage guidance.

learn more… | top users | synonyms

55
votes
1answer
1k views

Can TeX generate “heap dumps” to analyze+optimize out-of-memory situations?

As package author of the memory-extensive package pgfplots, I have been asked to analyze some out-of-memory situation. I could identify the "culprit"; it was some call to \pdfmdfivesum in which it ...
39
votes
5answers
41k views

Tex capacity exceeded, sorry [input stack size = 5000]

This is the error I am getting since I have added some new references to my .bib file. I think is more than a filled stack. Any ideas? references.bib It was requested a minimum working example but I ...
31
votes
2answers
3k views

Components of (La)TeX's memory usage

After reading Increase LaTeX capacity and not being able to summon Gandalf1, I am curious to know what contributes to the components of memory usage during a (La)TeX compilation. Take the above post's ...
26
votes
2answers
703 views

How good a juggler is TeX?

I recently made an adaptation of pgfpages which allows one to gather in several typeset pages and then lay them out in some layout over several physical pages (the original pgfpages only allows one ...
24
votes
1answer
718 views

Are there limits to the number of new macros or commands in TeX/LaTeX

Is there a maximum number of new definitions such as \def\myNewDefA{foo} \def\myNewDefB{bar} ... \newcommand\myNewMacroA{foo} \newcommand\myNewMacroB{bar} one can have in a document typeset with ...
22
votes
1answer
281 views

Summary of TeX Capacity Limits

I seem to often run into capacity issues and have been upping the limits each time. There are several question on this site pertaining to these. However, there seems to be some conflicting information ...
18
votes
2answers
12k views

Increasing TeX's main memory

I have a plot with a lot of measurement datapoints. I exported this plot from Matlab2tikz. When I tried to compile, it said that the memory was exceeded. I found this question and it tells me that I ...
16
votes
2answers
577 views

Tex capacity exceeded compiling only 50 lines latex file (pdftex), seg. fault (lualatex)

This is one of the strangest things I've seen in Latex (and I have seen many strange things). 50 lines of code, almost all of it is verbatim. Any small change to the verbatim can cause the error to ...
14
votes
1answer
239 views

why lualatex gives erorr “Too many open files” but pdflatex does not on same latex file?

Using TL 2015 on Linux. I have a latex file which includes graphics, all in pdf format. All the images are included using the call ...
12
votes
2answers
6k views

matlab2tikz - TeX out of memory

I am using matlab2tikz to import figures from MATLAB to tex. However I quickly get the message TeX capacity exceeded, sorry [main memory size = 3000000]. I have tried expand main memory using ...
11
votes
1answer
4k views

TeX capacity exceeded (save size)

I am generating a fairly large index of .txt, .tex, and .pdf files. This process has worked for a long time, and the size of the index is not the issue. I have added logic to insert additional links ...
11
votes
2answers
181 views

increase \hyphenation{word1 word-2…} capacity

We use LaTeX to typeset a large collection of books with many proper names. We use the \hyphenation{word1 word-2...} command to specify words that should not be hyphenated and to suggest hyphenation ...
11
votes
1answer
790 views

Tex capacity exceeded (string characters) (well it's about to be exceeded)

As per my earlier question TeX capacity exceeded (save size), I am generating a fairly large index of .txt, .tex, and .pdf files. This process has worked for a long time, and the size of the index is ...
10
votes
3answers
813 views

How to use a large number of arbitrary rgb colors in a TikZ image?

I have a document with some TikZ images in it, which are automatically generated from a program I have written. All images are fairly similar, and each of them contains of a large number of squares ...
10
votes
1answer
346 views

Why does TeX have limited capacity?

With today's computers having several gigabytes of memory, why does TeX still have such limited capacity, and why are modern TeX installations not adjusted for higher capacity by default? Why is ...
8
votes
0answers
6k views

! TeX capacity exceeded, sorry [main memory size=3000000] [closed]

I wrote a C++ code, which will create a LaTeX file with Tikz commands. The tex file the code creates is pretty long i.e. around 43,000 lines. However, when I try to compile it gives me the following ...
7
votes
1answer
976 views

No room for a new \mathgroup

Using MnSymbol, bm and pxfonts together causes No room for a new \mathgroup MWE: \documentclass{article} \usepackage{MnSymbol} \usepackage{bm} \usepackage{pxfonts} \begin{document} ...
7
votes
1answer
560 views

Lualatex capacity exceeded with Gb's of free RAM

I'm trying to compile dense graphs generated my matlab2tikz (file size ~ 50Mb). I'm running lualatex and externalising with lualatex \tikzset{external/system call={lualatex ...
6
votes
2answers
236 views

How to increase the node memory size in ConTeXt?

With a very large document, after about 30 minutes of compiling with context, I get this error: ! TeX capacity exceeded, sorry [node memory size=100987760]. I added a line to texmf.cnf which says ...
6
votes
2answers
180 views

Does \let use pointers?

Does \let really create a new control sequence, or does it just assign a pointer to an already defined control sequence? Knuth says that: let\cs=<token> gives \cs the token's current ...
6
votes
1answer
476 views

XeLaTeX warning - objects still allocated in memory

I'm typesetting a document in XeLaTeX and keep getting this message: ** WARNING ** 1735 memory objects still allocated You may want to report this to tex-k@tug.org What does it mean? Am I to worry ...
6
votes
1answer
89 views

How can I retrieve the number of currently defined macros?

The following will max-out TeX's memory: % arara: pdftex \nonstopmode \input expl3-generic \relax \ExplSyntaxOn \int_zero:N \l_tmpa_int \int_while_do:nn { \l_tmpa_int < 490000 } { ...
6
votes
1answer
142 views

How can I reduce the memory required for following example (nested ‘for’ loops)

I want to plot a convolution of two spectra. The first one is a weighted dirac comb, the second a defined function. To do this I used two nested for loops but the calculation exceed the Tex capacity ...
5
votes
1answer
111 views

is it possible to have too many things in preamble?

this might seem like dumb question, but .. I'm going to ask it anyway since I'm not an informatician I don't know quite how this works actually. I'm working on my Phd now and I already have ...
5
votes
1answer
657 views

No room for a new \read/\write

I've already searched a lot about it and there seems to be no possible way of increasing the number of files (La)TeX can open. This for example, gives an explanation about the error message. I've also ...
5
votes
1answer
4k views

How to increase bufsize for lualatex or pdflatex?

I work with large TikZ graphics for which the default bufsize of lualatex/pdflatex is too small: Unable to read an entire line---bufsize=200000. Please increase buf_size in texmf.cnf. Is there a ...
5
votes
0answers
352 views

LuaLaTeX — too high memory usage [closed]

I've recently made my project buildable under LuaLaTeX. This is a bibliography database project which uses biblatex and biber to compile the database to produce something about 66-paged pdf file. ...
4
votes
1answer
4k views

How to increase pool size in MiKTeX 2.9

I'm using MiKTex 2.9.4196 with TeXnicCenter 2.0 beta on Windows 7. As I have to compile very large tikzpictures I use tikz externalize. Nevertheless some tikzpicture still produce an error. ! TeX ...
4
votes
1answer
148 views

increasing hard coded memory limits of latex

I am drawing a 3d-surface plot with pgfplots, with input data from some simulation results. As the shader-option faceted interp results in huge pdf-files, I wanted to switch to faceted and increase ...
4
votes
1answer
461 views

Displaying memory variable values

TeX uses a variety of files to set the maximum memory of various items, e.g. "pool size". Is there a command which will print the values of all of these variables?
4
votes
1answer
206 views

XeLaTeX RAM usage problem (bug?)

There is something wrong with Xe(La)TeX's memory-management with some fonts: Compiling the following MWE with up-to-date xelatex on Mac OS X 10.7.5 uses up to 2.2 GB of the total 4 GB RAM available ...
4
votes
1answer
235 views

Running out of main memory when using loops in TikZ

I have a TikZ drawing (namely, pairs of rulers) that I want to replicate 12 times, side by side. I'm using foreach constructs to help me in this process and to draw the 5-cm, 1-cm and 1-mm ticks for ...
4
votes
1answer
2k views

TeX capacity exceeded, sorry [save size=50000]

I am on Mac OS X Lion latest, and get the error trying to compile my large multi-page project. This happens after adding one more code listing (shown below). The full error is: TeX capacity ...
4
votes
0answers
248 views

Forest with ~500 nodes runs out of TeX memory [duplicate]

When using Forest package to chart an organizational structure, I have to limit it to 4-5 hierarchy levels, as both pdflatex or lualatex throw an error ! TeX capacity exceeded, sorry [save ...
4
votes
0answers
1k views

! TeX capacity exceeded, sorry [input stack size=5000]. \maketitle [closed]

I have seen many threads about this error, but none seems to help with my particular issue. This is my code, which including suggestions for the required packages, I intend for it to be the minimum ...
3
votes
5answers
27k views

Error Latex TeX capacity exceeded, sorry [input stack size=5000]

I want to test this template http://students.engr.scu.edu/~sschaeck/latexforthesis/. when i run the makefile i get this error .Please what does it mean this error here the code : ...
3
votes
1answer
194 views

Pdflatex on file with large amount of pictures

I have a tex file that's generated by an automated bioinformatics pipeline as a report. Usually, this is roughly 50-150 pages, but that's based on 1-3 samples. It contains many quality control graphs. ...
3
votes
1answer
72 views

! TeX capacity exceeded using glossaries

I am trying to generate a list of math symbols, based on How to create a list of symbols where symbols can be used in math mode?. When I try to use the code below it gives me an error of '! TeX ...
3
votes
1answer
913 views

Warning for TeX main capacity exceeded when loading files with \pgfplotstableread

I am loading quite a few data files via \pgfplotstableread, but do not further use them via pgfplots. I just kept them in the preamble and switched to plotting them in a standalone document. But now ...
3
votes
1answer
1k views

How to increase the memory if I get this error TeX capacity exceeded

I am using the following codes to input DNA sequences from fasta format (177 sequences with 1140 base pair long) Using texshade package but I had the following error: my system is: Windows 7 (64 bit) ...
3
votes
1answer
202 views

TeX capacity exceeded, sorry [input stack size=5000] error with glossaries

I'm getting the following error when I simply include \gls{rsh} in my paper, and there's clearly an okay reference to rsh in my file glossaries.tex, which looks like the entry below: ...
3
votes
1answer
650 views

Compiler error “save size exceeded”

I have a problem with compiling my thesis. Due to a new plot I inserted, it lo longer compiles. According to this guide, i increased the limits for lualatex as follows: pool_size=5000000 ...
3
votes
0answers
160 views

Texshop memory leak (every texing increases memory usage) [closed]

so I'm having precisely the issue described here: https://sourceforge.net/p/texshop/bugs/87/ I'm using TeXShop 3.58 on a Macbook pro running El Capitain. Roughly speaking, I'm working on my thesis ...
3
votes
1answer
614 views

xelatex memory problem [closed]

I have problem while running xelatex: TeX capacity exceeded, sorry [main memory size=1500000]. I tried increasing memory limits in texmf.cnf (also ran fmtutil-sys), but I hit maximum allowed and it ...
2
votes
2answers
242 views

Forest causing PdfLatex to run out of memory

I asked this question almost a year ago but did not have much luck. MikTex's PDFLaTeX has been updated since, but the error is still there: ! TeX capacity exceeded, sorry [save size=50000]. Full ...
2
votes
1answer
2k views

initexmf error — to increase pdflatex memory [closed]

I am trying to increase main_memory for pdflatex compiler in win7 64. Using initexmf didn't work. This is the error I get: >initexmf --edit-config-file=pdflatex initexmf: Invalid argument. ...
2
votes
1answer
1k views

Increasing the size of the memory: not all files are built successfully

I am trying to compile a large file which contains a tikz picture with more data points than tex can handle. Following the questions here and here I set to increase the capacity of tex by changing ...
2
votes
1answer
29 views

A forest tree exceeds TeX input stack size = 5000

I am using forest 2015/07/15 v1.0.10 in texlive-pictures 2015.38755. The code below \documentclass[oneside,12pt]{article} \usepackage[a4paper]{geometry} \usepackage{microtype} ...
2
votes
1answer
73 views

Texworks and texmf.cnf (export command?)

I created a texmf.cnf file on ~\texmf\mytexncf\. I added the export command export TEXMFCNF=~/texmf/mytexcnf: in my source shell files (.bashrc and .zshrc). Then I ran texhash. When I execute a ...
2
votes
1answer
193 views

10 words of extra memory for PDF output out of 10000 (max. 10000000)

can someone explain me the message that appears in PDF statistics log file, if it is important how to avoid it ? 10 words of extra memory for PDF output out of 10000 (max. 10000000) I am using ...