TeXstudio 不接受内存更改

TeXstudio 不接受内存更改

我的 TeX 文件相当大pgfplots。我使用的是 TeXstudio 和 PdfLaTeX。我的 PdfLaTeX 命令如下所示 pdflatex.exe -synctex=1 -src-specials -interaction=nonstopmode -enable-write18 -main-memory=50000000 -extra-mem-top=50000000 -extra-mem-bot=50000000 -pool-size=5000000 -buf-size=5000000 %.tex。当我想编译 TeX 文件时,我收到错误 (main.log):尽管我增加了主内存,但! Package tikz Error: Sorry, the system call 'pdflatex -enable-write18 -halt-on -error -interaction=batchmode -jobname "graphics/pgfplots/main-figure4" "\def\t ikzexternalrealjob{main}\input{main}"' did NOT result in a usable output file ' graphics/pgfplots/main-figure4' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -sh ell-escape'. Sometimes it is also named 'write 18' or something like that. Or m aybe the command simply failed? Error messages can be found in 'graphics/pgfplo ts/main-figure4.log'. If you continue now, I'll try to typeset the picture.图中的日志文件告诉我 。! TeX capacity exceeded, sorry [main memory size=3000000]. \pgfplotslistpushbackglobal ...e \t@pgfplots@toka

我已经在\usepgfplotslibrary{external}使用\tikzexternalize[shell escape=-enable-write18]

我做错了什么?有没有办法扩展pgfplots库本身的内存?我必须坚持使用 PdfLaTex,因为我使用的模板仅与 PdfLaTex 兼容(因此 LuaLaTex 不是选项)。

更有趣的是,在我的 MWE 中,我可以处理大约 1MB 大小的文件,而在我的完整文档中,我只能处理大约 120kB 大小的文件。设置是相同的。

妇女权利委员会:

\documentclass[a4paper,10pt]{scrartcl}  
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\usepackage[colorlinks = true, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black, linktocpage=true]{hyperref}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{tikz}       % Zeichnungen

\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\pgfplotsset{compat=1.12,height=0.3\textheight,legend cell align=left,tick scale binop=\times}
\pgfplotsset{grid style={loosely dotted,color=darkgray!30!gray,line width=0.6pt},tick style={black,thin}}
\pgfplotsset{every axis plot/.append style={line width=0.8pt}}
\usepgfplotslibrary{external}
\tikzexternalize[shell escape=-enable-write18] % fuer MikTex
\tikzsetexternalprefix{graphics/pgfplots/} % Ordner muss ev. zuerst haendisch erstellt werden

\title{Minimal}
\author{}
%\date{\today}

\begin{document}

\section{sec1}


\begin{figure}[htbp]
    \centering
    \input{graphics/extfig.tex}
    \caption{caption1} 
    \label{fig:irfan} 
\end{figure}

\end{document}

相关内容