Skip to content

Instantly share code, notes, and snippets.

@jakelevi1996
Last active October 21, 2022 18:04
Show Gist options
  • Save jakelevi1996/92981ef848b859476eaf36c4e2901b00 to your computer and use it in GitHub Desktop.
Save jakelevi1996/92981ef848b859476eaf36c4e2901b00 to your computer and use it in GitHub Desktop.
Notes on Latex

Notes on Latex

Contents

Installation

Two major distributions of Latex are TeX Live and MiKTeX. Overleaf appears to suggest MiKTeX for Windows, however this Stack Overflow answer states that MiKTeX is susceptible to simple viruses, and TeX Live is also strongly recommended by the Visual Studio Code LaTeX Workshop Extension (which I am using to automate compiling LaTeX documents into PDF), so I decided to go with TeX Live, which can be downloaded from here.

Useful links

Maths formatting

Underset text

To make text appear underneath an operator, use \underset, as in $\underset{1 \leq j \leq n}{\max}$ (requires amsmath package, source), EG:

Text formatting

Use a fixed width font

Use the courier package and \texttt command, for example (source):

\documentclass{article}
\usepackage{courier}
\begin{document}

This is not Courier font. \texttt{This is Courier font.}
\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment