course on how to use latex for math

by Skye Gusikowski 5 min read

Learn to typeset and align equations, matrices and fractions in LaTeX. Overview of basic math features, with live-rendering

There are two major modes of typesetting math in LaTeX one is embedding the math directly into your text by encapsulating your formula in dollar signs and the other is using a predefined math environment. You can follow along and try the code in your computer or online using overleaf. I also prepared a quick reference of math symbols.

Using inline math – embed formulas in your text

To make use of the inline math feature, simply write your text and if you need to typeset a single math symbol or formula, surround it with dollar signs:

The equation and align environment

The most useful math envorinments are the equation environment for typesetting single equations and the align environment for multiple equations and automatic alignment:

Fractions and more

LaTeX is capable of displaying any mathematical notation. It’s possible to typeset integrals, fractions and more. Every command has a specific syntax to use. I will demonstrate some of the most common LaTeX math features:

Matrices

Furthermore it’s possible to display matrices in LaTeX. There is a special matrix environment for this purpose, please keep in mind that the matrices only work within math environments as described above:

Brackets in math mode – Scaling

To surround the matrix by brackets, it’s necessary to use special statements, because the plain [ ] symbols do not scale as the matrix grows. The following code will result in wrong brackets:

Learn about LaTeX in short lessons with full code examples. A comprehensive guide to basic and advanced features

These tutorials, provide a hands-on introduction to LaTeX. You will see, the usage is very simple. Even if you have only used word processors (e.g. Word) before, you can learn LaTeX in no time.

Tutorials

I’m constantly trying to improve and extend these lectures. Please let me know if you think a crucial feature is not covered on this website.

What is a latex?

LaTeX (pronounced LAY-tek or LAH-tek) is a tool used to create professional-looking documents. It is based on the WYSIWYM (what you see is what you mean) idea, meaning you only have focus on the contents of your document and the computer will take care of the formatting.

What is abstract environment in LaTeX?

In LaTeX there's the abstract environment for this. The abstract environment will put the text in a special format at the top of your document.

image

Using Inline Math – Embed Formulas in Your Text

  • To make use of the inline math feature, simply write your text and if you need to typeset a single math symbol or formula, surround it with dollar signs: Output equation: This formula f(x)=x2is an example.
See more on latex-tutorial.com

The Equation and Align Environment

  • The most useful math envorinments are the equation environment for typesetting single equations and the align environment for multiple equations and automatic alignment: Output Equation: 1+2=3 1=3–2 Output Align: 1+2=31=3–2 The align environment will align the equations at the ampersand &. Single equations have to beseperated by a linebreak \\. There is no alignme…
See more on latex-tutorial.com

Fractions and More

  • LaTeX is capable of displaying any mathematical notation. It’s possible to typeset integrals, fractions and more. Every command has a specific syntax to use. I will demonstrate some of the most common LaTeX math features: Output: f(x)=x2g(x)=1xF(x)=∫ab13x3 It is also possible to combine various commands to create more sophisticated expressions such...
See more on latex-tutorial.com

Matrices

  • Furthermore it’s possible to display matrices in LaTeX. There is a special matrix environment for this purpose, please keep in mind that the matrices only work within math environments as described above: Output: 1001
See more on latex-tutorial.com

Brackets in Math Mode – Scaling

  • To surround the matrix by brackets, it’s necessary to use special statements, because the plain [ ] symbols do not scale as the matrix grows. The following code will result in wrong brackets: Output: [1001] To scale them up, we must use the following code: Output: [1001] This does also work for parentheses and braces and is not limited to matrices. It can be used to scale for fracti…
See more on latex-tutorial.com