Re: La libreria hobby (TikZ) non funziona più

#83986
Up
0
Down
::

Marco87″ post=83195Ciao a tutti,

qualche minuto fa ho provato a compilare un documento in cui ho realizzato dei disegni con [tt]TikZ,[/tt] e in particolare con i comandi della libreria [tt]hobby.[/tt] Eppure non funziona. Questo semplice codice:
`\documentclass[a5paper,11pt]{memoir}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,italian]{babel}

\usepackage{tikz}
\usetikzlibrary{calc,hobby}

\begin{document}

\begin{tikzpicture}
\draw (0,0) to [curve through={(2,0)}] (2,2);
\end{tikzpicture}

\end{document}`
non viene disegnato e viene dato questo errore:

! Undefined control sequence.
\hobby_genpath: …y }\prg_stepwise_function:nnnN
{0}{1}{\l_hobby_npoints_in…
l.42 \draw (0,0) to [curve through={(2,0)}] (2,2)
;
The control sequence at the end of the top line
of your error message was never \def’ed. If you have
misspelled it (e.g., `\hobx’), type `I’ and the correct
spelling (e.g., `I\hbox’). Otherwise just continue,
and I’ll forget about whatever was undefined.

Ho appena aggiornato TeX Live 2012 e ancora mi dà quell’errore. Succede anche a voi? 🙁

Grazie e ciao,
Marco.

P.S. Spero che sia un problema temporaneo. In questo caso non appena sarà risolto cancellerò la discussione.

Eh, la funzione [tt]\prg_stepwise_function:nnnN[/tt] è stata dichiarata obsoleta alcuni mesi fa e sostituita da [tt]\int_step_function:nnnN[/tt]. Con l’ultimo aggiornamento, i vecchi nomi sono stati eliminati.

Soluzione provvisoria: aggiungi
`\ExplSyntaxOn
\cs_if_exist:NF \prg_stepwise_function:nnnN { \cs_gset_eq:NN \prg_stepwise_function:nnnN \int_step_function:nnnN }
\cs_if_exist:NF \prg_stepwise_inline:nnnn { \cs_gset_eq:NN \prg_stepwise_inline:nnnn \int_step_inline:nnnn }
\ExplSyntaxOff`
dopo [tt]\usetikzlibrary{calc,hobby}[/tt]

Vedi http://article.gmane.org/gmane.comp.tex.latex.latex3/2869

Ciao
Enrico

Go to top