# Latex Documents

#### Document Types

The following document types can be created using mark-up code.  Predefined templates for each type ship with and more can be found in open-source archives. For example, publishers provide templates to facilitate content delivery and typesetting, or to better align document structure and content:

[table id=45 /]

Document types are defined in the first line of mark-up code using the command \documentclass[…]{…}. The basic skeleton of a document has the following elements:

The most common options for the standard document classes are listed in the following table:

[table id=46 /]

#### Preamble

The area between \documentclass[…]{…}  and \begin{document} is called the preamble. It normally contains commands and default setting that affect the entire document.  For instance, a normal document preamble might look like this:

If 12pt is omitted from the \documentclass[…]{} command, then the document will be set in 10pt size.

The preamble also relies heavily on packages, which expand document flexibility with TEX macros or custom code.  The last line above defines a document default (e.g. max number of figures per page), and is one of many that could be defined.

Finally, if there are two authors separate them with the \and command:

#### Title Page

To display the title and document meta-data, it is necessary to include  additional code after \begin{document}:

The commands \begin{titlepage} and \end{titlepage} declare an environment (e.g. a chunk of code with specific behavior).  The outcome will depend on document class.  For articles, the title page is the first page and separated from any text.

The command \maketitle then launches the environment and prints the title, author and date.  If the titlepage environment is not used, the title will appear at the beginning of the document on the same page as the intro text.

#### Abstract

Many scientific documents or business briefs include an overview of the main subject of the paper. In , there’s the abstract environment for this. The abstract environment will places the intro text  in a special format at the top of your document.

By default, will use the word “Abstract” as a title for your abstract. If you want to change it into anything else, e.g. “Executive Summary”, add the following line before you begin the abstract environment:

#### Paragraphs and New Lines

If you need to start a new paragraph you must hit the “Enter” key twice (to insert a double blank line). Notice that paragraphs have a white space before the first line.

To start a new line without actually starting a new paragraph insert a break line point, this can be done by \\ (a double backslash as in the example) or the \newline command.  For example, to create a more complex title page: