LaTeX

From Wikipedia, the free encyclopedia

(Redirected from LaTeX2e)
Jump to: navigation, search
The LaTeX logo, typeset with LaTeX
The LaTeX logo, typeset with LaTeX

LaTeX is a document markup language and document preparation system for the TeX typesetting program. Within the typesetting system, its name is styled as \mathrm{L\!\!^{{}_{\scriptstyle \Alpha}} \!\!\!\!\!\;\; \Tau\!_{\displaystyle \Epsilon} \! \Chi}.

LaTeX is widely used by mathematicians, scientists, philosophers, engineers, scholars in academia and the commercial world, and other professionals.[1] As a primary or intermediate format (e.g. translating DocBook and other XML-based formats to PDF), LaTeX is used because of the quality of typesetting achievable by TeX. The typesetting system offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout and bibliographies.

LaTeX is intended to provide a high-level language that accesses the power of TeX. LaTeX essentially comprises a collection of TeX macros and a program to process LaTeX documents. Because the TeX formatting commands are very low-level, it is usually much simpler for end-users to use LaTeX.

LaTeX was originally written in the early 1980s by Leslie Lamport at SRI International [2]. It has become the dominant method for using TeX—few people write in plain TeX anymore. The current version is LaTeX2e (styled \mathrm{L\!\!^{{}_{\scriptstyle \Alpha}} \!\!\!\!\!\;\; \Tau\!_{\displaystyle \Epsilon} \! \Chi} \, 2_{\displaystyle \varepsilon}).

Distributed under the terms of the LaTeX Project Public License (LPPL), LaTeX is free software.

Contents

LaTeX is based on the idea that authors should be able to focus on the meaning of what they are writing without being distracted by the visual presentation of the information. In preparing a LaTeX document, the author specifies the logical structure using familiar concepts such as chapter, section, table, figure, etc., and lets the LaTeX system worry about the presentation of these structures. It therefore encourages the separation of layout from content while still allowing manual typesetting adjustments where needed. This is similar to the mechanism by which many word processors allow styles to be defined globally for an entire document or the CSS mechanism used by HTML.

The example below shows the LaTeX input:

\documentclass[12pt]{article}
\title{\LaTeX}
\date{}
\begin{document}
  \maketitle \LaTeX{} is a document preparation system for the \TeX{} 
  typesetting program. It offers programmable desktop publishing 
  features and extensive facilities for automating most aspects of 
  typesetting and desktop publishing, including numbering and 
  cross-referencing, tables and figures, page layout, bibliographies, 
  and much more. \LaTeX{} was originally written in 1984 by Leslie 
  Lamport and has become the dominant method for using \TeX; few 
  people write in plain \TeX{} anymore. The current version is 
  \LaTeXe.
  \newline
  % This is a comment, it is not shown in the final output.
  % The following shows a little of the typesetting power of LaTeX
  \begin{align}
    E &=& mc^2                              \\
    m &=& \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
  \end{align}
\end{document}

This input would produce the following LaTeX output:

LaTeX can be arbitrarily extended by using the underlying macro language to develop custom formats. Such macros are often collected into packages, which are available to address special formatting issues such as complicated mathematical content or graphics.

LaTeX is usually pronounced /ˈleɪtɛk/ or /ˈlɑːtɛk/ in English (that is, not with the /ks/ pronunciation English speakers normally associate with X, but with a /k/). The last character in the name comes from a capital Χ (chi), as the name of TeX derives from the Greek τέχνη (skill, art, technique); for this reason, TeX's creator Donald Knuth promotes a /tɛx/ pronunciation (that is, with a voiceless velar fricative as in Modern Greek, or the last sound of the Scottish word "loch" or the German word "Bach", similar to the Spanish "j" or Arabic "خ" sounds). Lamport, on the other hand, has said he does not favor or discourage any pronunciation for LaTeX.

The name is traditionally printed with the special typographical logo shown on this page. In media where the logo cannot be precisely reproduced in running text, the word is typically given the unique capitalization LaTeX to avoid confusion with the word “latex”.

