Sheng Long
Sep 2021
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
https://villeklar.com/post/Scientifc_writing_with_Latex/learningcurve.png
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass{article}
\begin{document}
First document. This is a simple example, with no extra parameters or packages included.
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass[12pt, letterpaper]{article}
\usepacakge[utf8]{inputenc}
\begin{document}
First document. This is a simple example, now with one package included.
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass[12pt, letterpaper]{article}
\usepacakge[utf8]{inputenc}
\title{My First \LaTeX{} Project}
\author{Sheng Long}
\date{\today}
\begin{document}
\maketitle
First document. This is a simple example, now with one package included.
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass[12pt, letterpaper]{article}
\usepacakge[utf8]{inputenc}
\title{My First \LaTeX Project}
\author{Sheng Long}
\date{\today}
\begin{document}
\maketitle
\textbf{bold}
\textit{italicised}
\underline{underlined}
\end{document}
This is some \textbf{\underline{important}} text.
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
...
\begin{document}
An example of an ordered list:
\begin{enumerate}
\item Uno
\item Dos
\item Tres
\end{enumerate}
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
The above haiku was written by Matuso Basho.
...
\begin{document}
An example of an un-ordered list:
\begin{itemize}
\item The old pond
\item ... A frog leaps in
\item ... Sound of the water.
\end{itemize}
\end{document}
Produce a nested list, as shown in the following:
\begin{itemize}
\item Shopping list:
\begin{enumerate}
\item Eggs
\item Milk
\item Apples
\end{enumerate}
\end{itemize}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
Use $ ... $ (or \( ... \)) for inline math
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
Produce the following inline equations:
\(y = kx + b\)
\(\frac{1}{2} + \frac{1}{2} = 1\)
\(a_1^2 + a_2^2 = a_3^2\)
\(\sqrt{9} \leq 3\)
Hints:
use \\(\texttt{frac}\{n\}\{d\}\) to express fractions
use \(\texttt{\_}\) for subscripts and ^ for superscripts
$y= kx+b$
$\frac{1}{2}+\frac{1}{2} = 1$
$a_1^2 + a_2^2 = a_3^2$
$\sqrt{9} \leq 3$
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
Produce the following display-style equations:
Hints:
\begin{align*} ... \end{align*}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
https://www.overleaf.com/learn/latex/Environments
https://www.overleaf.com/learn/latex/Commands
https://www.overleaf.com/learn/latex/Commands
\(\texttt{\textbackslash documentclass [12pt] \{article\}}\)
optional
required
https://www.overleaf.com/learn/latex/Commands
\(\implies\) this will allow you to type \(\texttt{\textbackslash R}\) instead of the full \(\texttt{\textbackslash mathbb\{R\}}\)
\newcommand{\R}{\mathbb{R}}
https://www.overleaf.com/learn/latex/Environments
https://ctan.math.illinois.edu/macros/latex/contrib/enumitem/enumitem.pdf
\begin{itemize}[nosep]
\item Apples
\item Bananas
\end{itemize}
\(\texttt{nosep}\) is an optional parameter that one can use when using the \(\texttt{enumitem}\) package
https://www.overleaf.com/learn/latex/Environments
https://www.dickimaw-books.com/latex/novices/html/newenv.html
\newenvironment{exercise}
{\textbf{Exercise}\begin{itshape}}
{\end{itshape}}
https://www.overleaf.com/learn/latex/Theorems_and_proofs
\\(\texttt{newtheorem}\)\(\texttt{\{thm\}}\)\(\texttt{\{Theorem\}}\)
name of new environment
printed text
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass[12pt, letterpaper]{article}
\usepacakge{graphicx}
\graphicspath{...}
\begin{document}
The following is a picture of my cat, Tora.
\includegraphics{Tora.jpg}
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
\documentclass[12pt, letterpaper]{article}
\usepacakge{graphicx}
\graphicspath{...}
\begin{document}
The following is a picture of my cat, Tora.
\begin{figure}[h]
\centering
\includegraphics{Tora}
\caption{Tora -- the sweetest cat in the world}
\label{fig:tora-1}
\end{figure}
\end{document}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
For example, try
-- the double backslash means new line
-- \(\&\) aligns the equations together
-- to avoid line indexing, use the \(\texttt{align*}\) environment instead
\begin{align}
(a+b)^2 &= a(a+b)+ b(a+b) \\
&= a^2 + 2ab + b^2
\end{align}
\usepackage{amsmath}
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes