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

Indented block in ConTeXt

I need to write pseudocode in ConTeXt. Since there is no documentation of the t-algorithmic module, and because I don't have so much to write, I decided to format the code myself. Here is what I ...
5
votes
1answer
223 views

Using ConTeXts cow font with pdfTeX

So I have really become intrigued with the Cow font of context, however I really wish I would be able to use this with latex. I found a place, where it listed the steps on what to do, but it was ...
5
votes
1answer
101 views

How to start a new chapter at right hand side in ConTeXt?

I have read the manual and try the \setuphead [chapter] [page=right] but it has no effect :-(
5
votes
2answers
282 views

How to create tables of contents limited to parts of a document in ConTeXt?

I am working with a multi-volume document within a single PDF and with no reset page or section numbers. As ConTeXt does not seem to have any \volume title, as it has for \part and \chapter, I just ...
5
votes
1answer
319 views

Sans serif fonts for section titles in ConTeXt

In LaTeX, some document classes specify sans serif fonts for chapter and section titles, and serif fonts for the main text of a document. what is the proper way to achieve this in ConTeXt? I have code ...
5
votes
1answer
207 views

How do I have all section titles, etc bold-faced, in ConTeXt?

I'm just experimenting with ConTeXt. At the moment, all my \section and \subject headings are appearing in large type. But I'd like them (and the \section numbers) all in bold-face. I've tried ...
5
votes
1answer
195 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
100 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
250 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
77 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
532 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
151 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
100 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
321 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
2answers
82 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
649 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
106 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
787 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
214 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
251 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
247 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
551 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
323 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
1answer
195 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
102 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
102 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
330 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
309 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
825 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
170 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
150 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
181 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
166 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
153 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
160 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
164 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
139 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
255 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
273 views

Is ConTeXt compatible with the memoir class?

Is ConTeXt compatible with the memoir class?
4
votes
2answers
466 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
2answers
400 views

What is the most minimal code to work with ConTeXt?

What is the most minimal code to work with ConTeXt?
4
votes
2answers
672 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
1answer
302 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
360 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
125 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
2answers
268 views

How to place a small table of contents in the footer in ConTeXt?

I would like to place a small table of contents in the footer in ConTeXt, which only shows the sections within the current chapter, but it does not appear. This is what I tried: ...
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 ...