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.

learn more… | top users | synonyms

10
votes
2answers
212 views

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 ...
10
votes
1answer
320 views

Storing and retrieving data in tuc file

I want to store some data in the .tuc file, which is being picked up in the next run. I suceeded in storing some values but I failed in retrieving them afterwards. Here is my attempt: \starttext ...
9
votes
2answers
13k views

Node below and left of another node in TikZ

I am using TikZ to make flowchart kind of diagrams. I want to get a node below and to the left of another node. Please see the following example. I want the replicate the sort of relationship between ...
9
votes
1answer
4k views

Setting unit length in TikZ?

As I understand it, the basic unit length in TikZ is 1cm, so that for example \draw (0,0) -- (1,0); draws a line 1cm in length. What I want to do is to redefine that length so that all drawings in ...
9
votes
1answer
176 views

ConTeXt problems

I am trying to typeset some recipes. I have already tried LaTeX and now I am trying the same/similar with ConTeXt. I am having huge problems with it. I have already been on this for two days and I ...
9
votes
1answer
754 views

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.
9
votes
1answer
486 views

ConTeXt: Define word space dimensions

How would you define the length of a common word space? The word space length ConTeXt uses by itself is okay on the longer end, but way too short on the most compressed end. The wiki entry for ...
9
votes
1answer
195 views

TeX Capabilities with Arbitrary Fonts

I am formatting 85,000 words of text in InDesign that include several (non-negotiable) .ttf and .otf fonts not canonical to LaTeX. I'd like to switch to a TeX-based format for the following ...
9
votes
1answer
868 views

Getting started with Chinese in ConTeXt

I am trying to setup a basic document with ConTeXt, but I am having difficulty even getting started. First, I tried the documentation at ConTeXt wiki: Chinese. I tried the sample code on that page: ...
9
votes
1answer
2k views

How to delete/undefine macros in Context?

How can one delete or undefine macros in Context? Is there a difference if i've used \def or \define to create a macro?
9
votes
1answer
3k views

Extra vertical space between aligned equations in ConTeXt?

In LaTeX, I can use \\[3mm] for example, to put extra vertical space, if I think it will improve the readability of displayed, aligned equations. And in fact I find I do this quite a bit. But what ...
9
votes
2answers
443 views

How, in ConTeXt, can I get body text to align flush to the outside?

I'm using ConTeXt Mk IV, and I'd like the text in a two-page document to line up like so: +--------+--------+ + + + + xxx + xx + + xxxx + xxx + + xx + + + ...
9
votes
1answer
81 views

List of all control sequences let to primitives in common formats

I would like to know a list of all control sequences which are let equal to primitives in common formats. For plain TeX for instance, we would get the list \endgraf % = \par \endline % = \cr \repeat ...
9
votes
1answer
198 views

Making a centrefold figure

I'm laying out a 16-page booklet that has a two-page MetaPost figure spanning the centrefold. The intention is that the centrefold is "outside" the flow of the text: the image is always on pages 8–9, ...
9
votes
1answer
342 views

Discontinuous table rules in ConTeXt

How to set up a table with discontinuous horizontal rules? As an example I used a table from another answer: My table still lacks the interrupted rules. Another thing is the rule above “Total”. ...
9
votes
1answer
272 views

PDF Colour Space and ConTeXt

Background Trying to create a PDF that includes a vectorized cover page having transparent colours. I would like the PDF to have the same appearance in Acrobat Reader, Firefox PDF Viewer, Foxit ...
9
votes
1answer
151 views

How to renumber and redisplay additional references to a previous footnote if the previous appearance was several pages prior in ConTeXt?

I am using \setnotetext[footnote][0001]{This is a footnote.} to set a footnote's text and \note[footnote][0001] to create multiple references to it. When the footnote's first appearance, and later ...
8
votes
5answers
731 views

ConTeXt / e-TeX Real Numbers?

I've been using LaTeX for about 6 years and the calc package for a long time. Therefore, not being able to use real / floating point numbers was never really a problem. Thanks, \real! I've been ...
8
votes
2answers
388 views

