LaTeX: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Morten Juhl-Johansen Zölde-Fejér
imported>Morten Juhl-Johansen Zölde-Fejér
No edit summary
Line 3: Line 3:
It is mostly used in academic circles, primarily in the natural sciences, for creating material for scientific publications. LaTeX is particularly well-equipped for displaying formulas and diagrams.<br/>
It is mostly used in academic circles, primarily in the natural sciences, for creating material for scientific publications. LaTeX is particularly well-equipped for displaying formulas and diagrams.<br/>
While critics claim that using a markup language structure is dated compared to using [[WYSIWYG]] word processors, LaTeX still plays an important part in the industry.
While critics claim that using a markup language structure is dated compared to using [[WYSIWYG]] word processors, LaTeX still plays an important part in the industry.
The LaTeX system is continually under development, and it is extensible by ''packages''. Such packages can found at (and submitted to) <ref>the Comprehensive TeX Archive Network[http://www.ctan.org/]</ref>.
The LaTeX system is continually under development, and it is extensible by ''packages''. Such packages can found at (and submitted to) the Comprehensive TeX Archive Network<ref>http://www.ctan.org/</ref>.


== How it works ==
== How it works ==

Revision as of 03:06, 13 August 2007

LaTeX is a markup language for generating print-quality typesetting. It is based on the TeX system developed by Donald Knuth.
A file with formatting tags is compiled to create a high-quality print-ready graphical file, observing the rules of style defined by typesetting professionals.
It is mostly used in academic circles, primarily in the natural sciences, for creating material for scientific publications. LaTeX is particularly well-equipped for displaying formulas and diagrams.
While critics claim that using a markup language structure is dated compared to using WYSIWYG word processors, LaTeX still plays an important part in the industry. The LaTeX system is continually under development, and it is extensible by packages. Such packages can found at (and submitted to) the Comprehensive TeX Archive Network[1].

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, meaning that one can use any non-formatting editor of choice. Editors like [2] and [3] will syntax color the LaTeX code, making it more intuitive to write.
As the code is a flat file, the output file will be small compared to files from many standard word processing applications.
TeX and LaTeX are Free Software.

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}

Output:
Latex-eksempel.png

References

  1. http://www.ctan.org/
  2. Notepad++[1]
  3. TeXmaker[2]

Literature

  • Kopka, Helmut; Daly, Patrick W.: Guide to LaTeX. 4th edition. Addison-Wesley Professional, 2003. ISBN 0-321-17385-6.
  • Lamport, Leslie: LaTeX: A document preparation system: User's guide and reference. 2nd edition, Reading, Mass. Addison-Wesley Professional, 1994. ISBN 0-201-52983-1.

External links