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'm trying to display quite a simple 'cases' type equation in Texmakerx, but it appears to be ignoring the \\ and & uses.



  f_i^* = 
    \frac{4}{9}  &  i = 0 \\ 
    \frac{1}{9}  &  i = 1,2,3,4 \\ 
    \frac{1}{36} &  i = 5,6,7,8 


When I display it in http://www.codecogs.com/latex/eqneditor.php it works just fine

But Texmakerx and pdflatex give me the whole thing on a single line and with no spaces between the terms. (Would post a picture to clarify, but it won't let me)

I'm using Texmakerx, MikTek, and pdflatex on windows 7. Any ideas?

Thanks in advance for your patience with a newbie!

share|improve this question

You want \usepackage{amsmath} not \usepackage{amsfonts}

share|improve this answer
Ah, rookie error.. thanks! – Paul Mar 24 '12 at 13:40

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.