Which TeX should one start out with? [closed]

Ever since learning Vim, I've felt slow going in anything else. Lately I've been writing my notes and other small documents in Markdown using Vim. I've decided to to take it a step further by ...
8
votes
2answers
483 views

ConTeXt using LaTeX style files

I've just discovered ConTeXt for the first time, and it looks pretty sweet. However, it is near-useless to me if I cannot use LaTeX style files for formatting (i.e. for journal/conference papers). ...
8
votes
2answers
378 views

How to make a macro which displays different text the last time it appears within a paragraph in ConTeXt?

I have a simple macro which displays the letter “A” in the document: \define\displayletter{A} This is some text. \displayletter This is some more text. \displayletter This is other text. This is ...
8
votes
2answers
266 views

How can I get multiple subject names in the header/footer of a ConTeXt document?

I am setting up a ConTeXt document that requires a very particular style for the footers. I need the first and last \subjects followed by the page number in the right corner of the page, like so: ...
8
votes
1answer
361 views

How to fix this fancy heading in ConTeXT

I don't know if this is a duplicate or not but we can close it if it is. I have been trying to learn ConTeXt. I specially love the heading and page number formattings that I see in the documentations ...
8
votes
2answers
181 views

LuaLaTeX and MetaPost

Is there a LuaLaTeX equivalent of \startMPinclusions input mpfile; \stopMPincusions in ConTeXt? That is, if I have \documentclass{article} \usepackage{luamplib} \begin{document} ...
8
votes
1answer
574 views

References in ConTeXt

I am new to ConTeXt. I've just been playing around with it to see if I can start using for my regular work. My bibliography database is in the bibtex format. I can't seem to get the references to ...
8
votes
1answer
169 views

What is the difference between \startlua and \startluacode?

Is there any difference between \startlua and \startluacode? The commands seem to have a similar purpose, but I have found some code does compile properly if the wrong one is chosen. When is one used? ...
8
votes
1answer
415 views

What are the advantages of using ConTeXt's XML?

I have discovered quite a number of documents at the PRAGMA ADE Web page, showing how to create documents using an XML system. Much of the documents show features, such as tables, which appear, at ...
8
votes
1answer
918 views

Code highlighting in ConTeXt

What is the best way to highlight code when using ConTeXt? I am aware of support for specific languages, as described on the ConTeXt wiki, but it seems rather limited at present. I know that we could ...
8
votes
1answer
393 views

ConTeXt: Using system-installed TrueType/OpenType fonts

I'm trying to use Cambria for text and Calibri for headings in a ConTeXt document, but I don't understand what is happening at all, nothing seems to have any effect and in the end it falls back to ...
8
votes
1answer
269 views

What is the difference between \everypar and \EveryPar?

In a previous question I got recommended to use \EveryPar instead of \everypar. What is the difference between the two? Are there other commands that I should capitalize the same way in ConTeXt?
8
votes
1answer
599 views

What is the correct syntax for subfootnote?

After upgrading from ConTeXt stable to beta, any code containing subfootnote does not compile. E.g.: \definestructureconversionset [footnote] [numbers, Characters] [numbers] \setupenumerations ...
8
votes
1answer
535 views

How to add illustrations before chapter titles in ConTeXt?

I would like to add some TIFF format illustrations to my document. These have three features, though, which I do not know how to implement: These fill the entire page, ignoring margins. They appear ...
8
votes
1answer
284 views

ConTeXt mkIV and XML: how do you define a self-closing tag with no content to pass?

I am using TEI Lite, and trying to typeset with ConTeXt. TEI Lite defines <divGen type='toc' /> to signal the Table of Contents, which in ConTeXt is \completecontents Now I am trying this: ...
8
votes
1answer
177 views

MetaPost: Adjust colour value (brightness/luminosity)

Background In MetaPost, colours can be lightened or darkened by calling the transparency function. However, this allows other colours to show through, which isn't necessarily desirable all the time. ...
8
votes
1answer
363 views

