Latex
Latex
Latex
\documentclass {article} on it because its just a short article. Thats all you need to write up homework and other short things. Next is \begin{document} and at the very end of the le theres a matching \end{document} This document has a title section, and I put that in so you could see how to create titles. Notice how the double backslash forces a new line in the title.
A Creating mathematical expressions. One of the main reasons to use L TEX is to make the mathematical expressions look right. Traditionally, variables like a and x are in italic fonts in printed texts to distinguish them from letters a and x. It doesnt matter whether theyre really variables or constants, so, for instance, e should always appear in italics when it means that number about 2.71. Also, spaces should appear before and after plus, minus, and equal signs as in the equation x2 + 3x 2/3 = 0, but not when multiplication or division are used, and of, course, the exponent 2 in x2 has to be raised and in a smaller size. With a word processor, you have to be constantly ddling with the fonts, spacing, size, and position to A get mathematical expressions to look right, but its all taken care of in L TEX. Just put dollar signs before and after the expression to indicate that its a mathematical expression. To get x2 + 3x 2/3 = 0, just use
$x^2+3x-2/3=0$ Sometimes you want to display a large equation on a separate line. Delimit the equation with double dollar signs for that. For example, to get 3 x2 4 2 dx = 5 2 arccos x 3 2 use 1
$$\int_2^3 \frac{\sqrt{x^2-4}}{x}\,dx= \sqrt5-2\arccos\frac{2}{3}$$ Note how easy square roots, division, and integrals are.