top of page
Search

Mathematics (LaTeX Series Part III)

Updated: Oct 28, 2023

This article is based on the LaTeX Tutorial pt 3 - Mathematics in LaTeX video, which details how to write mathematics in LaTeX. But first, the “\usepackage{amsmath}” needs to be written into the document, which allows users to use the AMS math package, which gives the user more options.

  1. Using $ signs, this can allow the user to write mathematical equations in line with the rest of the text. The mathematical equation will be color coded in green.

  2. For writing a superscript, such as for exponents, write the base within the dollar signs, add a “^”, and then write the superscript. For writing a subscript, rather than using a “^”, use a “_”.

  3. To add Greek letters, begin the code with a “\”, and then write the name of the Greek letter in English. For greek letters, the dollar signs are still required- for example, alpha would be “$\alpha$”, and a capital alpha would be “$\Alpha$.

  4. Trigonometric functions are written as “$\sin{z}$, with the shortened name of the trigonometric ratio written after the backslash and the degree written in curly brackets.

  5. Square roots are written as $\sqrt{7}$, and fractions are written as $\frac{numerator}{denominator}$. For example, writing the fraction ½ would be: $frac{1}{2}$.

  6. A subset can be written as “$y \subseteq Z$, which shows that y is within the subset of Z. More LaTeX commands for math symbols can be found online.

  7. For writing equations that are on a new line, start with “\begin{equation}”, write the equation on the next line, and then end with “\end{equation}” on the following line. LaTeX centers these equations and makes the text larger, and also numbers these equations on the right hand side. To get rid of the numbers for the equations, place an asterisk at the end of each “equation” written. So, the code would look like: “\begin{equation*}” and then end in “\end{equation*}”.

2 views0 comments

Recent Posts

See All

コメント


bottom of page