Use the {context-mkiv} tag if ConTeXt Mark IV answers would be helpful.

learn more… | top users | synonyms

16
votes
3answers
692 views

Rounded box around placeholder text that supports line breaking

I want to draw a rounded box around a piece of text like that: The left and right borders should be half circles and line breaking should be supported. This my code so far: \setuppapersize[A7] ...
13
votes
1answer
165 views

Which primitives does ConTeXt rename/move?

TeX's primitives can be renamed by macro formats/packages: this allows new/altered features or behaviours. Usually this is done such that the originals are still available ('renamed'): certainly ...
13
votes
1answer
293 views

Devanagari/Indic in LuaTeX

As I gather from the mailing lists, LuaTeX is currently unable to render devanagari properly because it doesn't understand the complex ligature rules involved. This is my experience with test ...
13
votes
1answer
237 views

How to leave a blank space at the top of each page only for chapter and section titles in ConTeXt?

I have a document that looks like this: __________________ __________________ | | | | Chapter Title | Section ....... | | | ....... ....... | ...
11
votes
2answers
662 views

Status of TiKz with ConTeXt MkIV

Whats the recent status of TiKz support in ConTeXt MkIV? I'm asking because in pgfmanual 2.10 on page 25 it says: Note that pgf/TikZ is not supported by recent ConTEXt versions (like mark IV, the ...
11
votes
1answer
323 views

(ConTeXt MkIV) Text in PiechartMP

So I need to include some pie charts in my document. As I'm using Metapost for all graphics I tried using the PiechartMP Metapost package. But for some strange reason no text shows up, just a very ...
11
votes
1answer
185 views

standardmakeup layer in ConTeXt

Need to place a PDF file as a watermark behind the title page and part break pages. These have been laid out using \standardmakeup. Have created the layer and can place it on a normal text page but ...
10
votes
2answers
272 views

How to put signature number in footer (derived from page number)?

To make my book easier to bind I'd like to automatically put the signature number with small type in the footer of the first page of each octavo signature (except the first one which is given since it ...
10
votes
2answers
299 views

How to let text flow around irregular-shaped graphics in ConTeXt?

I have some illustrations which I need to scan and place within a document. The illustrations come in various shapes, with no straight edges, and are bound by lots empty white space, e.g.: ...
10
votes
1answer
308 views

Accessing font ornaments from ConTeXt

I'm having difficulty accessing font ornaments from ConTeXt. I'm using mkiv. I have a font and I know it has fancy ornaments in it because I see them in the spec sheet. I don't understand what to do ...
10
votes
1answer
1k views

Are \def and \define the same in ConTeXt?

Is there any difference between defining a variable using \def and using \define, when used without a number inside square brackets, e.g. \def\somecommand{\percent} and \define\somecommand{\percent}? ...
10
votes
1answer
318 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
176 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
340 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
151 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
377 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
1answer
169 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
384 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
598 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
535 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
282 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
2answers
378 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
310 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
251 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
1k views

Font switch in ConTeXt mkiv

I am struggling to switch the fonts in ConTeXt accordingly and feel that I am missing something basic. I try to mimic \RequirePackage{fontspec} % Use Neo Euler as math font ...
7
votes
3answers
316 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
668 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
413 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
2answers
168 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
3answers
98 views

How to get the current directory name in ConTeXt?

Assume the file, source.tex is placed in /home/user/Birds/ and the user types context source.tex to compile the file. Is there a way for ConTeXt to retrieve the name of the folder that the file is ...
7
votes
1answer
571 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
274 views

Ligatures in (Graphite) TrueType fonts

When using ConTeXt MkIV (i.e. with the LuaTeX engine), I’ve noticed that ligatures don’t work properly for some TrueType fonts, even though they do work in LuaLaTeX or even LibreOffice. As far as I ...
7
votes
2answers
350 views

How to set output directory in context command?

When using lualatex or pdflatex commands, there is an option to set the destination/processing folder as lualatex -output-directory=/destination/folder file.tex I was unable to find a similar ...
7
votes
1answer
337 views

How to span the content across two pages in ConTeXt?

Most of the pages in my document look like this, a layout common in books: ___________________________ | | | | Title | ........... | | | ........... | | ...
7
votes
1answer
247 views

Floats that span the text width and the margin

What is the correct way of placing floats that span the text width and the margin? If the width of the float content is increased, ConTeXt does not reserve space in the margin which leads to ...
7
votes
1answer
235 views

How to prevent tables from being wider than the text width in ConTeXt?

I have some tables like this: \starttabulate[|l|l|] \HL \NC Title 1 \NC Title 2 \NC\NR \HL \NC This is a sentence. \NC This is another sentence. \NC\NR \HL \stoptabulate ...
6
votes
3answers
183 views

How to set two or more paragraphs to use the same amount of vertical space?

Given several paragraphs in ConTeXt or plain TeX, how can I ensure that all paragraphs use the same amount of vertical space, by adding white space to the end, as the longest paragraph in the set? ...
6
votes
4answers
4k views

How to sort the order of pages so that they can be printed in a folded book?

I am using ConTeXt to print a book. Each page is A5, but the print store can only print on A4 paper, so they print 2 pages on each side of the A4 paper. I used this code to specify the layout: ...
6
votes
3answers
294 views

How to define acronyms in ConTeXt?

The acronym packages allows one to easily create and display acronyms, with a simple syntax, like \ac{usb}. The first time this is called, is will say “Universal Serial Bus (USB)”, but after that, ...
6
votes
2answers
337 views

Is it possible to have thin lines or crop marks to help cut the pages with \setuparranging?

I have something like this: \setuppagenumbering[state=stop] \setuppapersize[A5,landscape][A4] \setuplayout[topspace=1cm,backspace=1cm, header=0mm,footer=0mm, width=middle,height=middle] ...
6
votes
1answer
410 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
185 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
2answers
165 views

Eliminate topspace and bottomspace in ConTeXt

Background Looking to put the page number flush to the bottom of the page using ConTeXt. The key lines in the Minimum Working Example (MWE) below are: \setuplayout[ topspace=\zeropoint, ...
6
votes
2answers
293 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
159 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
110 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
200 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
2answers
561 views

How to create form letters from spreadsheet data in ConTeXt?

In LaTeX, one can use datatool to build simple form letters. As an example, the data is stored in a spreadsheet or CSV file, like this: Name,Amount,Date "Mr. White","$300","Dec. 2, 1911" "Mr. ...
6
votes
1answer
809 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
177 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 ...