
이 최소 예에서는 오류(정의되지 않은 제어 시퀀스)가 발생합니다.
% !TEX TS-program = pdflatexmk
\documentclass{article}
\usepackage{tikz}
\usepackage{preview}
\begin{document}
Hello.
\end{document}
tikz 패키지가 제거되면 정상적으로 컴파일됩니다. usepackage 명령 중 하나를 제거하면 프로그램이 컴파일될 수 있습니다. 또한 둘 다 포함하되 미리보기에 [active] 옵션을 추가하면 스크립트를 컴파일할 수 있습니다.
로그 파일을 붙여넣었습니다여기.
답변1
Ulrike Fischer는 이것이 현재 나열된 버그 보고서라고 언급했습니다.여기그리고여기. 제안된 솔루션을 보존하기 위해 간단한 가이드를 포함합니다.
kpsewhich pgfutil-latex.def
def 파일의 위치를 검색하려면 명령줄에서 실행하세요 . 미리 보기 패키지를 다루는 \AtBeginDocument 명령을 검색합니다. 이전 코드 블록을 다음으로 변경합니다.
\AtBeginDocument{
\@ifpackageloaded{preview}{%
% Ok, package loaded. Swap definitions of everyshi.sty's shipout
% and preview.sty's shipout:
\ifPreview
\let\shipout\@EveryShipout@Org@Shipout%This is the null version of \shipout, created by preview and saved by everyshi
\let\@EveryShipout@Org@Shipout\pr@shipout% This is the original shipout
\let\pr@shipout\@EveryShipout@Shipout%
\fi
}{}%
}