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

5
votes
1answer
183 views

MetaPost: Randomly variably thick curves

Overview Looking to emulate the following sinusoidal wave having random variations in both its filled and outline thickness: The wave has two parts: a variably thick filling and a variably thick ...
5
votes
1answer
96 views

ConTeXt: Randomly lighten or darken a colour within a threshold

Overview Looking to randomize the colours of squares of a checkerboard so that some are slightly lighter and some are slightly darker, relative to another colour. Problem The following sets a base ...
5
votes
1answer
237 views

Vertically align \framed with itemized list using ConTeXt

Problem The numbers in the following itemized list are not aligned with the text: Code It is possible to adjust the vertical alignment using the offset command: % Itemized bullet list ...
5
votes
1answer
75 views

Apply columns to sections without explicitly bracketing each section

Background Creating a document that can have zero-, two-, or three-column layouts, depending on user preferences. I would like to keep the content clean of \columnsets by redefining only the sections ...
5
votes
1answer
453 views

Define colour transparency in relation to existing colour

Background Using ConTeXt to develop a nice theme where users can change the colour scheme, but still get the same "feeling" for the output, primary, secondary, and tertiary colours are defined. For ...
5
votes
1answer
144 views

Set the width of every columns of a table in ConTeXt

Sometimes, I need such a table whose column widths should be equal with each other. Here is an example: Name Email John john1989@gmail.com Bill bill1990@outlook.com Tim ...
5
votes
1answer
98 views

Why does ConTeXt sometimes ignore surrounding font properties?

I am working on a document which contains a wide range of font styles and sizes. I am using commands such as \ss to change to sans serif, \tfa to set the font size to size "a", and \bf to make text ...
5
votes
1answer
311 views

Bibliography in ConTeXt

I have two problems with bibliography using ConTeXt ver: 2013.01.10 01:04 MKIV. I would like to get \citet like behaviour Author name [1]. However, presently the MWE produces only the numbers. ...
5
votes
1answer
588 views

Remove the space above/below itemizes and descriptions

In the document below an itemize is nested in a description and I want to have no vertical space between the entries. I removed the space above and below of itemizes and descriptions using ...
5
votes
1answer
105 views

Context - Error creating boxes in loop

The following code creates an array of boxes to represent an array. \startMPinclusions input boxes ; \stopMPinclusions \starttext \startluacode function createGraphic(k,c,indH) local i=1 ...
5
votes
1answer
777 views

Custom table of contents style in ConTeXt

I want to change the style of the table of contents: Chapter entries shouldn't have a dotted line. (see below) Chapters without a number should have no left spacing. (see below) The dotted line ...
5
votes
1answer
213 views

How to make written text within math mode appear using the font of the surrounding text in ConTeXt?

In some parts of my document, I have text inside of math mode, to position text, e.g.: \math{ \overset{ \text{This text is above.} } { \text{This text is below.} } } ...
5
votes
1answer
248 views

Text in outer margin of multiple columns

I want to put some text in the outer margin (by which I mean on the left side of the page of even pages and on the right side of odd pages) of the page. My naive approach of using \inoutermargin{Text} ...
5
votes
1answer
240 views

formatting natural table header with conTeXt

I am struggling with my table formatting a bit and hope there is someone around here that can give me some help. This is the table I have at the moment. \bTABLE \startTABLEhead \bTR \bTD ...
5
votes
1answer
544 views

AMSsymb in ConTeXt

Where can I find some of the functionality, namely the symbols, from the LaTeX package AMSSymb in ConTeXt? For example, how do I place a \blacksquare? Is there an equivalent in ConTeXt? I didn't find ...
5
votes
1answer
311 views

ConTeXt TABLEs width

I am using the "natural tables" in ConTeXt: \bTABLE \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \eTABLE How can I setup the table that the whole table uses a certain width? ...
5
votes
2answers
75 views

ConTeXt TABLEs, how to automatically fit table size with text with \setupTABLE

When I type something like \bTABLE \bTR\bTD abc\eTD\bTD abcdefg\eTD\eTR \bTR\bTD 123456789\eTD\bTD 1234\eTD\eTR \eTABLE in ConTeXt, it automatically sets the column widths to fit the text contained ...
5
votes
1answer
188 views

