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?

  • 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
  • 2
    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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.