« Math Environments | Table of Contents | Picture Environment »
Environments and Commands
center Environment
\begin{center}
Text on line 1
Text on line 2
.
.
.
\end{center}
The center environment allows you to create a paragraph consisting of lines that are centered within the left and right margins on the current page. Each line must be terminated with the string \\.
See also: \centering
flushleft Environment
\begin{flushleft}
Text on line 1
Text on line 2
.
.
.
\end{flushleft}
The flushleft environment allows you to create a paragraph consisting of lines that are flushed left, to the left-hand margin. Each line must be terminated with the string \\.
See also: \raggedright
flushright Environment
\begin{flushright}
Text on line 1
Text on line 2
.
.
.
\end{flushright}
The flushright environment allows you to create a paragraph consisting of lines that are flushed right, to the right-hand margin. Each line must be terminated with the string \\.
See also: \raggedleft
minipage Environment
\begin{minipage}[position]{width}
text
\end{minipage}
The minipage environment is similar to a \parbox command. It takes the same optional position argument and mandatory width argument. You may use other paragraph-making environments inside a minipage.
Footnotes in a minipage environment are handled in a way that is particularly useful for putting footnotes in figures or tables. A \footnote or \footnotetext command puts the footnote at the bottom of the minipage instead of at the bottom of the page, and it uses the mpfootnote counter instead of the ordinary footnote counter
NOTE: Don’t put one minipage inside another if you are using footnotes; they may wind up at the bottom of the wrong minipage.
quotation Environment
\begin{quotation}
text
\end{quotation}
The margins of the quotation environment are indented on the left and the right. The text is justified at both margins and there is paragraph indentation. Leaving a blank line between text produces a new paragraph.
quote Environment
\begin{quote}
text
\end{quote}
The margins of the quote environment are indented on the left and the right. The text is justified at both margins. Leaving a blank line between text produces a new paragraph.
verbatim Environment
\begin{verbatim}
text
\end{verbatim}
The verbatim environment is a paragraph-making environment that gets LaTeX to print exactly what you type in. It turns LaTeX into a typewriter with carriage returns and blanks having the same effect that they would on a typewriter.
See also: \verb
verse Environment
\begin{verse}
text
\end{verse}
The verse environment is designed for poetry, though you may find other uses for it. The margins are indented on the left and the right. Separate the lines of each stanza with \\, and use one or more blank lines to separate the stanzas.
Related Commands
Command:
\centering
This declaration corresponds to the center environment. This declaration can be used inside an environment such as quote or in a parbox. The text of a figure or table can be centered on the page by putting a \centering command at the beginning of the figure or table environment.
Unlike the center environment, the \centering command does not start a new paragraph; it simply changes how LaTeX formats paragraph units. To affect a paragraph unit’s format, the scope of the declaration must contain the blank line or \end command (of an environment like quote) that ends the paragraph unit.
Command:
\raggedright
This declaration corresponds to the flushleft environment. This declaration can be used inside an environment such as quote or in a parbox.
Unlike the flushleft environment, the \raggedright command does not start a new paragraph; it simply changes how LaTeX formats paragraph units. To affect a paragraph unit’s format, the scope of the declaration must contain the blank line or \end command (of an environment like quote) that ends the paragraph unit.
Command:
\raggedleft
This declaration corresponds to the flushright environment. This declaration can be used inside an environment such as quote or in a parbox.
Unlike the flushright environment, the \raggedleft command does not start a new paragraph; it simply changes how LaTeX formats paragraph units. To affect a paragraph unit’s format, the scope of the declaration must contain the blank line or \end command (of an environment like quote) that ends the paragraph unit.
Command:
\verb char literal_text char
\verb*char literal_text cha
Typesets literal_text exactly as typed, including special characters and spaces, using a typewriter (\tt) type style. There may be no space between \verb or \verb* and char (space is shown here only for clarity). The *-form differs only in that spaces are printed as a special character.
« Math Environments | Table of Contents | Picture Environment »