Questions tagged [context]

ConTeXt is a TeX macro package like LaTeX and eplain. It provides a consistent, key-value driven user interface, supports all TeX engines, is tightly integrated with LuaTeX & Metapost, and supports grid-typesetting, PDF/A, PDF/X, XML/XHTML & ePub export.

ConTeXt, in the words of the ConTeXt wiki, is a document markup language and document preparation system based on TeX. It was designed with the same general-purpose aims as LaTeX of providing an easy to use interface to the high quality typesetting engine provided by TeX. However, while LaTeX insulates the writer from typographical details, ConTeXt takes a complementary approach by providing structured interfaces for handling typography, including 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 TeX macro language. ConTeXt’s unified design avoids the package clashes that can happen with LaTeX.

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 languages, eastern European languages, Arabic, Chinese, Japanese, and Korean. It also allows the user to use different TeX engines like pdfTeX, XeTeX, and LuaTeX without changing the user interface.

ConTeXt integrates a superset of MetaPost called MetaFun which allows the users to use the drawing abilities of MetaPost for page backgrounds and ornaments. Metafun can also be used with stand alone with MetaPost.

ConTeXt also provides a macro package for typesetting chemical structure diagrams with TeX called PPCHTeX. This package can also be used with plain TeX and LaTeX.

Use of tags

Depending on the version of ConTeXt you are using, tag your question either with (for Mk II) or (for Mk IV).

Getting started with Context

Hans Hagen's ConTeXt: An excursion provides a good, very readable introduction to the basics of document preparation in ConTeXt, although it really targets Mk. II. Taco Hoekwater has authored the current User Manual which, besides being the authorative reference for current functionality, also provides excellent summaries of such issues as how to handle fonts in typesetting. Hans Hagen's METAFUN: Context mk iv describes the Metapost-based approach to layout in Context.

FAQ

  1. Why should I be interested in ConTeXt?
  2. Where can I find good ConTeXt documentation
  3. Availability of LaTeX packages' functionality in ConTeXt, XeTeX, and LuaTeX
  4. The definitive guide to ConTeXt MkIV documentation
1815 questions
203
votes
6 answers

Why should I be interested in ConTeXt?

In the spirit of a free-form Friday on StackOverflow, I'd like to know if I should consider learning ConTeXt. What got me into LaTeX way back in 1994 was having structural markup that made longer documents easier to write. What got me into XeTeX…
Matthew Leingang
  • 44,937
  • 14
  • 131
  • 195
69
votes
4 answers

What is the mindset to take when using ConTeXt vs LaTeX?

Having recently gotten back into writing with LaTeX, I explored XeTeX and found advances in using modern fonts, explored LuaTeX and found a next-gen development underway, and explored ConTeXt and found ... a focus on formatting? To me, LaTeX and…
ana
  • 823
30
votes
3 answers

Why don't people use ConTeXt?

ConTeXt has a number of advantages over LaTeX. But for some reason people prefer second one. ConTeXt can generate epub, pdf, XHTML and xml while LaTeX can only generate pdf and dvi. [1] ConTeXt provides third-party font support while pdflatex…
TSFan
  • 417
17
votes
2 answers

Looking for ConTeXt examples

On the internet you find a lot of ready-to-typeset LaTeX examples (often called templates) on websites such as LaTeX Templates or Overleaf. These allow novices to produce documents really quickly and more advanced users can find out how to achieve…
13
votes
2 answers

Health of ConTeXt community

I have been assessing ConTeXt as a platform for technical documentation production. It seems to have some compelling capabilities that are hard to match with LaTeX, such as in-built XML and HTML support, project-orientatedness, and more seamless…
Ron
  • 301
13
votes
2 answers

If we are about to write a minimal ConTeXt primer, what to cover?

I need to write a ConText primer for those who never used ConTeXt, and have no LaTeX background. What should I cover in order to give a precise overview of this system?
12
votes
1 answer

What is pronounciation of ConTeXt

How should I pronounce ConTeXt? In TeX and LaTeX x is χ so it is TeΧ and LaTeΧ. However the t after X make such pronounciation in ConTeXt difficult.
10
votes
2 answers

ConTeXt equivalent of \renewcommand

I can use \define to define a new command, but how do I overwrite an existing one? My use case is rewriting all {\externalfigure[cow]} to \placefigure[right]{My Caption}{\externalfigure[cow]} to float them.
mb21
  • 790
  • 4
  • 19
9
votes
1 answer

Applying van de Graaf's Canon (ninths-division) in ConTeXt

I'm sure this is an obvious question but after much tinkering all I've managed to do is confuse myself. I'm typesetting a book. The paper size is 5.5×8.5". I want to apply the canons of page construction to the book. If I calculate 1/9 of 5.5×8.5"…
Daniel Lyons
  • 2,031
  • 14
  • 23
8
votes
2 answers

ConTeXt: Calculating remaining space on page like testpage

Is there a mechanism similar to testpage to check how many lines of text remain on a page but to do something other than issue a page break? I would like to determine if there are more than say, 10 lines, remaining on the page, and if there are,…
ssokolen
  • 1,718
  • 6
  • 13
8
votes
1 answer

How to save buffer in subfolder

I'm wondering whether it is possible, and if so how, to save the contents of a ConTeXt buffer to file. Well, I know that the command \savebuffer[][] exists, but it saves the file in the same location as the .tex file. I was…
9tTn9B
  • 830
  • 1
  • 6
  • 10
8
votes
1 answer

How can I define a dotted underbar in ConTeXt?

I would like to create a dotted underbar in ConTeXt with the \defineunderbar mechanism. Is that possible?
8
votes
2 answers

Set layout for the first page of Chapters in ConTeXt

When designing some documents, I hope I can set a global layout and another layout for the first page of all chapters. I have defined two layouts as follows: \setuppagenumbering [alternative=doublesided, location=] % global layout for the whole…
yanpengl
  • 2,691
  • 12
  • 24
8
votes
1 answer

any books on ConText?

I am not able to find any books on Context on amazon. While I see many books on Latex. But I read elsewhere that Context is a good system, so I wanted to learn it by reading a book about it. How does one learn it if there are no books on it? What…
Robert H
  • 179
7
votes
1 answer

Providing Arguments to a Start-Stop

Mostly for the sake of doing so, I am writing a presentation in ConTeXt. I thought that defining a start-stop would be a good way to split up slides. So I have something like: \definestartstop[Slide][after={\break}] ... \startSlide …
1
2 3
13 14