
TikZ에서 명령 플롯을 작동시킬 수 없습니다. 예를 들어, 다음과 같은 기본 코드라도
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[domain=0:4]
\draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
\draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$y$};
\draw[color=red] plot (\x,{\x}) node[right] {$f(x)=x$};
\end{tikzpicture}
\end{document}
PDF 출력 없이 다음 오류가 발생합니다.
ERROR: Package tikz Error: Cannot parse this plotting data.
도움이 될 수 있다면 .log 파일에서 다음 메시지를 발견했습니다.
Missing character: There is no , in font nullfont!
! Undefined control sequence.
l.11 \draw[color=red] plot (\x,{\x
}) node[right] {$f(x) =x$};
플롯 명령이 포함된 행을 주석 처리하면 모든 것이 훌륭하게 컴파일됩니다.
\usepackage{pgfplots}
흥미롭게도, 서문에 포함하면 ltluatex.tex에 다른 오류 메시지가 표시됩니다.
ERROR: Undefined control sequence.
--- TeX said ---
l.55 \ifnum\luatexversion
<60 %
그런데 저는 MacBook Pro에서 TeX Live 2017을 실행하고 있습니다. 어떤 도움이라도 대단히 감사하겠습니다.
업데이트: @Torbjørn T.의 제안에 따라 로컬 트리에서 이전 버전의 TikZ를 제거했습니다. 플롯이 여전히 작동하지 않지만 최소한 오류 메시지가 변경되었습니다. 이제 그것은:
ERROR: Undefined control sequence.
--- TeX said ---
l.533 \pgfset
{
오류는 파일 pgfmoduleshapes.code.tex
(2008/02/13(rcs-revision 1.4))을 참조합니다. 미리 감사드립니다.