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

6
votes
2answers
286 views

How to register a callback in ConTeXt

In ConTeXt mkiv, how do I register a callback? callback.register() does nothing (and IIRC most callbacks are frozen anyway) and somewhere I found tasks.appendaction, but this gives me an error that ...
6
votes
1answer
112 views

How can I report a bug in ConText?

I searched on wiki.contextgarden.net and www.pragma-ade.com, but could not find anything.
6
votes
1answer
381 views

Set margin background colour for all chapter pages

Problem The \setupbackgrounds macro has the ability to change the background colour of the margins, from the top of the page to the bottom: \setupbackgrounds[footer,header,text][rightmargin][ ...
6
votes
1answer
214 views

Compound/nested section numbers in ConTeXt: how to omit the top level? E.g. 1.2.1 --> 2.1

In the following MWE, titles have no displayed number, but sections (the second level) are still numbered 1.1, 1.2, etc, because the titles have an internal number. I would like the sections to ...
6
votes
1answer
873 views

Use .otf/.ttf in ConTeXt MKiV/LuaTeX

I would like to use an .otf Font for my document which I typeset in ConTeXt MKiV. Sadly I was not able to change the font. I set export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts and ran mtxrun ...
6
votes
1answer
343 views

Creating a grid which fills available text area on a page in ConTeXt?

I have some pages containing only a small paragraph at the top and a large empty area where readers can add notes or draw, e.g.: _______________ | | | This is some | | text in a pa- | ...
6
votes
1answer
761 views

CMYK ConTeXt colors in TikZ

Colors defined via the internal \definecolor macro in ConTeXt cannot be used in TikZ when the CMYK system is used. Is there a way to convert them or tick a setting so that TikZ can use them? Minimal ...
6
votes
1answer
367 views

Rotate a placetable/placefigure plus caption in ConTeXt?

I've a large table, which I want to rotate to fit onto one page. My current solution looks like: \placetable{some text} {\rotate[rotation=90]{ \starttable[...] .... \stoptable}} But ...
6
votes
1answer
416 views

Show current section or chapter in header in ConTeXt

I've found this command: \setupheadertexts[][{\getmarking[sectionnumber]\ \getmarking[section]}] to show the current section in the header. But how can I show either the current chapter or the ...
6
votes
1answer
272 views

Automatically assigning abbreviations to an index in ConTeXt

I'm using ConTeXt to provide layout for my thesis across many files comprising the project. I would like to automatically generate an index based on keywords and abbreviations with minimal hinting by ...
6
votes
2answers
317 views

ConTeXt style/environment files for setting TEI?

Is there a repository of styles for typesetting XML, specifically TEI XML markup, using ConTeXt? I've been googling now for a week or so trying to dig up as much information as possible about ...
6
votes
1answer
218 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 ...
6
votes
1answer
309 views

Line numbering in ConTeXt outside of verbatim

Basically, I would like a way to number the lines in a block of text, without resorting to verbatim mode. I have tried \definetyping[code][numbering=line,style=\tf] \startcode[step=5] Thus, I came ...
6
votes
2answers
245 views

How to embed videos in pdf with ConTeXt?

I have heard that it is possible to embed videos with ConTeXt in tex-files and in the resulting pdf-file. Hans Hagen wrote very briefly about videos in his manual, but there is no Minexample. I could ...
6
votes
2answers
182 views

Errors Mpgraph in ConTeXt

I need to put some bar charts in a ConTeXt document. I'm using mkiv from TeX Live 2011, under Gentoo GNU/Linux. I tried using Gnuplot but I found mpgraph suits better my needs. I'm using this TeX ...
6
votes
1answer
201 views

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: ...
6
votes
1answer
180 views

How to define a section title for volumes in ConTeXt?

I have a lengthy document, which must be divided into separate volumes. So that it can be compiled in one pass, the source file is organized like this: \starttext \startfrontmatter % this ...
6
votes
1answer
169 views

Simplefonts works, but definefontfamily does not?

I want to use \definefontfamily, and according to contextgarden.net, it should be included by default: As of December 2013, the functionality of the Simplefonts module has been included into the ...
6
votes
3answers
446 views

Typesetting annuity and life-insurance symbols in ConTeXt

How do I typeset annuity and life-insurance symbols, actuarial notation in ConTeXt. I see there are packages available but not for ConTeXt. Thanks
6
votes
1answer
217 views

How to span the background graphic across verso and recto pages in ConTeXt?

I want to place background images behind all of my part titles, with the image spanning across two pages, e.g.: ___________ ___________ | | | | Part 1 | | | Birds of ...
6
votes
1answer
122 views

Why is this CSV form letter code incompatible with the table of contents in ConTeXt?

Using the code in the answer to How to create form letters from spreadsheet data in ConTeXt?, I am building a document from data in a CSV file. I found that some part of the code is incompatible with ...
6
votes
1answer
508 views

Type phase symbol in ConTeXt, like LaTeX steinmetz package

I am trying to create an electrical phase symbol in ConTeXt like that produced by the \phase{} command from LaTeX's steinmetz package. Here is what the symbol looks like: Is there something out ...
6
votes
1answer
394 views

How to achieve nested alignment of formulas?

I'm trying to get a nested alignment in math mode: +----------------------------------------------------------------+ | ..... & ................ | | ...
6
votes
1answer
164 views

Problem with old ConTeXt separated list example

I have been trying to get the following small example from ConTeXt garden to work without success. \starttext \usemodule[database] \def\SendMe#1#2#3#4{\framed [align={flushleft,lohi}, width=4cm, ...
6
votes
1answer
259 views

Is there a ConTeXt version of the LaTeX lefteqn?

What I want is to be able to set up equations like this: a very long first expression = the second line = and a third line = and maybe even a fourth In LaTeX, this would be ...
6
votes
1answer
123 views

Write unit tests for Lua in ConTeXt

I would like to write some unit tests for Lua code being used by ConTeXt, and would like to know if anyone else has done this and what may be require in setting up the framework. The Lua code in ...
6
votes
1answer
184 views

MetaPost: Non-uniform periodic tessellations

Overview Looking to create backgrounds that have regular polygons aligned to a grid. Problem The space between the polygons varies, even though the radius for the polygons has been calculated in ...
6
votes
1answer
309 views

ConTeXt: Enumeration, Comments cause undefined control sequence startformula error

I'm a LaTeX user working through some ConTeXt tutorials, and hit a brick wall pretty early. It makes me wonder if something is wrong with my setup, or if I'm not understanding something pretty ...
6
votes
1answer
171 views

ConTeXt: Styling pagenumbers in registers

I'm using some description paragraphs as definitions for some concepts. I want to add them to my register and typeset their pagenumbers in bold numbers (to recognize where is the definition). The ...
6
votes
1answer
240 views

How to set a image background and tile on page in ConTeXt?

That's it. I want to use a image pattern, let's say this image. But I can't figure how to do this on ConTeXt, 'cause neither \setupbackgrounds or \setupframed have an option to tile backgrounds. I ...
6
votes
1answer
395 views

Align multi-line section head on the grid

What I want to achieve Align the first line of a multi-line section head on the grid and consecutive lines according to the baseline distance given in the font definition. The baseline distance of ...
6
votes
2answers
334 views

Paragraph-style for footnotes in ConTeXt

Is there a way to have paragraph-style footnotes in ConTeXt, similar to what is provided by the footmisc package? E.g.: This is some text^1. This is some other^2 text. This is some more text. ...
6
votes
1answer
288 views

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 ...
6
votes
1answer
291 views

Libertine's discretionary and historical ligatures with ConTeXt and XeTeX

I would like activate Libertine's discretionary and historical ligatures with ConTeXt and XeTeX compilation. Currently, I'm using this: \definetypeface[Libertine][rm][Xserif][Linux Libertine O] ...
6
votes
1answer
160 views

Why is a page break added at the end of a column set in ConTeXt?

I have a document containing some 1-column and 2-column passages, mixed, e.g.: This sentence has no column- s. This part of are balanced the document such that t- has two col- he lines are ...
6
votes
1answer
146 views

How to place figure/table without caption in ConTeXt?

When I am trying to \placefigure[here]{none}{\externalfigure.... I am getting figure with caption "none" instead of figure without any caption. How to \placefigure without a caption in ...
6
votes
1answer
225 views

What is the state of support for (Unicode) Indic scripts in Context?

I have used XeTeX for typesetting a book using Unicode Malayalam. It is working perfectly and the production is fine. Reading about ConteXt, I learn it is more suitable and flexible for book ...
6
votes
1answer
107 views

Preventing page break in register between reference and page number (ConTeXt)

Problem: The page number of an reference in the register is set to th next page - pake breaking between the reference and the page number. I do not know how to produce a smaller Example: ...
6
votes
1answer
1k views

Exporting graphics wth text labels from OpenOffice.org Draw to ConTeXt

I often create graphics in OpenOffice.org Draw, containing vector graphics, text labels, with photos occasionally mixed in. OpenOffice.org supplies a variety of export formats. Is there any way to ...
6
votes
1answer
207 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 ...
6
votes
1answer
226 views

ConTeXt + XeTeX (TeXLive 2012) does not work for Indic scripts like Malayalam

This is a follow up question to What is the state of support for (Unicode) Indic scripts in Context? I have been trying to get texexec/mkii to work with XeTeX engine, but the resulting rendering is ...
6
votes
1answer
210 views

No gridding for a single paragraph (ConTeXt)?

Is there a possibility to deactive grid=yes in the text for a single paragraph only? It should be something like \nogrid{ paragraph.... }. There is \placeongrid{} - but this does not allow ...
5
votes
2answers
176 views

Printing only the text that appears between two symbols

I have a macro which contains some text: \textmacro{This is some text.} Normally, when compiled, it should just print text, like this: This is some text. Sometimes, the text contains “①”and “②”, ...
5
votes
2answers
373 views

How to retrieve a value which is set later on in the document?

According to What is the recommended way to assign a value to a variable and retrieve it for later use?, in ConTeXt, one can use \setvalue{name}{value} to set a value and \getvalue{name}, to retrieve ...
5
votes
2answers
791 views

How to switch page numbers to/from Roman numerals

I am trying to have the page numbering of the front matter in lower case Roman and the rest in Arabic numbers. I also don't want the number on the title page (though it should be counted). According ...
5
votes
1answer
198 views

Metapost - Boundary box

I want to make a series of images with Metapost and Context. I want the height and width of the images to be fixed ( like a frame ) and center the picture drawn with Metapost inside that frame. So, is ...
5
votes
1answer
789 views

Fatal format file error; stymied. fmtutil: infinite recursion

I'm using texlive / ConTeXt / Xetex, but I don't know which of those might be relevant to the problem. The summary is that when I run TeX, I get a "Fatal format file error; I'm stymied" message. ...
5
votes
2answers
147 views

How to add whitespace after every item in a list in ConTeXt?

I have a document containing some questions. I need to leave readers space to write a few sentences as an answer. I am using this code: \startitemize[r] \item Where do most bears live? \item ...
5
votes
1answer
146 views

How to make part titles visible in ConTeXt?

ConTeXt has \part, \chapter, and \section titles, however, it seems that \part is disabled by default. If I used \part in my document, it is visible in the table of contents, but not in the document. ...
5
votes
1answer
168 views

How to replace specific words with an underscore equal in length to the original word replaced in ConTeXt?

My problem is identical to Phantom and line break, however, I am using ConTeXt. I am creating a cloze test, e.g.: Frogs have four ____ and two eyes. The original text in the source appears like ...