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
117 views

Defining the size of a graphic based on the number of rows it should span in ConTeXt

I am using ConTeXt to make a document containing many illustrations. Some will appear placed like this (the area in brackets is where the illustration will appear: This is some text. This is some ...
6
votes
1answer
498 views

How to switch fonts when the language switches in ConTeXt?

I have a mostly English-language document, with fonts defined like this: \usemodule[simplefonts] \setmainfont[MinionPro-Regular] \setsansfont[MyriadPro-Bold] Occassionally, I need to have some ...
6
votes
2answers
210 views

ConTeXt: Cannot typeset four consecutive hyphens

I'm having trouble typsetting four consecutive hyphens in a custom font. Here's a minimal example: \definesimplefont[myfonthere][myfontname] \starttext {\myfonthere ----} \stoptext This always ...
6
votes
1answer
148 views

How to avoid transliteration of Russian text in ConTeXt?

Using TexShop on Mac OS I try to compile a code: \setupbodyfont[dejavu] \enableregime[utf] \mainlanguage[russian] \starttext Немного русского текста для пробы. \stoptext But it gives me a ...
6
votes
1answer
344 views

How to use Liberation fonts in ConTeXt?

I have the following snipped of code \usemodule [simplefonts][size=12pt] \setmainfont[DejaVu Sans] \starttext Test text Тестовый текст \stoptext And this works great. ConTeXt compiles it and ...
6
votes
1answer
292 views

How to disable the header at any page in ConTeXt?

I haven't written an article since I paid my attention to ConTeXt. Now it is a chance to do it. I have tried to set the header, but failed. The structure of this article is like this: ... title ...
6
votes
2answers
339 views

Abstracting an author list

I am writing an academic paper and have no problem manually formatting an author list like \startnarrower[middle] \startalignment[middle] Author One\thanks{email_one@gmail.com}, Author ...
6
votes
1answer
177 views

How to create in-paragraph enumerations in ConTeXt?

The ConTeXt wiki article on enumerations shows many solutions for creating an enumerated list, however, I see no examples for creating an in-paragraph enumeration, e.g.: Five animals lived in the ...
6
votes
1answer
230 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
132 views

How can I effectively diff 2 versions of a book produced by ConTeXt?

I have just made significant revisions to my thesis which has been typeset with ConTeXt. The project file pulls from approximately 20-30 files spread over 8 directories producing a document of 414 ...
6
votes
1answer
119 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
372 views

any books on ConText?

I am not able to find any books on Context on amazon. While I see many books on Latex. But I read elsewhere that Context is a good system, so I wanted to learn it by reading a book about it. How ...
6
votes
1answer
998 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
393 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
844 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
393 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
453 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
316 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
333 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
262 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
383 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
297 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
194 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
239 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
201 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
211 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
711 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
246 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
141 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
570 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
407 views

How to achieve nested alignment of formulas?

I'm trying to get a nested alignment in math mode: +----------------------------------------------------------------+ | ..... & ................ | | ...
6
votes
1answer
172 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
262 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
68 views

In ConTeXt, how do you restart paragraph enumeration?

I can create paragraph enumerations, such as below, but how can I restart the numbering? \setupparagraphnumbering[state=start,distance=0pt] First paragraph, which is numbered. Second paragraph, ...
6
votes
1answer
217 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
221 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
352 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
186 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
276 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
440 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
359 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
340 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
2k 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. ...
6
votes
1answer
342 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
176 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
221 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
250 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
109 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
276 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 ...