LaTeX is complicated. There are over a thousand packages and millions of ways of doing the same thing. I encountered a lot of problems while writing reports in LaTeX. I wrote this cheat sheet for myself to make my life a bit easier.
\documentclass[12pt,a4paper,twoside]{article}
\usepackage[top=1in,left=0.85in,right=0.85in]{geometry}
\LaTeX
\newpage
for page breaksSometimes you need to start numbering the pages from the second page. All you need to do is to disable page numbering on your first page and enable it later.
\pagenumbering{gobble}
\pagenumbering{arabic}
\vspace{1cm}
. It will move your content 1 cm below\hspace{-1cm}
. You can use any unit (cm, mm, in, pt, em). Negative values are allowed.\noindent
\begin{center} \end{center}
to make it centereditemize
is an unordered list, enumerate
is an ordered list\item
Example: {% highlight latex %} \begin{enumerate} \item First \item Second \end{enumerate} {% endhighlight %}
pdfpages
package to include PDFs. Syntax: \includepdf[pages=1-6]{path.pdf}
.\includegraphics[width=5.6cm]{image.png}
$ math here $
$$ multiline math here $$
. Your math text will be rendered on a separate line, centred$ x_i $
$ x_{a,b} $
$ a^{b+c} $
$ a_{b+c}^{d+e} $
$ \Alpha \alpha $
. The one that starts with a capital letter will be an uppercase alpha.sudo tlmgr install [package]