Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex main memory not sufficient #1

Open
Aypac opened this issue May 17, 2018 · 3 comments
Open

Latex main memory not sufficient #1

Aypac opened this issue May 17, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Aypac
Copy link
Owner

Aypac commented May 17, 2018

If using larger designs you might run into the [...] TeX capacity exceeded, sorry [main memory size=xxx]. error.

Quickfix:

Find the latex config file kpsewhich -a texmf.cnf and modify the memory size by including/changing the value of, e.g. : main_memory = 3000000 (see comments in texmf.cnf file for more details.) Then run the following command as root to recreate the format files: fmtutil-sys --all

(Taken from: https://tex.stackexchange.com/questions/7953/how-to-expand-texs-main-memory-size-pgfplots-memory-overload )

Long-Term fix:
This can theoretically prevented by rendering each layer individually, using:

\usetikzlibrary{external} 
\tikzexternalize`

and use a separate tikz-environment. I have not solved how to make the layers overlap perfectly then (especially taking into account, that they might have different sizes), but this should be solvable.

@Aypac Aypac added the enhancement New feature or request label May 17, 2018
@Aypac Aypac self-assigned this May 17, 2018
@Aypac
Copy link
Owner Author

Aypac commented May 21, 2018

Also take into account, that apparently main_memory must be smaller or equal than 12,435,455 [Source]
But you can also set extra-mem-bot and extra-mem-top.

@Aypac
Copy link
Owner Author

Aypac commented May 22, 2018

One more remark: maybe force all PDFs to be the same size (bounding box of all bounding boxes) and then just overlay the pdfs.

The location and naming of the resulting PDFs can be controlled:

\usepgfplotslibrary{external} 
\tikzexternalize[prefix=TikzPictures/]
\tikzsetnextfilename{name_of_resulting_pdf}

[Source]

@Aypac
Copy link
Owner Author

Aypac commented May 24, 2018

Switching to Lulatex (implemented with 427c3d1) could be a solution, since lualatex is requesting memory dynamically. I've not tested this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant