Contents

Environment

To format special parts of a document, LaTeX provides many environments. An environment controls a specific layout or behavior, such as lists, paragraph alignment, quotations, verses, or displayed mathematics.

In general, an environment is written in this form:

\begin{environment-name}
  ...
\end{environment-name}

Some of the most common environments are:

  • itemize for unordered lists
  • enumerate for numbered lists
  • description for lists with keyword labels
  • quote for short quotations
  • quotation for longer quotations with multiple paragraphs
  • verse for song lyrics or poetry
  • displaymath for displayed mathematical expressions

You can create lists with itemize, enumerate, and description.

\begin{itemize}
  \item Apple
  \item Orange
  \item Mango
\end{itemize}

\begin{enumerate}
  \item Wake up
  \item Have breakfast
  \item Go to school
\end{enumerate}

\begin{description}
  \item[Triangle] A polygon with three sides.
  \item[Square] A shape with four equal sides.
\end{description}

The output looks like this.

enumerate, itemize, description in LaTeX

Use flushleft, flushright, and center to align paragraphs.

\begin{flushleft}
This paragraph is left aligned.
\end{flushleft}

\begin{center}
This paragraph is centered.
\end{center}

\begin{flushright}
This paragraph is right aligned.
\end{flushright}

The output looks like this.

flushleft, center, flushright in LaTeX

Use quote for short quotations and quotation for longer ones.

\begin{quote}
Learning a little every day is better than never starting.
\end{quote}

\begin{quotation}
Mathematics is not only about calculation, but also about thinking.

That is why steady practice matters.
\end{quotation}

The output looks like this.

quotation in LaTeX

For poetry or lyrics, use verse.

\begin{verse}
Knowledge grows from day to day,\\
Small steps still can lead the way,\\
Keep on learning, keep on trying,\\
Good results will soon be showing.
\end{verse}

The output looks like this.

verse environment in LaTeX

Displayed math environments deserve a separate article because mathematical notation usually needs a longer and more focused explanation.

That is a short introduction to environments in LaTeX. Once you understand them, it becomes much easier to structure lists, align text, and format quotations cleanly.

Related Content