Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

The following compiles perfectly in Texmaker:

\documentclass{article}
\usepackage{amsmath,amssymb}

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

This yields:

enter image description here

share|improve this answer

Your Answer

 
discard

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.