# Latex Beamer Definition Example Essays

- Acceptable:
*We shall number the phases 1, 3, 5, 7, etc.* - Unacceptable:
*We measure performance factors such as volatility, scalability, etc.*

(**Exercise:** The above rule is violated at least once in this document. Find the violations.)

*We decided not to consider the alternative, for various reasons.*) Tell the reader the reasons!

*Our experiments test several different environments and the algorithm does well in some but not all of them. This is important because ...*

(**Exercise:** The above rule is violated at least once in this document. Find the violations.)

(**Exercise:** The above rule is violated at least once in this document. Find the violations.)

*The algorithms that are easy to implement all run in linear time.**The algorithms, which are easy to implement, all run in linear time.*

Mathematical documents include elements that require special formatting and numbering such as theorems, definitions, propositions, remarks, corollaries, lemmas and so on. This article explains how to define these environments in LaTeX.

## [edit]Introduction

Numbered environments in LaTeX can be defined by means of the command . An example is presented below:

The command has two parameters, the first one is the name of the environment that is defined, the second one is the word that will be printed, in boldface font, at the beginning of the environment. Once this new environment is defined it can be used normally within the document, delimited it with the marks and .

Open an example in ShareLaTeX

## [edit]Numbered theorems, definitions, corollaries and lemmas

The numbering of the environments can be controlled by means of two additional parameters in the command. Let's see:

There are three new environments defined in the preamble.

- This is the example presented in the introduction but it has the additional parameter that restarts the theorem counter at every new section.

- A environment called
*corollary*is created, the counter of this new environment will be reset every time a new*theorem*environment is used.

- In this case, the even though a new environment called
*lemma*is created, it will use the same counter as the*theorem*environment.

Some famous theorems have their own names, for these cases you can add said name inside brackets in the environment opening command. In the example the line prints "Pythagorean theorem" at the beginning of the paragraph.

As with many other numbered elements in LaTeX, the command can be used to reference theorem-like environments within the document.

Open an example in ShareLaTeX

## [edit] Unnumbered theorem-like environments

Sometimes it becomes handy to have an unnumbered theorem-like environments to add remarks, comments or examples to a mathematical document. The package **amsthm** provides this functionality.

The syntax of the command is the same as the non-starred version, except for the counter parameters. In this example a new unnumbered environment called *remark* is created.

Open an example in ShareLaTeX

## [edit] Theorem styles

A feature that is important when working in a mathematical document is to easily tell apart, say, definitions from theorems by its formatting. The package **amsthm** provide special commands to accomplish this.

The command sets the styling for the numbered environment defined right below it. In the example above the styles *remark* and *definition* are used. Notice that the remark is now in italics and the text in the environment uses normal (Roman) typeface, the definition on the other hand also uses Roman typeface for the text within but the word "Definition" is printed in boldface font.

See the reference guide for more theorem styles.

Open an example in ShareLaTeX

## [edit] Proofs

Proofs are the core of mathematical papers and books and is customary to keep them visually apart from the normal text in the document. The package **amsthm** provides the environment *proof* for this.

The word *Proof* is italicized and there is some extra spacing, also a special symbol is used to mark the end of the proof. This symbol can be easily changed, to learn how see the next section.

Open an example in ShareLaTeX

## [edit] Changing the qed symbol

To change the symbol printed at the end of a proof is straightforward.

The command changed the default white square for a black square that is printed by , the parameter inside the braces. You can change this for any other symbol or text, for instance you can use

To print the traditional * QED* (quod erat demonstrandum) at the end of a proof.

Open an example in ShareLaTeX

## [edit] Reference guide

**Theorem styles**

- boldface title, romand body. Commonly used in definitions, conditions, problems and examples.
- boldface title, italicized body. Commonly used in theorems, lemmas, corollaries, propositions and conjectures.
- italicized title, romman body. Commonly used in remarks, notes, annotations, claims, cases, acknowledgments and conclusions.

## [edit] Further reading

For more information see: