Fandom

LaTeX Wiki

List of LaTeX commands

142pages on
this wiki
Add New Page
Talk0 Share

This article is about LaTeX commands. Commands begin with a backslash, followed by the command name, then optional parameters enclosed in square brackets, and required parameters enclosed in curly braces. Commands control the way LaTeX operates, unlike symbols, which render text.

Preamble commandsEdit

The structure of a LaTeX document is

\documentclass{class}
… your preamble goes here …
\begin{document}
… the text of the document itself goes here …
\end{document}

There is no preamble if you are using LaTeX in a wiki; the wiki <math> ... </math> tags put you in a math environment within the text of the document itself.

documentclass commandEdit

documentclass is the first command of a LaTeX document, and identifies the type of document contained in the input file.

\documentclass{documentclass}

usepackage commandEdit

usepackage tells LaTeX to load packages of environments, commands, and symbols for specific purposes. The amsmath package, for example, contains a comprehensive set of mathematical symbols.

\usepackage{amssymb,amsmath}

numberwithin commandEdit

The preamble command, \numberwithin{equation}{section} can be used to number equations with the two-level name m.n (section number.equation number).

Meta commandsEdit

"Meta" is my name for commands that affect other commands, or the way LaTeX operates.

\input{filename.tex} includes the contents of another file within the current file.

Environment commandsEdit

An environment exists in the text between the \begin and \end commands.

\begin{environment}
... commands and symbols valid in this environment
\end{environment}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.