MinionPro, including math, in ConTeXt

A rather simple question, which probably will have a complex answer. I'm trying to migrate to ConTeXt, since I want to have a layout not easily achieved with LaTeX (grid...). In LaTeX, MinionPro is ...
8
votes
1answer
333 views

Parallel text in ConTeXt

I need to type parallel text on facing pages (original text on right page and translation on left one) in ConTeXt. I've used ledpar in Latex but wasn't satisfied with the results (text is aligned on a ...
8
votes
2answers
378 views

Creating a table which spans verso and recto pages in ConTeXt?

I am preparing a book which contains information which is divided into three columns. The first column (A) occupies the full width of all verso pages. The second (B) and third (C) column share the ...
8
votes
1answer
315 views

What is the equivalent of Biblatex in Context?

How do I do bibliography in Context, that is more than just bibtex? In the manual there is no explanation of this. Source code doesn't tell me much either... Are there any "packages" that provide ...
8
votes
0answers
113 views

ConTeXt for non-technical person

A dear person to me has started her own small publishing company (psychology related books -- completely non-technical) and she uses Microsoft Word. It's a one woman operation and she often asks me ...
8
votes
0answers
89 views

Stop Hyphenating Across Page Breaks

How to prevent hyphenation across page breaks? Here is my minexample: \starttext \dorecurse{200}{Aprikosengeschmacksrichtung } \stoptext What I mean is a feature, which many other typographic ...
7
votes
3answers
251 views

How to place a line break between every character in ConTeXt?

I have some text appearing in a macro, like this: \printascolumn{This is some text.} How can I place a line break between each letter or printed symbol, such that it appears like this? T h i s i ...
7
votes
4answers
306 views

Vertically aligned table in plainTeX / LaTeX / Context etc

My last answer about vertically aligned table inspired me to write my first question at this site. How to create the following table in various TeX approaches: plainTeX, LaTeX, Context, eplain, OPmac ...
7
votes
3answers
317 views

ConTeXt: Too much hyphenation

I am trying to control the amount of automatic hyphenation in my document. But all the options I specify don't seem to have any effect. The following MWE shows two paragraphs with six hyphenated ...
7
votes
2answers
675 views

How to check if a value is not equal using TeX conditionals?

I have a value defined in a macro, e.g.: \mymacro{apple} I need to check if a value does not equal a string, e.g.: IF #1 NOT EQUAL TO "apple" THEN PRINT "It is not a apple, it is #1." FI I ...
7
votes
2answers
1k views

Libertine fonts not working in ConTeXt

In a previous question about vertical rhythm, I was pointed at ConTeXt, which I am now trying to use. I first took the step from LaTeX to luaLaTeX in order to get simplified font selection and the ...
7
votes
2answers
159 views

How can a macro know how many times a value has appeared and will appear?

Using ConTeXt, I have a macro which can be given a unique key value: \macro{000010} \macro{000011} \macro{000010} \macro{000010} \macro{000012} \macro{000011} I need to be able to access ...
7
votes
2answers
413 views

How to display special symbols in ConTeXt which are processed by Lua?

I have a ConTeXt document containing many special characters. I have followed the instructions at Which symbols need to be escaped in ConTeXt? to ensure they can all display properly in the document, ...
7
votes
2answers
116 views

How to compare the beginning of an argument

I need to write a simple function in tex (ConTeXt more precisely, but I suspect that does not matter here), that does one thing when the first argument #1 begins with a particular string, and does ...
7
votes
2answers
245 views

What does \s! do?

1st example: \starttypescript [\s!serif] [paratype] \definefontsynonym [ParatypeSerif-Regular] [\s!name:PTSerif-Regular] [\s!features=\s!default] \definefontsynonym [ParatypeSerif-Italic] ...
7
votes
2answers
585 views

Macro for the average width of a character

How can i made a macro similar to \averagecharwidth of ConTeX in LaTeX, that calculates the average width of a character based on the frequency of that character into my document ? that macro is show ...