LaTeX is typically distributed along with plain TeX. It is distributed under a free software license, the LaTeX Project Public License (LPPL). The LPPL is not compatible with the GNU General Public License, as it requires that modified files must be clearly differentiable from their originals (usually by changing the filename); this was done to ensure that files that depend on other files will produce the expected behavior and avoid dependency hell. The LPPL is DFSG compliant as of version 1.3. As free/open source software, LaTeX is available on most operating systems including Linux, Unix (including the BSDs), Windows, Mac OS X and AmigaOS. The first DVI previewers capable of on-screen previewing and modification of LaTeX documents were Amigas.[3][4]

As a macro package, LaTeX provides a set of macros for TeX to interpret. There are many other macro packages for TeX, including Plain TeX, GNU Texinfo, AMSTeX, and ConTeXt.

When TeX "compiles" a document, the processing loop (from the user's point of view) goes like this: Macros > TeX > Driver > Output. Different implementations of each of these steps is typically available in TeX distributions. Traditional TeX will output a DVI file, which is usually converted to a PostScript file. More recently, Hàn Thế Thành and others have written a new implementation of TeX called pdfTeX, which also outputs to PDF and takes advantages of features available in that format. The XeTeX engine developed by Jonathan Kew merges modern font technologies with TeX.

The default font for LaTeX is Knuth's Computer Modern, which gives default documents created with LaTeX the same distinctive look and feel as those created with plain TeX.

LaTeX2e is the current version of LaTeX. As of 2007, a future version called LaTeX3 is in development. Planned features include improved syntax, hyperlink support, a new user interface, access to arbitrary fonts, and new documentation.[5]

There are numerous commercial implementations of the entire TeX system. System vendors may add extra features like additional typefaces and telephone support. LyX is a free visual document processor that uses LaTeX for a back-end. TeXmacs is a free, WYSIWYG editor with similar functionalities as LaTeX but a different typesetting engine.

A number of TeX distributions are available, including TeX Live (multiplatform), teTeX (deprecated, Unix), fpTeX (deprecated), MiKTeX (Windows), MacTeX, gwTeX (Mac OS X), OzTeX (Mac OS Classic), AmigaTeX (no longer available) and PasTeX (AmigaOS) available on Aminet repository.

  1. ^ What are TeX, LaTeX and friends?.
  2. ^ Leslie Lamport (April 23, 2007). The Writings of Leslie Lamport: LaTeX: A Document Preparation System. Leslie Lamport's Home Page. Retrieved on 2007-04-27.
  3. ^ In 1986 Tomas Rokicki printed his first page with dvisw, an early DVI printer driver for the Amiga, on a QMS SmartWriter using AmigaTeX by Radical Eye Software. A link to a relic info about milestones of LaTeX history is available at this external site.
  4. ^ Description of Amiga system used by Tomas Rokicki in an article on TUG official review Tugboat: TUGboat, volume 9, (1998) n.1; Site Reports "The Commodore Amiga: A Magic Machine" by Tomas Rokicki, also available in PDF format at this external site
  5. ^ Frank Mittelbach, Chris Rowley (January 12, 1999). The LaTeX3 Project. Retrieved on 2007-07-30.

  • Mittelbach, Frank; Goosens, Michel (2004). The LaTeX Companion, 2nd edition, Addison-Wesley. ISBN 0-201-36299-6. 
  • Lamport, Leslie (1994). LaTeX: A document preparation system: User's guide and reference, illustrations by Duane Bibby, 2nd edition, Reading, Mass: Addison-Wesley Professional. ISBN 0-201-52983-1. 
  • Kopka, Helmut; Daly, Patrick W. (2003). Guide to LaTeX, 4th edition, Addison-Wesley Professional. ISBN 0-321-17385-6. 
  • Griffiths, David F.; Highman, David S. (1997). Learning LaTeX. Philadelphia: Society for Industrial and Applied Mathematics. ISBN 0-898-71383-8. 

Find more information on LaTeX by searching Wikipedia's sister projects
Dictionary definitions from Wiktionary
Textbooks from Wikibooks
Quotations from Wikiquote
Source texts from Wikisource
Images and media from Commons
News stories from Wikinews
Learning resources from Wikiversity
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.