DEV Community

Cover image for LaTeX documents

Posted on

LaTeX documents

We have been using word processor and many smart office systems that we starts thinking to response that yes I coded my resume.

Yes I created my resume in LaTeX programming and you should try it. The LaTeX project says that

'You get what you see'.

You can read more about LaTeX and it's working but here I am going to provide you cheat sheet which I prepared when I wrote my first LaTeX document.

LaTeX document structure

document class
use packages
definitions and macros
title page content
\begin document
\end document

and ignored extras

LaTeX command instructions

% for single line comment

\begin{document} . . . \end{document}


\usepackage[property_name]{package name}



\begin{itemize} . . . \end{itemize}

\begin{enumerate} . . . \end{enumerate}

\& for & \% for % for special characters use \ other examples are # { $ _ " '

\t{00} \AA \0e \day \pound \copyright \pi \Pi

\date{specify} example \date{\today} but remember that \maketitle is required to use command \today

Create your own environment commands by \begin {command} . . . \end {command}

To create new line break use \\

\section {give name}

\subsection {section name : number}

\subsection { : : }

\tableofcontents Make sure to use after maketitle command


$...$ to insert inline formulas

$$...$$ to insert center justified formulas

\begin {array}

^ {} for super scripts

- {} for sub scripts

\begin {eqharray} enter equation here \end {eqharray}

\nonumbe use this in above statement to skip numbering of equation

\begin {figure}

\begin {minipage}

\input {path} to import files

\VSpace {-0.5cm}

\begin {aligh}

\begin {aligh*}

\begin {tabular} {# of col, alignment, vertical yes/no}


\cline {column start - column end}

\begin {table} this contains tabular as child element

\caption { }

\label { }

\textbf { } make bold face

\textit { } make italics

\textsc { } capitalize

\textsf { } distinguished

\textsl { } slant

\texttt { } typewrite fonts

\emph { } emphasize

\color {color name} first import color package

\tiny SIZE

\scriptsize SIZE

\footnotesize SIZE

\small SIZE

\normalsize SIZE

\large SIZE

\Large SIZE


\huge SIZE


I'm planning to make this cheat sheet more readable and organized so it is easier to understand. Please share your views in comment below.

Top comments (0)