请输入您要查询的百科知识:

 

词条 ConTeXt
释义

  1. License

  2. Versions

  3. History

  4. Example of code

  5. See also

  6. References

  7. External links

      Official pages    Manuals and tutorials    Comparison between ConTeXt and LaTeX  
{{Infobox software
| name = ConTeXt
| logo =
| author = Mainly Hans Hagen and Pragma ADE
| developer = Mainly Hans Hagen, Taco Hoekwater,[1] Aditya Mahajan, Mojca Miklavec, Wolfgang Schuster
| latest_release_version = Mark IV 0.61
| latest_release_date = {{release date|mf=yes|2015|05|24}}[2][3][4]
| operating_system = Multiplatform (TeX)
| genre = Document processor, Document markup language
| license = Program code under [https://www.gnu.org/licenses/gpl-2.0.html GPLv2] and Documentation under [https://creativecommons.org/licenses/by-nc-sa/3.0/ CC BY-NC-SA 3.0][5]
| website = contextgarden
}}

ConTeXt is a general-purpose document processor. It is especially suited for structured documents, automated document production, very fine typography, and multi-lingual typesetting. It is based in part on the TeX typesetting system, and uses a document markup language for manuscript preparation. The typographical and automated capabilities of ConTeXt are extensive, including interfaces for handling microtypography, multiple footnotes and footnote classes, and manipulating OpenType fonts and features. Moreover, it offers extensive support for colors, backgrounds, hyperlinks, presentations, figure-text integration, and conditional compilation. It gives the user extensive control over formatting while making it easy to create new layouts and styles without learning the low-level TeX macro language.

ConTeXt may be compared and contrasted with LaTeX, but the primary thrust of the two are rather distinct. ConTeXt from the ground up is a typography and typesetting system meant to provide users easy and consistent access to advanced typographical control—important for general-purpose typesetting tasks. The original vision of LaTeX is to insulate the user from typographical decisions—a useful approach for submitting, say, articles for a scientific journal. LaTeX has evolved from that original vision; at the same time, ConTeXt's unified design avoids the package clashes that can happen with LaTeX.[6][7]

ConTeXt provides a multi-lingual user interface with support for markup in English, Dutch, German, French, and Italian and support for output in many languages including western European, eastern European, Arabic-script, Chinese, Japanese, and Korean. It also allows the user to use different TeX engines like pdfTeX, XeTeX, and LuaTeX without changing the user interface.[7]

As its native drawing engine, ConTeXt integrates a superset of MetaPost called MetaFun,[7] which allows the users to use the drawing abilities of MetaPost for page backgrounds and ornaments. Metafun can also be used with stand alone MetaPost. ConTeXt also supports the use of other external drawing engines, like PGF/TikZ[8] and PSTricks.[9]

ConTeXt also provides a macro package for typesetting chemical structure diagrams with TeX called PPCHTeX,[10] as well as many other modules.[9][11][12] This package can also be used with plain TeX and LaTeX.

Originally entitled pragmatex, ConTeXt was given its name around 1996.[13] by Hans Hagen from PRAGMA Advanced Document Engineering (Pragma ADE), a Netherlands-based company.

License

ConTeXt is free software: the program code (i.e. anything not under the /doc subtree) is distributed under the GNU GPL; the documentation is provided under Creative Commons Attribution NonCommercial ShareAlike license.[14]

The ConTeXt official manual(2001) and ConTeXt official mini tutorial (1999) are documents copyrighted by Pragma, but there is a repository of the future new manual[15] released under the GNU Free Documentation License.[16][17] As of April 2009 there is an up-to-date version of the fonts and typography chapters.[18]

Versions

Mark IV (abbreviated MkIV) is the current version of ConTeXt. It's a development version and new features are being added constantly, although it is fully usable. There is also a frozen version called Mark II (abbreviated MkII) which is still maintained. The main difference between MkII and MkIV is that MkIV is based on the LuaTeX engine[19] and MkII is based on pdfTeX and XeTeX[20] (although one could select the TeX engine used in ConTeXt[21]). There are some documents describing the necessity of this change,[22] how the process is being carried out, and its benefits.[23] There are other minor differences between MkII and MkIV.[24]

Apart from the new features of MkIV, the changes between the code of MkII and MkIV are not visible in the user interface (in syntax document level). Both MkIV and MkII were released at the same time[25]

The oldest version of ConTeXt is Mark I, in which all the low-level code is written in Dutch. It is unmaintained.

History

ConTeXt was created by Hans Hagen[26] and Ton Otten of Pragma ADE in the Netherlands[27] around 1991[28][29] due to the need for educational typesetting material.

Around 1996, Hans Hagen coined the name ConTeXt meaning "text with tex" (con-tex-t; "con" is a Latin preposition meaning "together with").[26] Before 1996 ConTeXt was used only within Pragma ADE, but in 1996 it began to be adopted by a wider audience. The first users outside Pragma were Taco Hoekwater, Berend de Boer and Gilbert van den Dobbelsteen, and the first user outside the Netherlands was Tobias Burnus.[26]

In July 2004, contextgarden.net wiki page was created.[28][30]

ConTeXt low-level code was originally written in Dutch. Around 2005, the ConTeXt developers began translating this to English, resulting in the version known as MKII, which is now stable and frozen{{Citation needed|date=November 2009}}.

In August 2007, Hans Hagen presented the MKIV version,[29][31] and the first public beta was released later that year.[32]

During the ConTeXt User Meeting 2008, Mojca Miklavec presented[33] ConTeXt Minimals, a distribution of ConTeXt containing the latest binaries and intended to have a small memory footprint, thus demanding less bandwidth for updates.[34] In August 2008, this distribution was registered as a project in launchpad web site.[35]

In June 2008, Patrick Gundlach wrote the first post[36] in ConTeXt blog.

In July 2009, ConTeXt started git repository.[37]

In November 2010, the ConTeXt Group was created.[38]

Example of code

Making ConTeXt documents is simple: one makes a plain text file (typically with .tex extension), and compiles it with the context script.[39] The result of this process is a PDF file (ConTeXt also can generate a DVI file). An example is shown below.

% This line is a comment because % precedes it.

% It specifies the format of head named 'title'

% Specifically the style of the font: sans serif

% + bold + big font.

\\setuphead[title][style={\\ss\\bfd},

    before={\\begingroup},    after={John Doe, the author\\smallskip%           \\currentdate\\bigskip\\endgroup}]

\\starttext

\\title{\\CONTEXT}

\\section{Text}

\\CONTEXT\\ 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 (for example to

equation \\in[eqn:famous-emc]), tables and figures,

page layout, bibliographies, and much more.

It was originally written around 1990 by Hans

Hagen. It could be an alternative or complement

to \\LATEX.

\\section{Maths}

With \\CONTEXT\\ we could write maths. Equations

can be automatically numbered.

\\placeformula[eqn:famous-emc]

\\startformula

\\stopformula

with

\\placeformula[eqn:def-m]

\\startformula

\\stopformula

\\stoptext

See also

{{Portal|Free and open-source software}}
  • List of TeX extensions
  • LaTeX
  • TeX

References

1. ^Dave Walden interview with Taco Hoekwater. TeX User Group 2006.
2. ^Release notes of ConTeXt at contextgarden
3. ^List of releases of ConTeXt
4. ^ConTeXt files in Supelec
5. ^Read Me (license of ConTeXt code and documentation)
6. ^FAQ of the UK TeX Archive
7. ^"What is ConTeXt" page at contextgarden
8. ^PGF/TikZ official manual. Version 2.0 {{webarchive |url=https://web.archive.org/web/20110109090729/http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf |date=January 9, 2011 }}. Section 9.1.3 "Using the ConTeXt Format". p. 88
9. ^List of ConTeXt modules at contextgarden
10. ^PPCHTeX Module for ConTeXt reference page at contextgarden
11. ^List of ConTeXt modules (static page)
12. ^List of ConTeXt modules in web server for downloading
13. ^[https://tug.org/interviews/hagen.html Hans Hagen Interview, 2006]
14. ^{{cite web |url=http://wiki.contextgarden.net/Read_Me |title=Read Me | accessdate = 2010-07-13 |last=Hagen |first=Hans | date = 2005-11-24}}
15. ^Repository of new reference manual {{webarchive |url=https://web.archive.org/web/20120222103946/http://foundry.supelec.fr/gf/project/contextman/scmsvn/?action=browse&path=%2Fcontext-reference%2F |date=February 22, 2012 }}
16. ^License notice of new official manual {{webarchive |url=https://web.archive.org/web/20120222104006/http://foundry.supelec.fr/gf/project/contextman/scmsvn/?action=browse&path=%2Fcontext-reference%2FCOPYING&view=log |date=February 22, 2012 }}
17. ^Part of thread about context manual where Taco Hoekwater recognises that new manual is licensed under the GFDL and he should put license note on the current directory of manual
18. ^Up-to-date chapters of manual: Fonts and Typography. April 2009.
19. ^MKIV reference manual. (page 7)
20. ^LuaTeX support page. In this page there is a comment that MKII is based on pdfTeX and XeTeX while MKIV is based on LuaTeX.
21. ^TeX processors in ConTeXt
22. ^Hans Hagen "ConTEXt MkIV: Going UTF". TUGboat, Volume 28 (2007), No. 3 — Proceedings of the 2007 Annual Meeting. p314-316 (pdf)
23. ^Hans Hagen "MKII-MKIV". MAPS journal 34. p. 9-21 (pdf)
24. ^MKIV differences at context wiki
25. ^FAQ of ConTeXt
26. ^Dave Walden interview Hans Hagen. TeX User Group 2006.
27. ^"Ask Nelly ..." PracTeX Journal. TeX User Group. 2005. Includes an example of ConTeXt document with source code.
28. ^Taco Hoekwater "A short History of $2^4$ parts". ConTeXt User Meeting 2007 (march 24)
29. ^Programme of the ConTeXt User Meeting 2007
30. ^contextgarden 5th birthday on 24 July 2009
31. ^Hans Hagen The Road to MKIV. ConTeXt User Meeting 2007.
32. ^MKIV at contextgarden
33. ^ConTeXt User Meeting 2008 web page
34. ^ConTeXt Minimals web page
35. ^[https://launchpad.net/context ConTeXt at Launchpad.net]
36. ^First ConTeXt blog post
37. ^Post of announce of git repository
38. ^Official announcement of ConTeXt Group registration
39. ^"TeXEXEC explained" manual. Pragma ADE.

External links

{{toomanylinks|date=January 2017}}

Official pages

  • {{Citation |url=http://www.pragma-ade.nl/ |title=Pragma ADE |place=NL}} (distributes ConTeXt).
  • {{Citation |url=http://wiki.contextgarden.net/ |title=Contextgarden |type=wiki}} (official).
  • {{Citation |url=http://foundry.supelec.fr/gf/project/contextman/ |type=project |title=ConTeXt man |publisher=Supelec |place=FR}}, new ConTeXt documentation (dead link).
  • {{Citation |url=http://source.contextgarden.net/ |title=ConTeXt source browse |publisher=ConTeXt garden}}.

Manuals and tutorials

  • {{Citation |url=http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf |format=PDF |title=ConTeXt, An Excursion |year=1999 |type=mini tutorial |publisher=Pragma ADE}} (official).
  • {{Citation |url=http://www.pragma-ade.com/general/manuals/cont-eni.pdf |format=PDF |title=ConTeXt, the Manual |year=2001 }} (official).
  • {{Citation |url=http://articles.contextgarden.net/ |type=list |title=Articles about ConTeXt |publisher=ConTeXt garden}}.
  • {{Citation |url=http://www.tug.org/pracjourn/2005-1/peter/ |first=Steve |last=Peter |title=\\starttext % Practical ConTeXt |journal=The PracTeX Journal |year=2005}}.
  • {{Citation |url=http://www.tug.org/pracjourn/2007-2/walden/ |first=David |last=Walden | title =Travels in TeX Land: Trying ConTeXt |journal=The PracTeX Journal |year=2007}}.
  • {{Citation |url=http://meeting.contextgarden.net/2008/talks/2008-08-21-willi-aditya-beginners/Tutorial-text.pdf |format=PDF |first1=Aditya |last1=Mahajan |first2=Willi |last2=Egger |title=ConTEXt for Beginners, Part I: Wetting your feet |type=User meeting workshop presentation | date = 2008-08-21 |publisher=ConTeXt garden}} and {{Citation |url=http://meeting.contextgarden.net/2008/talks/2008-08-21-willi-aditya-beginners/Tutorial-text.pdf |title=ConTEXt for Beginners, Part II: Learning to float}}: introductory material of ConTeXt features.
  • {{Citation |url=http://context.aanhet.net/document.htm |title=ConTeXt |contribution=Manuals and FAQs for PPCHTeX |publisher=Ånhet}}.
  • {{Citation |url=http://wiki.contextgarden.net/MetaFun |contribution=Metafun |type=wiki |title=ConTeXt garden}} (includes the official manual).
  • {{Citation |url=http://www.pragma-ade.com/general/manuals/mk.pdf |format=PDF |title=The history of LuaTeX, 2006-2009 |publisher=Pragma ADE}}.

Comparison between ConTeXt and LaTeX

  • {{Citation |url=http://www.berenddeboer.net/tex/LaTeX2ConTeXt.pdf |format=PDF |first=Berend |last=de Boer |title=LaTeX in proper ConTeXt |year=2003 |type=tutorial}} for migration from LaTeX to ConTeXt.
  • {{Citation |url=http://maps.aanhet.net/maps/pdf/20_42.pdf |format=PDF |first=Taco |last=Hoekwater |title=Comparing ConTeXt and LaTeX |journal=MAPS Journal |year=1998 |pages=280–85}}. Note: this text is quite old, and the legal information it contains is not relevant today, since ConTeXt is under GPLv2.
  • {{Citation |url=https://tug.org/interviews/hagen.html |format=html |first=Hans |last=Hagen |year=2006 |title=Interview of Hans Hagen}}. Interview of Hans Hagen including an insight into what motivated the creation of ConTeXt.
  • {{Citation |url=http://meeting.contextgarden.net/2007/share/sanjoy/sanjoy-typesetting-textbook.pdf |format=PDF |first=Sanjoy |last=Mahajan |contribution=Typesetting math(s) with ConTeXt |title=ConTeXt User Meeting 2007 |type=presentation slides}}.
  • {{Citation |url=http://wiki.contextgarden.net/Latex_Packages |title=ConTeXt |contribution=Functionality of core latex packages in ConTeXt |format=wiki}}.
  • {{Citation |url=http://dl.contextgarden.net/myway/context-latex-math.pdf |format=PDF |first=Aditya |last=Mahajan |contribution=Display math in ConTeXt: ConTeXt rehab for amsmath addicts |title=MyWay |date=June 2007}}. Originally {{Citation |title = Display Math in ConTEXt ConTEXt rehab for amsmath addicts |url = http://www.ntg.nl/maps/34/06.pdf |format=PDF |journal=MAPS Journal |volume=34 |year=2006 |pages=22–34}}. Contains a comparison of ConTeXt math capabilities with various latex math features, overall math alignments (gather, split, etc.).
{{TeX navbox}}{{Document markup languages}}{{DEFAULTSORT:Context}}

2 : Free TeX software|Page description languages

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 17:39:05