Quick-start for beginners
LaTeX provides a special syntax for math expressions. Furthermore, it has to be declared what is math but not text to get properly printed. Let's see how to write math!
How to do it...
We will practice math basics now. Let's write a document:
As usual, start with a document class.
\documentclass{article}
Start the document:
\begin{document}
Let's have an unnumbered section for our text:
\section*{The golden ratio}
Write a statement containing math. Enclose each math formula within parentheses. As usual for LaTeX commands, write a backslash before each parenthesis.
The symbol for the golden ratio is the Greek letter \( \varphi \). Its value is the positive solution of \( x^2 - x - 1 = 0 \).
Continue the text; this time, math shall be set off and centered:
It can be calculated to: \[ \varphi = \frac{1 + \sqrt{5}}{2} = 1.618 \ldots \]
End the document:
\end{document}
Compile the document, and take a look:
How it works...
Math is differently written compared to normal text. For example...