LaTeX Definitions

Defining or redefinig commands and environments can be done by them.

\newcommand, \renewcommand

  \newcommand{cmd}[args]{def}
  \renewcommand{cmd}[args]{def}
These commands define (or redefine) a command.

\newenvironment, \renewenvironment

 \newenvironment{nam}[args]{begdef}{enddef}
 \renewenvironment{nam}[args]{begdef}{enddef}
These commands define or redefine an environment.

\newtheorem

  \newtheorem{env_name}{caption}[within]
  \newtheorem{env_name}[numbered_like]{caption}
This command defines a theorem-like environment. The \newtheorem command may have at most one optional argument.

\newfont

 \newfont{cmd}{font_name}
Defines the command name cmd, which must not be currently defined, to be a declaration that selects the font named font_name to be the current font.

Back to the main LaTeX page.