Hello
Im trying to write something using TeXnicCenter, and I want these to come on a new line. How do I do it?
Thanks.Code:\[ f(x) = \tan(x^2) \\ f'(x) = \left(\tan(x^2)\right)' \cdot (x^2)' f'(x) = 2x\left(\tan^2(x^2)+1\right) \]
Thank you both for the replies, but I've tried:
But this produces the following in the pdf document (see attachment picture)Code:\documentclass[11pt,norsk,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \title{test} \author{testauthor} \tolerance = 5000 % LaTeX er normalt streng når det gjelder linjebrytingen. \hbadness = \tolerance % Vi vil være litt mildere, særlig fordi norsk har så \pretolerance = 2000 % mange lange sammensatte ord. \begin{document} \maketitle{} \[ f(x) = \tan(x^2) \\ f'(x) = \left(\tan(x^2)\right)' \cdot (x^2)' \\ f'(x) = 2x\left(\tan^2(x^2)+1\right) \\ \] \end{document}
Any ideas?
try replacing \[ with \begin{equation} and \] with \end{equation}.
and for better view u may use the following codes:
Code:\documentclass[12pt,reqno]{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{aligned} f(x)=&\tan(x^{2}) \\ f^{\prime}(x)=&(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\ f^{\prime}(x)=&2x(\tan^{2}(x^{2})+1) \end{aligned}\notag \end{equation} \end{document}
Weird that it doesn't work for me :\
However, I can do them individually by nesting each line within \[ and \] or \begin{equation} \end{equation} those lead to a (#) at the right of the equations though, which is a bit annoing.
Do you know if it is possible to make the math symbols align to the left by any chance? The centered math seems a bit undordered, hehe.
I've never heard about WinEdt before, so I'll check it out. Thank you for the tip.
There're many alignment environments which you can use.
Following up on bkarpuz's suggestion, we gotta a point here:
that should be,Code:\begin{equation} \begin{aligned} f(x)=&\tan(x^{2}) \\ f^{\prime}(x)=&(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\ f^{\prime}(x)=&2x(\tan^{2}(x^{2})+1) \end{aligned}\notag \end{equation}
or even easier, you can just use \begin{align*}\end{align*} (* avoids the enumeration in each line), or use \begin{eqnarray*}\end{eqnarray*}. (This last requires a double & in the equal sign, this is, put &=&.)Code:\begin{equation} \begin{aligned} f(x)&=\tan(x^{2}) \\ f^{\prime}(x)&=(\tan(x^{2}))^{\prime}\cdot(x^{2})^{\prime}\\ f^{\prime}(x)&=2x(\tan^{2}(x^{2})+1) \end{aligned}\notag \end{equation}
However it does not effect much if you use &= or =&.
You should put the sign & where you want the terms to be in vertical que.
I prefer =& because when some formulas are very long you have to split them into two or more parts, and the second part should start the line with +,-,\times or sth like these, but this should be after = sign.
Let me clear it with a figure:
yields the one I prefer as follows:Code:a=&aaaaaaaaaaaaaa &\times aaaaaaaaa
......
But if you use the way, Krizalid suggested, you get
...
from
orCode:a&=aaaaaaaaaaaaaa &\times aaaaaaaaa
from
However, it is better you know all, because u may sometimes need them.Code:a&=aaaaaaaaaaaaaa \times&aaaaaaaaa