Change list bullet style independently from each other in ConTeXt

Background I would like to vary the style of multiple itemized lists on the same page, independently from one another. Code A short example: \setuppapersize[A5] \setupcolors[state=start] % ...
5
votes
1answer
100 views

How to place section titles in the header, but not in the document?

I need to place some \part titles within my document, but make them invisible in the text, and only appear within the table of contents and headers. With this code, the \part titles are not found ...
5
votes
1answer
100 views

Link to start of current section, automatically, in ConTeXt?

I want page headers to link to the start of the current \subject, and – because I am automatically processing an XML document – I want to do this without manually entering the subject label. (This may ...
5
votes
1answer
118 views

Custom list labels in ConTeXt

I have just started learning ConTeXt and I have to say that I am pretty amazed by how intuitive it is to use. But I can't find a way yet to achieve automatically a list with the following labels. C.1 ...
5
votes
1answer
99 views

How does one vertically center the heading for a 'part' in ConTeXt?

My best effort thus far has been to simply add a big blank as a before perameter: \setuphead[part][placehead=yes, alternative=middle,before={\blank[12*big,force]}, header=empty] Obviously, this ...
5
votes
1answer
326 views

What is the proper way to prevent text from splitting across columns and pages?

I have some description environments which I do not wish to have split across columns or pages. Is there some command which can be placed around an item to ensure that it will never be split across ...
5
votes
1answer
300 views

Conditional column break in ConTeXt

Background Trying to determine whether a column break must be inserted on a two-column page. There are multiple sections on the page. Before the last section on the page, I want to insert a column ...
5
votes
1answer
760 views

How do I do hanging indents in Context?

How do I do hanging indents in Context? I've been looking at the few examples that I've found, for example at http://wiki.contextgarden.net/MLA_style, but couldn't get anything to work as I want it. ...
5
votes
1answer
161 views

\placeongrid and \moveongrid not working in ConTeXt

I am trying to use the grid features in ConTeXt, but some of the commands are somehow not recognized by the compiler. Whenever I try to use the commands \placeongrid or \moveongrid, the compiler ...
5
votes
1answer
147 views

How to create multiple references to a single footnote in ConTeXt?

I have some footnotes in a ConTeXt document, which must be referenced too multiple times, i.e., the superscript mark 1 appears in several parts of the document, but the footnote is only displayed ...
5
votes
1answer
179 views

Slashed characters in ConTeXt?

In LaTeX there is a slashed package which will put a nicely centered slash through an arbitrary symbol - the \not command provides an off-center slash on most symbols. How can I do this in ConTeXt? ...
5
votes
1answer
146 views

Learning Plain TeX via ConTeXt's LuaTeX-plain Format

Succinctly as I can: Want to learn Plain TeX (but with modern conveniences such as UTF-8, mplib, TiKz, etc.) Have much respect for the ConTeXt group of people. Liked the idea, when I stumbled upon ...
5
votes
1answer
152 views

Multiple Documents with shared TOC and Indexes

I've recently started a personal project for creating and managing a knowledge base, but with the individual pages written in ConTeXt instead of markup, markdown, or any of the other currently-popular ...
5
votes
1answer
157 views

Line spacing in Arabic in ConTeXt - how to deactivate gridsetting in an environment

I realize Arabic in ConTeXt with the following environment (to be able to switch between German and Arabic). \startenvironment arab-besser-sty \definefont[Sheh][name:Scheherazade*arabic at 15pt] % or ...
5
votes
0answers
156 views

How to use Multiple-Master-Font-instances for HZ/microtype instead of horizontal scaling? (ConTeXt) [closed]

Question I would like to use a Multiple Master font with a width axis for the HZ-program (=Herman Zapf Programm, equivalent to the microtype-package of LaTeX) In standard configuration, ConTeXt (and ...
5
votes
0answers
133 views

Can you use LaTeX packages in ConTeXt/emulate ConTeXt in LaTeX?

Is it possible to use LaTeX packages in ConTeXt? I want to know because I'd like to use ConTeXt's greater formatting faciliies but I also want to use several LaTeX packages (crossword and xskak in ...
5
votes
0answers
160 views

Placing text in the margin next to a figure using ConTeXt [closed]

What is a good way to place a short paragraph in the margin next to a figure in ConTeXt? I've been trying the following code, but it places the \inmargin text at the base of the figure which only ...
4
votes
2answers
250 views

ConTeXt doesn't implement some Knuth TeX primitives?

I try to use new TeX format ConTeXt, but I find that some TeX primitives don't act any more. How sad I am when I find that. An simple example is that in plain TeX, we can set the spaces between ...
4
votes
1answer
269 views

Is ConTeXt compatible with the memoir class?

Is ConTeXt compatible with the memoir class?
4
votes
2answers
396 views

What is the most minimal code to work with ConTeXt?

What is the most minimal code to work with ConTeXt?
4
votes
2answers
646 views

Italic in ConTeXt

What is the equivalent of the LaTeX-code \textit{} in ConTeX? It sets the text in the brackets italic. There is \it but I am searching for something like \startit...\stopit.
4
votes
2answers
447 views

Using macro variables with Lua in ConTeXt

I need to make some macros in ConTeXt. I have tried to use Lua code, but I do not understand how to mix ConTeXt source and Lua source together. Here is an example: \define[3]\textmacro{ \startlua ...
4
votes
1answer
290 views

Should spaces be placed after every special character input command in ConTeXT?

I am using several special character commands, such as those described at Which symbols need to be escaped in ConTeXt?. I noticed that some, such as \textdollar will not work if they are immediately ...
4
votes
2answers
353 views

Is ConTeXt using TeX or rewriting it?

Just out of curiosity, is ConTeXt using the TeX algorithm in it's entirety, or are some components rewritten? If it's the latter: Could all of TeX be rewritten in Lua, or are there good reasons ...
4
votes
2answers
124 views

How to search the contents of all of ConTeXt's available documentation?

As seen in Where can I find good ConTeXt documentation and Updated documentation of ConTeXt, there are many resources for learning how to use ConTeXt, but most are in the form of articles and books in ...
4
votes
1answer
110 views

How to place all chapter titles on verso pages in ConTeXt?

I need to set all of the chapters within a document to begin on the verso, or left-hand pages. How can I get ConTeXt to add a blank page before each chapter title if the chapter title does not appear ...
4
votes
2answers
231 views

Why are my tables running off the edge of the page in ConTeXt?

I need to make a table which fits to the \textwidth, or essentially, the width generally available to text on the page. I have created columns of 20%, 60%, and 20%, which should fit the width, ...
4
votes
2answers
446 views

\usemodule and ConTeXt

I can't seem to use modules in ConTeXt: \usemodule[lettri] \starttext \lettrine{T}{his is a test} \stoptext When I run texexec on this, I get: ! Undefined control sequence. l.4 \lettrine ...
4
votes
1answer
149 views

Change color of links created with \in, \at, etc

By default the link color of references created with \in or \at is red. How can this color be globally changed, so that all links have the same color (e.g. blue)? \setupinteraction ...
4
votes
2answers
356 views

What is the ConTeXt or plain TeX equivalent of \nolinebreak?

The command \nolinebreak[4], if placed between two characters, should prevent a line break from appearing in that location. This command does not seem to be defined in ConTeXt. Is there an equivalent ...
4
votes
1answer
69 views

Is there a default arara rule for ConTeXt?

I'm trying to make a simple Hello, World example for ConTeXt. The file itself works, but I can't manage to instruct arara to compile it with texexec. % arara: context \starttext Hello, World! ...
4
votes
1answer
399 views

How to use string.find from Lua in ConTeXt?

I am trying to make some conditionals with Lua, which check if some text is found within a string. Unfortunately, when I compile it, I get: ! LuaTeX error <main ctx instance>:4: bad argument #1 ...
4
votes
3answers
711 views

Floating a sidebar into the margin with ConTeXt

I would like to use \framedtext to create a grey sidebar that floats to the right of the text. While I've discovered framedtext, I haven't figured out how to place it such that it floats with text ...