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 have got the following TeX equation:

 \[r(t)=\frac{l}{1+e\cos \theta (t)}\]

Now I could not use this in Texmaker. To show the same equation Texmaker wants

$ r(t )= \dfrac{l}{ 1+e cos \theta (t)} $\\

So what should I do?

share|improve this question
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – Corentin Nov 15 '12 at 13:35
I am not sure I understand your problem: the first equation should compile fine. You should remove the \` in the second equation, and use \cos` also here. Could you please provide a minimal working example (MWE) that illustrates your problem, including your preamble (\dfrac is defined in the amsmath package). – Corentin Nov 15 '12 at 13:38

The following compiles perfectly in Texmaker:


\[r(t)=\frac{l}{1+e\cos \theta (t)}\]

This yields:

enter image description here

share|improve this answer

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.