A first example

A simple letter written with LATEX: simple.tex

The generated document looks like:


A LATEX file consists of regular text and commands. The line breaks and additional spaces in the text are ignored. Exception: Blank lines produce a new paragraph.

LATEX commands start with the backslash '\'. They may contain arguments which are enclosed in curly ({,}) brackets. If there are additional optional arguments, they are given first, enclosed in square ([,]) brackets.

The simple command \LaTeX produces the word Latex in the usual form: LATEX.

A linebreak is inserted with the command \\.

The commands \opening and \closing set their argument in a special style at the beginning resp. end of the letter.

A special class of commands use ``environments'':

   text more text much text

   even spanning paragraphs

They set the text between \begin{ENVIR} and \end{ENVIR} in a special way, according to the given environment.

The letter environment creates a letter from the included text. It starts with the current date and the address (given as argument) and ends with the signature that was defined before. A document can contain several letters.

A LATEX document has the following structure







OPTIONS describe some general parameters like paper format or basic font size (a4paper, 11pt)
TYPE type of document (article, report, book)
PREAMBEL commands with special style infos or macros
TEXT the text with additional commands

The preambel contains definitions and general settings. They are not displayed directly, but influence the appearance of the text or are used in the text.

The example text contains the \signature command in the preambel. It stores the signature for later use in the letter.

previous    contents     next

Peter Junglas 15.5.2000