使用shell转义进行Latex Tikz外部化不起作用

时间:2017-06-23 13:34:00

标签: memory latex tikz

我试图使用Tikz外部化,因为对于某些tikz图片,文件变大并超出内存大小。我发现了很多其他类似问题的主题,但是没有解决方案对我有用,或者我没有很好地实现它们。 我正在使用Winedt 10.2(也尝试过Winedt 9) Mixtex 2.9

报告的结构:

Final_Report.tex

- Layout.tex

- Simulation_model.tex

---- plot_baseunit.tex(Tikz picture)

Final_Report.tex

\documentclass[10pt,a4paper]{report}
\input{./Lay_out/layout.tex}`
\begin{document}
\input{./Chapters/Simulation_Model/Simulation_Model.tex}
\end{document}

layout.tex

\usepackage{tikz,pgfplots}
\usetikzlibrary{arrows,decorations.pathmorphing,shadows,fit,positioning,shapes,chains, plotmarks,automata,positioning}
\usepackage{subcaption}
%\usepackage[pdftex]{graphicx}
\usetikzlibrary{external,calc,patterns,angles,quotes,shapes.geometric,positioning}
\pgfplotsset{plot coordinates/math parser=false}
\tikzexternalize[prefix=figures/,shell escape=-enable-write18]
\newlength\figureheight
\newlength\figurewidth
%Standard figure dimension
\newcommand{\plotx}{12.0cm}
\newcommand{\ploty}{6.0cm}
\newcommand{\plotysub}{3.0cm} %y-dimension of seperate subplots
%Subplot dimensions (2 plots wide subplots)
\newcommand{\subtwoplotx}{5.25cm}
\newcommand{\subtwoploty}{4.5cm}
\tikzstyle{block} = [draw, rectangle, node distance=2.0cm, minimum height=3em, minimum width=4em]
\tikzstyle{sum} = [draw, circle, node distance=2.0cm]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\tikzstyle{pinstyle} = [pin edge={to-,thin,black}]

Simulation_model.tex

\begin{figure}[H]
\resizebox{\textwidth}{!}{%
\input{./figures/plot_baseunit.tex}
}%
\caption{The throughput and cycle time of the production line plotted against the process time of a base unit workstation, as bottleneck of the system. The horizontal dotted lines represent the designed throughput and cycle time of the Honda/JLR(green) and Audi/Porsche roof systems(purple).}
\label{fig:Base_unit_through}
\end{figure}

当我尝试使用PDFTeXify运行它时会出现以下错误。

   (figures/plot_baseunit.tex
===== 'mode=convert with system call': Invoking 'pdflatex -halt-on-error -interaction=batchmode -jobname 
"figures/Final_Report-figure0" "\def\tikzexternalrealjob{Final_Report}\input{Final_Report}"' ========

! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error-interact
ion=batchmode -jobname "figures/Final_Report-figure0" "\def\tikzexternalrealjob
{Final_Report}\input{Final_Report}" 

没有产生可用的输出文件     'figures / Final_Report-figure0'(预期的.pdf:.jpg:.jpeg:.png :)。     请确认您已启用系统调用。对于pdflatex,这是'pdflatex -shell-escape'。      有时它也被命名为“写18”或类似的东西。或者命令可能只是失败了?      错误消息可以在'figures / Final_Report-figure0.log'中找到。如果你现在继续,我会尝试排版图片。

如果我按下输入右边的数字出来,但这对大文件不起作用,然后超出内存大小。

提前致谢!

0 个答案:

没有答案