## WeBWorK Problems

### display macro for "#"?

by D. Brian Walton -
Number of replies: 3
I have a problem where the author included "#" directly in the problem statement. This works fine for display-mode. However, when hard-copy is produced, the LaTeX compiler chokes on the naked # character.

When I looked in PGbasicmacros.pl, I could not find a display macro for this character. Is this an omission or is there a different method to accomplish this?

(I'm assuming that it is an omission and can be rectified by mimicking what was done for the $DOLLAR display macro.) Also, I noticed that this is a very hard thing to search for in the forum because "number" and "pound" show up in too many settings that did not apply (e.g., "compound"). So this may have been asked before and I couldn't find it. D. Brian Walton In reply to D. Brian Walton ### Re: display macro for "#"? by Michael Gage - I think it is an omission What should we call it?$HASH? $SHARP?$POUND ?
I most naturally looked for "pound" and "number" sign. Could $POUND be confused with the British monetary unit? Is there a similar issue with$NUMBER?
After doing a google search for "#", I would suggest $NUMBER_SIGN or something similar, e.g.$NUMBERSIGN.