LaTeX - Formatting Text

Overview

Latex provides a number of ways to add style information to text within a document. The typical way this is accomplished is through a tag such as the following.

\textbf{this text is bold}

The textbf tag indicates that anything within it should be made bold.

LaTeX - Text Formatting

The following are latex tags that can format text.

\textbf{this text is bold} \emph{this text is emphasized} \begin{flushright} this text is aligned to the right \end{flushright} \begin{center} this text is centered \end{center} \begin{quote} this text is quoted \end{quote}

Labels and References

Create a label and associate it with the area where it is located.

\label{TheSection}

The ref command substitutes teh number of the label referenced.

\ref{TheSection}

tilde creates a non-breaking space.

~\ref{TheSection}

The pageref command references the page number that the label is located.

The section is on page ~\pageref{TheSection}

Lists

Lists are formatted lists of items, such as the following:



The following tags created an unordered list

\begin{itemize} \item item1 \item item2 \end{itemize}
An ordered list is one where the items are numbered, such as

  1. item 1
  2. item 2
and can be accomplished in latex with the following

\begin{enumerate} \item item1 \item item2 \end{enumerate}

\begin{document} \tableofcontents \listoffigures \listoftables \end{document}