Use the {context-mkiv} tag if ConTeXt Mark IV answers would be helpful.
11
votes
2answers
390 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 ...
10
votes
2answers
187 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 ...
9
votes
1answer
172 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 ...
9
votes
1answer
241 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
241 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
0answers
100 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
178 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.:
...
8
votes
2answers
261 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
144 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
453 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
2answers
307 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
100 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 ...
7
votes
2answers
300 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
133 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
1answer
92 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
1answer
265 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:
...
7
votes
1answer
236 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
180 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
...
7
votes
0answers
138 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 ...
6
votes
3answers
152 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
...
6
votes
3answers
156 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 ...
6
votes
2answers
319 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 ...
6
votes
2answers
184 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
254 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
1answer
810 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}? ...
6
votes
1answer
124 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
350 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
147 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
240 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 ...
5
votes
3answers
610 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
...
5
votes
3answers
154 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? ...
5
votes
2answers
243 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
194 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, ...
5
votes
2answers
120 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 ...
5
votes
2answers
113 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
100 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
119 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 ...
5
votes
2answers
126 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 ...
5
votes
1answer
352 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 ...
5
votes
1answer
123 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
157 views
ConTeXt MarkIV: Pagenumber in layer not working
I want to put pagenumber and navigation into a layer, but the counter for pagenumber is not working. Here's a minimal example:
\usemodule[graph]
\usesymbols[nav]
\setupsymbolset[navigation 1]
...
5
votes
1answer
399 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 ...
5
votes
1answer
106 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 ...
5
votes
1answer
122 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 ...
5
votes
1answer
151 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
192 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
269 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
98 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
105 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 ...
4
votes
4answers
900 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:
...
