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
Line 4: Line 4:


== 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  
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.


=== Code example ===
=== Code example ===


  \documentclass[12pt,a4paper,notitlepage]{article}
  \documentclass[12pt,a4paper,notitlepage]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[utf8x]{inputenc}
  \usepackage{ucs}
  \usepackage{ucs}
  \author{Morten Juhl Johansen}
  \author{Morten Juhl Johansen}
  \title{LaTeX article}
  \title{LaTeX article}
  \begin{document}
  \begin{document}
  This is the beginning of a \LaTeX article!
  This is the beginning of an article on \LaTeX!\\
There are \textbf{bold}, \textit{italics}, \underline{underscoring}, footnotes\footnote{this is a footnote}\\
- and lots of other goodies.
  \end{document}
  \end{document}

Revision as of 01:01, 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.


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.

Code example

\documentclass[12pt,a4paper,notitlepage]{article}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\author{Morten Juhl Johansen}
\title{LaTeX article}
\begin{document}
This is the beginning of an article on \LaTeX!\\
There are \textbf{bold}, \textit{italics}, \underline{underscoring}, footnotes\footnote{this is a footnote}\\
- and lots of other goodies.
\end{document}