James Chip

Latex notes

Setup Manjaro

Install latex tools with:
sudo pacman -S livetex-most 
To create a pdf out of a .tex file run
pdflatex latex_file.tex 


{ Handy LaTex Tutorials }
{ Memoir class documentation }


Commands to the latex compiler are newlones that steat with the "\" character.

Basic Document Structure

A basic latexdocument has 2 main parts.


The preamble is not rendered in your document and is mostly used for setting up the environment for when the compiler runs.


The document part is the main bulk of what will be rendered in your dicument. It is mandatory and starts with a \begin{document} and ends with an \end{document} command. The \begin{} and \end{} commands define an environment in your document but the document environment is and should always be the topmost one you use.



\title{A title}
\date{} # No date will be printed if left blank
\author{James Chip}

  Hello World!

Text sections

Sections, subsection and paragraphs are handled as follows:
\section{Section Title}

Text that goes in the section under the title.

\subsection{A Subtitle}

Text that goes in the subsection under the title.

\subsubsection{A Sub-subtitle}

Even more text to put in.


Paragraph text. This will be indented while the others will not.

Sections have a default numbering sccheme on them. If you wish to avoid numberiing on your sections then use \section*{TITLE} instead.

Paragraph setup

To set paragraph indent and spacing use the following: