here is my MWE:
documentclass[10pt, a4paper, twoside, ngerman]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{siunitx}
\usepackage{geometry}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps, groupplots,external}
\usetikzlibrary{pgfplots.colormaps}
\tikzexternalize
\tikzsetexternalprefix{external_figs/}
\begin{document}
\begin{figure}
\centering
\input{fig.tex}
\end{figure}
\end{document}
The figure is a surface plot with a lot of datapoints which I cannot sample down further. I'm using TeXstudio as TeX-environment and Pdflatex with the following arguments
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex
I still get the error
TeX capacity exceeded, sorry [main memory size=3000000].
I'm aware of the possibility to use LuaLaTeX (which I already used in a prior work) but the problem with it is (was), that it always took ages to build the file if the file contains more such memory intense images (apparently all images were recompiled everytime I built the document even though they didn't change).
Can anyone think of a good, stable and sustainable solution?
fig.tex? Can you show some representative lines from the file? – Mico Oct 24 '20 at 08:25