I am using the last version of MiKTeX. After the last update I realize that the TikZ library hobby is no longer working. As proposed by the answer of this question, I downloaded it again from here but when I compile the file tex hobby.dtx I got the error:
======================================================================
! 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:
I update again MiKTeX but I still have the same error. And when I compile a Latex file which contains the hobby library I get the error
!...............................................
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.
|...............................................
)
.................................................
This is the example that I compiled:
\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}
texto unpack, notlatexorpdflatex. l3doc.cls is part of l3kernel, if you don't have it, your system is not up-to-date. See http://tex.stackexchange.com/a/108490/2388 to learn how to maintain miktex. But the update won't help you: hobby has now the next problem. It uses a deprecated command. You can try\ExplSyntaxOn \cs_set_eq:NN\prop_get:Nn\prop_item:Nn \ExplSyntaxOffbut it is quite possible that the code contains more outdated commands. – Ulrike Fischer Feb 17 '16 at 09:06l3kernelpackage andl3doc.clsinside it. I added\ExplSyntaxOn \cs_set_eq:NN\prop_get:Nn\prop_item:Nn \ExplSyntaxOffbut it does not fix the problem. – Mohamed Vall Feb 17 '16 at 09:33\ExplSyntaxOn \cs_set_eq:NN\prop_get:Nn\prop_item:Nn \ExplSyntaxOff. – Mohamed Vall Feb 17 '16 at 13:39