# Basic LaTex Tags

Below are some useful tags in the LaTex formatting system.

\centering
Push content to the center of the page.
\vfill
Add vertical space up to the end of the page.
\hfill
Add horizontal space up to the end of the line.
\vspace
\hspace
\vline
\hline
\newpage
Start a new page.
\clearpage
Clear page content.
\dotfill
Fill with dots.
\section{text}
Add text to a new section.
\subsection{text}
Add text to a new subsection.
\subsubsection{text}
Add text to a new sub sub section.
\ref{text}
Put a reference in the paragraph.
\label{text}
Add label to image, table, or equation for further reference.
\emph{text}
Write the text in emphasis shape.
\textrm{text}
Write the text in Roman font family.
\textsf{text}
Write the text in sans serif font family.
\texttt{text}
Write the text in teletype font family.
\textup {text}
Write the text in upright shape.
\textit{text}
Write the text in italic shape.
\textsl{text}
Write the text in slanted shape.
\textbf{text}
Write the text in bold shape.
\textsc{text}
Write the text in small capitals.
\textmd{text}
Write the text in medium weight.
\uline{text}
Write the text in with underline.
\uwave{text}
Write the text in with wavy underline.
\sout{text}
Write the text in with strike-out line.
\cite
Write the text in cited shape.
\tiny{text}
Write the text in 6 pt.
\scriptsize {text}
Write the text in 8 pt.
\footnotesize{text}
Write the text in 10 pt.
\small {text}
Write the text in 11 pt.
\normalsize{text}
Write the text in 12 pt.
\large{text}
Write the text in 14 pt.
\Large{text}
Write the text in 17 pt.
\LARGE {text}
Write the text in 20 pt.
\huge{text}
Write the text in 25 pt.
\HUGE{text}
Write the text in 25 pt.
$eqn$
Write an equation.
\backslash
Backslash.
^
Superscript, such as AcuSolve^{TM} = AcuSolveTM.
_
Subscript, such as $x_i$ = xi.
\\
Start new line.
\<space>
Force ordinary space.
\@
Following period ends sentence.
\,
Thin space.
\;
Thick space, math mode.
\:
Medium space, math mode.
\!
Negative thin space, math mode.
\>
Tab.
\<
Back tab.
\|
Double vertical lines, math mode.

Python interprets "\" as an escape character. If you simply want to pass this to a function, such as required for the above LaTex controls, you must either prefix it with another "\", such as "\\newpage", or use raw Python string, such as r"\newpage".

The following characters have special meaning in text: # $% & ~ _ ^ \ { }. To write back slash ( \ ), use "\\textbackslash" and to write tilde ( ~ ), use "$\\sim$". Add a "\\" before any other character, if you simply want the character to be written: # The number (pound) sign is used to define use of arguments, for example, in the \newcommand command.$
The dollar sign is used to delineate math and displaymath Environments.
%
The percent sign is used to insert Comments in the input file, and to allow line breaks without generating a space.
&
The ampersand is used to separate items in the array and tabular Environments.
~
The tilde generates a non breaking space. To create a tilde in the output, use \verb or the verbatim environment, or cheat by using \~{}, that is, placing a tilde accent over a blank letter.
_
The underscore is used to create subscripts.
^
The carat (circumflex) symbol generates superscripts. To create a carat in the output use \verb or the verbatim environment.
\{ }
The backslash and braces are used in command definitions, for enclosing command arguments, and for delimiting scopes of declarations.