I'm trying to create a questionnaire using paperandpencil.sty from QDDS. I've already figured out how to create a question using \question and an answer using \hup. I tried to make a yes/no answer using \htexttwo{Yes}{No} but I get

! Undefined control sequence.
l.34 \htexttwo

Any ideas why this wouldn't work? I think I am doing it according to the documentation (PDF link). I am using MiKTeX and TeXworks on Windows 7.

1 Answer 1


True, the style file defines \htextthree ... \htextseven, but no \htexttwo. Using the definitions they provide in paperandpencil.sty for the above choices, the following matches for \htexttwo:

  \centering #1&\centering #2\\&\\\centering$\Box$&\centering$\Box$ \\

The package seems old and not as user-friendly in terms of its coding. The use of a 0.001cm end-column can be done more better-er. It's easy to assume that there are far better/more convenient ways of obtaining what you're after.

Either way, here's a complete minimal example:

enter image description here



  \centering #1&\centering #2\\&\\\centering$\Box$&\centering$\Box$ \\


\question{This is a question?}


  • Seriously? It just doesn't have \htexttwo defined? Thanks for your help Werner. Would you be able to recommend a better way of doing this? This package is the only thing I was able to find.
    – gla3dr
    Commented Nov 14, 2014 at 6:36
  • @gla3dr: Yes, \htexttwo is just undefined in the package. I would only be able to suggest better alternatives once I see the full extent of your usage.
    – Werner
    Commented Nov 14, 2014 at 16:16
  • This works great. Just had to fix one typo in your code (&& instead of &) causing a ! Extra alignment tab has been changed to \cr. error, but I'm not allowed to do a single-character edit.
    – gla3dr
    Commented Nov 14, 2014 at 22:53
  • Regarding my usage, I am basically just using \hupB and \htext. I essentially have some questions where the answers are a 1-5 rating, and some yes/no questions. Maybe also some open questions where there would just be a line to write on. Do you have any suggestions for that?
    – gla3dr
    Commented Nov 15, 2014 at 0:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .