
두 가지 명령으로 TikZ를 사용하여 그림을 그리고 있습니다 \draw
.
첫 번째는 작동하지만 두 번째 LaTeX 주장에서는 작동합니다.
! Undefined control sequence. l.44 \draw (0,2) -- (-.5,2);
그걸 고치려면 어떻게 해야 할까요...
서문에 감사드립니다
편집: MWE
\begin{figure}[htbp]
\centering
\begin{tikz}
% First the house
\draw [thick,color=gray] (0,0) -- (0,2) -- (1,3) -- (2,2) -- (2,0) -- cycle (0,2) -- (2,2);
% This command doesnt work...
\draw (0,1) -- (-.5,1);
\end{tikz}
\end{figure}
답변1
이 시도. 작동해야합니다.
\begin{tikzpicture}
% First the house
\draw [thick,color=gray] (0,0) -- (0,2) -- (1,3) -- (2,2) -- (2,0) -- cycle (0,2) -- (2,2);
% This command DOES work!
\draw (0,1) -- (-.5,1);
\end{tikzpicture}