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
1answer
309 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
1answer
154 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
707 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
418 views

Context: Placing float (figure) and text-top at same height

I would like my figures to be flush with the text line beside them if they are positioned left or right and top. Currently the top edge of the figures are roughly flush with the 2nd line. This seems ...
9
votes
1answer
446 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
797 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

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
429 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
194 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
328 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
237 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
149 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
2answers
11k 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 ...
8
votes
5answers
725 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
372 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
448 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
344 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
255 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
328 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
161 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
552 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
164 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
259 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
868 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
570 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
509 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
276 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
147 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
307 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
361 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
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?
8
votes
1answer
292 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 ...
7
votes
3answers
237 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
3answers
277 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
598 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
981 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
157 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
390 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
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 ...
7
votes
2answers
106 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
242 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
565 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 ...
7
votes
2answers
162 views

Number kerning in ConTeXt math mode is different and worse than normal

Compare these two: \starttext \unit{0.01 kilogram} $ \unit{0.01 kilogram} $ \stoptext I would naively expect these to produce very similar results, but the latter case—the one in math mode—we get ...
7
votes
1answer
256 views

Center in ConTeXt

What is the equivalent of \begin{center}...\end{center} in ConTeXt? I know \raggedcenter, but that not an environment. I could define one command, but surely there is anything like that predefined.
7
votes
2answers
812 views

Improving the legibility of a pdfTeX produced PDF on Google Docs

My draft dissertation (google docs link here) shows up remarkably poorly on google docs. It was rendered on ConTeXt MkIV with the default pdf engine (pdftex, I believe.) What steps do I need to take ...
7
votes
1answer
161 views

Why is pdflatex automatically loading a ConTeXt package and crashing

If I process the following MWE with pdflatex (TeXLive 2012, Linux) \documentclass{article} \usepackage{color} \def\mymacro#1{#1} \begin{document} \pdfinfo{/Title (Some text \textbf{This macro causes ...
7
votes
1answer
400 views

CritTeXt — any sign of life?

I've been fascinated by the announcements of the upcoming features of CritTeXt in 2007. As I learned from a thread on NTG-context from early 2010 we shouldn't expect a dedicated package, but that ...
7
votes
1answer
280 views

Continuously compile/watch source files in ConTEXt?

Is there an equivalent to latexmk in Context? I want the script to watch my source files for changes and continuously recompile them. Here is how I would do it with latexmk: latexmk -bibtex -pdf ...
7
votes
1answer
522 views

How to vertically center content in ConTeXt?

I would like to vertically center my title page. I have tried code like this, but it does not work: \vfill \startalignment[center] Title \stopalignment \vfill I am using ConTeXt, so the ...
7
votes
1answer
245 views

Creating a ConTeXt/LaTeX hybrid module

I have a simple titlepage, which I want to make available for ConTeXt- as well as LaTeX users. Each should just type \usemodule[myTitlepage], or \usepackage{myTitlepage}, respectively. I want to do ...