Title: Introduction to LaTeX
1Introduction to LaTeX
A Mathematical typesetting system
2The Required ElementsAll LaTeX documents must
include the following parts
- \documentclass12ptarticle
- \begindocument
- \enddocument
The PREAMBLE goes here
The BODY of the document goes here
3Environments
- LaTeX code is set up with environments.
Everything is enclosed in the document
environment. - \begindocument
- \enddocument
The document environment
4Environments
- You enter and leave most environments with
beginning and ending commands of the form - \beginenvironmentname
-
- \endenvironmentname
The code/text goes here
5Some Formatting environments
- \begincenter . . . \endcenter
- Numbered lists
- \beginenumerate
- \item
- \item
- \endenumerate
The first item in the numbered list goes here
The second item in the numbered list goes here
6More on enumeration
- If you want sub-headings, nest the lists
- \beginenumerate
- \item
- \beginenumerate
- \item
- \item
- \endenumerate
- \item
- \endenumerate
The first item in the sub-list goes here
The second item in the sub-list goes here
7More on lists
- If you want bulleted lists, you use the same
format as for numbered lists with - \beginitemize
- \item
- \beginitemize
- \item
- \item
- \enditemize
- \item
- \enditemize
8More on lists
- If you want to designate the headings for the
lists, you use the description environment - \begindescription
- \itemCase i.
- \itemCase ii.
- \enddescription
The text for Case i. goes here
The text for Case ii. goes here
9Typesetting Mathematics
- There are two main math environments
- In-line math mode. This is for equations that
occur in the same line as narrative. You enter
and leave in-line math mode with dollar signs.
Ex f(x)x3-x - Displayed math. Several entry/exit choices
- \begindisplaymath . . . \enddisplaymath
- . . .
- \ . . . \
10Some Miscellaneous Expressions
- Normal text
- How many subsets does
have?
- LaTeX code
- How many subsets does \emptyset have?
Notice the use of the backslash ( \ ). This is
your message to LaTeX that you are about to give
it a command.
11Some Miscellaneous Expressions
- Normal text
- How many subsets does
have?
- LaTeX code
- How many subsets does \emptyset have?
- A \ 1,2,3,4 \
- A \subseteq B and B \subseteq A.
- f(x)\fracx31x2.