Getting started
LaTeX utilizes a distinct syntax for mathematical expressions, requiring explicit declaration to differentiate between mathematical elements and regular text for accurate rendering. Let’s explore the fundamentals of writing math!
How to do it...
We will practice the fundamentals of mathematics now. Let’s craft a document together. We will go through the following steps:
- As usual, start with a document class:
\documentclass{article}
- Begin the document:
\begin{document}
- Let’s have an unnumbered section for our text:
\section*{The golden ratio}
- Create a statement incorporating mathematical content. Enclose each mathematical expression within parentheses, preceded by a backslash:
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, the math content shall be displayed centered:
It can be calculated to: \[ \varphi...