Draft for Information Only
Content
LaTeX Document Setup \documentclass Syntax Arguments Source and Reference
LaTeX Document Setup
The setup of a LaTeX typeset document is usually defined by the \documentclass command in form of a document class. However, additional document properties can also be defined by individual commands accordingly.
\documentclass
The \documentclass command is used to specify the fundamental setup of a LaTeX document.
Syntax
\documentclass [⟨option-list⟩]{⟨class-name⟩}[⟨release-date⟩]
Arguments
⟨option-list⟩optional, to specify the some typical properties of a LaTeX document. The options are separated by commas.
Some typical document class options are
Paper Sizea4paper, a5paper, b5paper, letterpaper, legalpaper, executivepaper.
Paper Orientationlandscape with default portrait paper
Type Size10pt, 11pt, 12pt with default 10pt
Printingoneside, twoside
Draft Optiondraft, final
titlepage Optiontitlepage, nottitlepage
Openright Optionopenright, openany
Two-column Printingonecolumn, twocolumn
Equation NumberingLeftleqno
Flush Left Displaysfleqn
Open Bibliographyopenbib
⟨class-name⟩to specify the .cls file of the document class used in typesetting. Some typical LaTeX document classes are
articleDefault class for composing an article\chapter is not supported. Typical ⟨option-list⟩s are oneside, final, notitlepage, openany, onecolumn, leqno.
reportTypesetting a multi-chapter reportTypical ⟨option-list⟩s are twoside, final, titlepage, openany, onecolumn, leqno.
bookTypesetting a book.Typical ⟨option-list⟩s are twoside, final, titlepage, openright, onecolumn, leqno.
letterTypesetting a standard LaTeX2 letter\maketitle, \chapter, \subsection, \begin{figure}, and \end{figure} are not supported. Typical ⟨option-list⟩s are oneside, final, notitlepage, openany, onecolumn, leqno.
slidesTypesetting slides\chapter, \begin{figure}, and \end{figure} are not supported. Typical ⟨option-list⟩s are oneside, final, titlepage, openany, onecolumn, leqno.
minimalThis class is the bare minimum (3 lines) that is needed in a LaTeX class file. It just sets the text width and height, and defines \normalsize\maketitle, \chapter, \Huge, \subsection, \begin{figure}, \end{figure}, and \includegraph are not supported. Typical ⟨option-list⟩s are oneside, notitlepage, openany, onecolumn, leqno.
standaloneThis class is the standalone \maketitle, \chapter, \subsection, \begin{equation}, \begin{figure}, \end{figure}, and \includegraph are not supported. Typical ⟨option-list⟩s are oneside, notitlepage, openany, onecolumn, leqno.
procTypesetting proceedings, based on article
ltxdocTypesetting the LaTeX program, based on article
ltxguideTypesetting the LaTex document, based on article
ltnewsTypesetting the latest LaTeX news, based on article
⟨release-date⟩optional, to specify the earliest desired released date of the class file. It should contain a date in the format YYYY/MM/DD.
Source and Reference
©sideway
ID: 200901502 Last Updated: 9/15/2020 Revision: 0
|
 |