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 using WinEdt 6 for compiling my TeX documents. I am getting an error with contains the line $\mathbb{Z}$ showing that it is undefined control sequence. How should I rectify it? Should I include any math packages or something. I am a beginner in using TeX.

share|improve this question
This was my very first LaTeX error! It took me days to figure out; no online resource I read thought to mention that it was assuming the amssymb package. – Ryan Reich Dec 19 '11 at 16:19
tex.ac.uk/cgi-bin/texfaq2html?label=numbersets describes the AMS fonts, and says "Support files for using the fonts, both under Plain TeX and LaTeX (packages amssymb and amsfonts), are available. [...]". this of course doesn't help, if you're a person who doesn't like to read faq answers... – wasteofspace Dec 19 '11 at 16:56
up vote 96 down vote accepted

Load the amsfonts package, this provides that command:


Optionally you could load amssymb, as this in turn loads amsfonts.


For reference, the Comprehensive LaTeX Symbol List has also a list of math alphabets, in table 213 on page 68.

share|improve this answer
Thank you. Would the same be sufficient for \mathds?? – Ramana Venkata Dec 19 '11 at 11:03
@RamanaVenkata No, for that you have to load the dsfont package. – Torbjørn T. Dec 19 '11 at 11:07
Thanks for you help. – Ramana Venkata Dec 19 '11 at 11:08

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.