TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use the hobbypackage with this minimal example from the manual:

\begin{tikzpicture}[scale=.5,use Hobby shortcut]
\draw (0,0) .. (6,4) .. (4,9) .. (1,7) .. (3,5) .. cycle;

On compiling with pdflatex I get this error message:

! Undefined control sequence.
\hobby_genpath: ...y }\prg_stepwise_function:nnnN 
l.7 .... (6,4) .. (4,9) .. (1,7) .. (3,5) .. cycle

I am using TeXLive 2012 and the hobby.code.tex that came with it.

What can I do to get it working?

P.S. Googling came up with a message on the Italian TeX Group forum but I could not cotton on to what was being said.

share|improve this question
Essentially, egreg in this post explained that the function \prg_stepwise_function:nnnN has been substituted by \int_step_function:nnnN; I used the workaround suggested by him, for example, in my last edit to How can I draw an egg using TikZ?. – Claudio Fiandrino Apr 25 '13 at 10:10
@Claudio Fiandrino: thanks for the explanation and that link: it was real fun! – chandra Apr 25 '13 at 11:12
up vote 5 down vote accepted

This is fixed in the latest version of the hobby package. Unfortunately, I didn't get it to CTAN in time for the TL freeze (8th April according to TUG) so if you use TeXLive you'll have to install it yourself from CTAN (or wait until TL2013 is released). (MikTeX works differently, I believe.)

You can download the latest version directly from CTAN at hobby.

share|improve this answer
Thanks a million for the hobby package and for the clarification. I have updated and tried it out. It works! The operative line in the minimal example should now be: \draw [closed] (0,0) .. (6,4) .. (4,9) .. (1,7) .. (3,5); to get the desired results. – chandra Apr 25 '13 at 11:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.