我正在使用 MiKTeX 的最新版本。在上次更新后,我意识到 TikZ 库hobby
不再起作用。正如这个问题,我再次从这里但是当我编译文件时tex hobby.dtx
出现错误:
======================================================================
! LaTeX Error: File `l3doc.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name:
我再次更新 MiKTeX,但仍然出现同样的错误。当我编译包含 hobby 库的 Latex 文件时,我收到错误
!...............................................
l.185 ...riant:Nn \__msg_show_variable:Nnn { Nno }
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a coding error.
|
| LaTeX has been asked to use a control sequence '\__msg_show_variable:Nnn':
| this has not been defined yet.
|...............................................
)
.................................................
这是我编译的示例:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{hobby,decorations.markings}
\begin{document}
\begin{tikzpicture}[use Hobby shortcut]
% middle crossing loop
% \draw (3,-1) .. (2,0) .. (0,0.93) .. (-0.93,0) .. (0,-0.93) .. (2,0) .. (3,1);
\begin{scope}
\clip (3,-1) rectangle (2,1);
\draw[thick, blue, fill=blue!30] (3,-1) .. (2,0) .. (0,0.93) .. (-0.93,0) .. (0,-0.93) .. (2,0) .. (3,1);
\end{scope}
\begin{scope}
\clip (2,1) rectangle (-1,-1);
\draw[thick, red, fill=red!30] (3,-1) .. (2,0) .. (0,0.93) .. (-0.93,0) .. (0,-0.93) .. (2,0) .. (3,1);
\end{scope}
% filled points
\fill (0,0) circle (1pt);
\fill (2,0) circle (1pt);
\end{tikzpicture}
\end{document}