LaTeX: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Morten Juhl-Johansen Zölde-Fejér
No edit summary
imported>Morten Juhl-Johansen Zölde-Fejér
No edit summary
Line 1: Line 1:
LaTeX is a markup language for generating print-quality typesetting.<br/>
LaTeX is a markup language for generating print-quality typesetting.<br/>
It is mostly used academic circles, primarily in the natural sciences, for creating material for scientific publications.
It is mostly used academic circles, primarily in the natural sciences, for creating material for scientific publications. LaTeX is very well-equipped for displaying formulae and diagrams.




== How it works ==
== How it works ==
A LaTeX document structure is comparable to HTML: There is a preamble which indicates some basic, overall features of the document, and there is the main document with the relevant markup for formatting.
A LaTeX document structure is split in two: There is a preamble, which indicates some basic, overall features of the document, and there is the main document with the relevant markup for formatting.<br/>
The document is initially created as a flat file


=== Code example ===
=== Code example ===
Line 14: Line 15:
  \author{Morten Juhl Johansen}
  \author{Morten Juhl Johansen}
  \title{LaTeX article}
  \title{LaTeX article}
  \begin{document}
  \begin{document}
  This is the beginning of an article on \LaTeX!\\
  This is the beginning of an article on \LaTeX!\\
Line 23: Line 25:
  \end{equation*}
  \end{equation*}
  \end{document}
  \end{document}
== References ==
* [http://www.latex-project.org/] The LaTeX Project web site]
* [http://www.ctan.org/tex-archive/info/lshort/english/ Tobias Ötker: A (Not So) Short Introduction to LaTeX2e]

Revision as of 02:16, 13 August 2007

LaTeX is a markup language for generating print-quality typesetting.
It is mostly used academic circles, primarily in the natural sciences, for creating material for scientific publications. LaTeX is very well-equipped for displaying formulae and diagrams.


How it works

A LaTeX document structure is split in two: There is a preamble, which indicates some basic, overall features of the document, and there is the main document with the relevant markup for formatting.
The document is initially created as a flat file

Code example

\documentclass[12pt,a4paper,notitlepage]{article}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage{amsmath}
\usepackage{amsfonts}
\author{Morten Juhl Johansen}
\title{LaTeX article}

\begin{document}
This is the beginning of an article on \LaTeX!\\
There are \textbf{bold text}, \textit{italics}, \underline{underscoring}, footnotes\footnote{this is a footnote}\\
- and lots of other goodies. A math example:
\begin{equation*}
\sum_{n=1}^\infty
  \frac{1}{n^2}= \frac{\pi^2}{6}.
\end{equation*}
\end{document}


References