Latex Class: Basics of Latex How To Prepare Articles and Books
Latex Class: Basics of Latex How To Prepare Articles and Books
Basics of Latex
How to prepare articles and books
Prelimnaries
\documentclass[options]{class}
..
.
\usepackage[options]{class}
..
.
\pagestyle{style|}
..
.
\begin{document}
. . . \end{document}
Class
[article] for articles in scientific journals, presentations, short
reports, program documentation, invitations, . . .
[proc] a class for proceedings based on the article class.
[minimal] is as small as it can get. It only sets a page size and a
base font. It is mainly used for debugging purposes.
[report] for longer reports containing several chapters, small
books, PhD theses, . . .
[book] for real books
[slides] for slides. The class uses big sans serif letters.
[publisher provided] Publishers themselves provide files for
you.
Options
[10pt, 11pt, 12pt] Sets the size of the main font in the
document. If no option is specified, 10pt is assumed.
[a4paper, letterpaper, . . . ] Defines the paper size. The
default size is letterpaper. Besides that, a5paper, b5paper,
executivepaper, and legalpaper can be specified.
[fleqn] Typesets displayed formulae left-aligned instead of
centred.
[leqno] Places the numbering of formulae on the left hand side
instead of the right.
[titlepage, notitlepage] Specifies whether a new page
should be started after the document title or not.
Options
[onecolumn, twocolumn] Instructs LATEX to typeset the
document in one column or two columns.
[twoside, oneside] Specifies whether double or single sided
output should be generated. The classes article and report
are single sided and the book class is double sided by default.
Note that this option concerns the style of the document only.
The option twoside does not tell the printer you use that it
should actually make a two-sided printout.
[landscape] Changes the layout of the document to print in
landscape mode.
[openright, openany] Makes chapters begin either only on
right hand pages or on the next page available.
Packages
[exscale] Provides scaled versions of the math extension font.
[latexsym] To access the LATEX symbol font, you should use the
latexsym package.
[makeidx] Provides commands for producing indexes.
[syntonly] Processes a document without typesetting it.
[amsmath, amssymb, amsfont] AMS Math society packages
Packages
[plain] prints the page numbers on the bottom of the page, in
the middle of the footer. This is the default page style.
[headings] prints the current chapter heading and the page
number in the header on each page, while the footer remains
empty. (This is the style used in this document)
[empty] sets both the header and the footer to be empty.
\thispagestyle{style}
Typesetting text
The most important text unit in LATEX (and in typography) is
the paragraph.
You can force line breaks with e.g. \\, and paragraph breaks
with e.g. leaving an empty line in the source code. Many
people, especially in LATEX, introduce paragraph breaks
without knowing it.
Paragraph- unintended
Example 1
\ldots when Einstein introduced his formula
\begin{equation}
e = m \cdot c^2 \; ,
\end{equation}
which is at the same time the most widely known
and the least well understood physical formula.
--------------------------------------------------
Example 2
\ldots from which follows Kirchhoffs current law:
\begin{equation}
\sum_{k=1}^{n} I_k = 0 \; .
\end{equation}
e = m c2 , (1)
which is at the same time the most widely known and the least well
understood physical formula.
Example 2 . . . from which follows Kirchhoffs current law:
X
n
Ik = 0 . (2)
k=1
\\*
\newpage
\mbox{text}
\section{...}
\subsection{...}
\subsubsection{...}
\paragraph{...}
\subparagraph{...}
\chapter{...}
\tableofcontents
\maketitle
\footnote{footnote text}
\underline{text}
\emph{text}