LaTeX provides powerful tools for creating mathematical content, from simple expressions to complex equations. There are different ways of working with math in LaTeX:
$...$
$$...$$
or the \[...\]
notationBelow, I show how inline math and display math looks like in Overleaf. Math code has light green color to easily differentiate it from the normal text.
equation
environment.amsmath
package.\frac{numerator}{denominator}
a^b
a_b
Below, I present a screenshot of equation environment:
When we compile, here is how this code looks like (notice that LaTeX automatically assigns numbers to our equations within equation environment):
LaTeX supports many Greek letters and mathematical symbols. For example:
\alpha, \beta, \gamma, \Delta, \Omega
\sum, \int, \prod, \sqrt, \leq, \geq
Greek letters and symbols have purple color in Overleaf interface:
Which creates the following output:
\
, for a small space, \:
for a medium space, and \;
for a large space in your equations.\text{}
command from the amsmath
package.\sin, \cos, \log
, etc.For example, in the following screenshot, I used spacing function:
This code produces the following: