
큰 문서(박사 학위 논문)를 컴파일하려고 하는데 을 사용하지 않고 컴파일하는 데에는 문제가 없지만 external
해당 기능을 활성화하자마자 문제가 발생합니다. 지금까지 나는 다양한 다른 유사한 주제에서 답을 찾지 못했습니다. lualatex
과 를 pdflatex
모두 활성화한 상태에서 사용하여 컴파일을 시도했습니다 -shell-escape
. 문서 자체는 잘 컴파일되지만 이미지에 도달하면 오류가 발생합니다 TikZ
. 이 오류는 MikTeX와 Ubuntu의 TeX Live를 사용하고 터미널과 TeXmaker에서 직접 실행하는 Windows 컴퓨터에서 재현 가능합니다.
TikZ
이상하게도 동일한 패키지 목록과 구문을 사용하지만 MWE의 파일 에 대한 호출만 포함하면 성공적으로 작동하는 문서가 생성되므로 내 문서나 파일 시스템 자체에 작업을 수행할 때 제대로 작동하지 못하게 하는 무언가가 분명히 있습니다. 실제 논문 문서.
어쨌든 .log
실제 문서에서 파일을 확인하면 다음과 같은 내용이 나타납니다.
! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact
ion=batchmode -jobname "img/cache/sac-thesis-figure0" "\def\tikzexternalrealjob
{sac-thesis}\input{sac-thesis}"' did NOT result in a usable output file 'img/ca
che/sac-thesis-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify
that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-esca
pe'. Sometimes it is also named 'write 18' or something like that. Or maybe the
command simply failed? Error messages can be found in 'img/cache/sac-thesis-fi
gure0.log'. If you continue now, I'll try to typeset the picture.
See the tikz package documentation for explanation.
.log
그림 자체에 대한 파일을 확인할 때 다음 오류로 종료됩니다.
\@writefile{toc}{}
! Undefined control sequence.
\pgfmathsetlength ...\pgfmath@onquick #2\pgfmath@
{\begingroup \pgfmath@sele...
l.34 \end{tikzpicture}
참고로 .tikz
제가 컴파일하려는 파일은 다음과 같습니다. 참조 .pdf
된 그림은 MATLAB을 사용하여 만든 그림이며 이 경우 그림에 주로 주석을 달고 있습니다(비록 TikZ
거기에는 훨씬 더 많은 데이터가 많은 그림이 있지만). 솔직히 .pdf
거기에 어떤 사진이라도 놓아서 시도해 볼 수 있지만 여기서 문제의 본질은 바뀌지 않을 것입니다.
\begin{tikzpicture}
% Styles
[pointer/.style={thick}]
\node[anchor=south west] (diagram) at (0,0)
{\includegraphics[width=4.5in]{img/ch1/2mode/5DC-2mode.pdf}};
\begin{scope}[x={(diagram.south east)},y={(diagram.north west)}]
% Temporary gridlines
%\draw[step=0.1,gray,ultra thin] (0,0) grid (1,1);
% Wall label
\draw {(0.5,0.08)} node[anchor=center,color=white] {Wall};
% Trapped acoustic wave
\draw {(0.66,0.2)} node[anchor=west,color=red] {Trapped acoustic wave};
% Sonic line
\draw {(0.55,0.29)} node[anchor=west] {Sonic line: $\overbar{M}^2 = 1$, $y = y_a$};
% Inner layer
\draw {(0.05,0.2)} node[anchor=west] {$\overbar{M} > 1$};
% Outer layer
\draw {(0.05,0.4)} node[anchor=west] {$\overbar{M} < 1$};
% U(y)
\draw {(0.45,0.66)} node[anchor=center,color=blue] {$U(y)$};
% y-axis
\draw {(0.24,0.94)} node[anchor=east] {$y$};
\end{scope}
\end{tikzpicture}
솔직히 지금은 아이디어가 부족하고 externalize
문서에 많은 수치가 포함될 예정이며 컴파일 시간이 통제하기 어려워질 것이기 때문에 정말 하고 싶습니다.