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

learn more… | top users | synonyms

3
votes
1answer
258 views

How to obtain the current page number in ConTeXt?

I want to obtain the current page number, for use in Lua conditionals, e.g.: \startlua if 10 <= \pagenumber < 20 then context("The pages are between 10 and 20") end \stoplua ...
3
votes
2answers
299 views

How to prevent words from running off the edge in ConTeXt?

I have a document containing columns 25 characters wide. I have set the language to US English, and some hyphenation appears, however, I have observed that in many places, scientific terms are not ...
4
votes
1answer
652 views

Why are all Heiti fonts appearing below the baseline in ConTeXt?

When using Chinese, heiti (黑体) fonts are the equivalent of sans serif. They generally have simple lines. I want to use a heiti font for all of the titles and description labels in my document, ...
2
votes
1answer
188 views

How to give different margin sizes for verso and recto pages in ConTeXt?

I am creating a simple page layout for a book, which should have 1 cm margins along the top, bottom, and edge, but leave 3 cm in the middle margin, where the pages will be glued together. ...
1
vote
1answer
154 views

How to display different text for a section's entry in the table of contents in ConTeXt?

In LaTeX, one can display different text in the table of contents, than what appears in the document, for part, chapter, and section titles using this: \part[This text will appear in the table of ...
1
vote
1answer
229 views

How to allow line breaks before the numbers in paragraph enumerations in ConTeXt?

I have some enumerated items, in paragraph form, like this: \setuppapersize[A5] \showgrid \setupitemize[text, r] \starttext \startcolumns[n=2] \startitemize \item This is a ...
4
votes
2answers
267 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
236 views

How to adjust the position of entries in the table of contents in ConTeXt?

I have a table of contents defined like this: \setuphead[part][number=no] \setuphead[chapter][number=no] \setuphead[section][number=no] \setuplist[part][alternative=a, margin=0em] ...
6
votes
1answer
157 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 ...
2
votes
1answer
74 views

Why is a blank line added before a description environment when placed in a footnote in ConTeXt?

I would like to place a description environment inside a footnote, e.g.: \definedescription[descr][headstyle=normal, style=normal, width=3em] \starttext This is some ...
2
votes
1answer
684 views

How to create a PDF with two A5 pages placed on A4-sized paper in ConTeXt?

I am trying to create a PDF where the text is placed on pages of A5, but two A5 sheets are placed on one A4 sheet which is in landscape mode, e.g.: _______________ | | | | | ...
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? ...
4
votes
1answer
308 views

Trouble typesetting pgfplots with context (mkiv)

I'm trying to typeset the minimal pgfplots example from the Context Wiki but with no success. Context-Wiki Example \setupcolors[state=start] \usemodule[tikz] \usemodule[pgfplots] \starttext ...
1
vote
2answers
176 views

Why is there an extra space when I create a reference location in a document in ConTeXt?

I am trying to create a simple cross-reference from one page to another, e.g., in part of the document, it says, "see bears, p. 3." From the ConTeXt manual, p. 170, I was able to determine that a ...
5
votes
1answer
143 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
329 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 ...
6
votes
2answers
344 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] ...
4
votes
1answer
147 views

autopunctuation not working properly

What am I doing wrong? According to my understanding, these two formulae should look different (the second one should have a thin space): \setupmathematics[autopunctuation=yes] \starttext $(2,5)$ ...
10
votes
1answer
321 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 ...
8
votes
1answer
171 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? ...
1
vote
1answer
149 views

mtxrun opens PDF reader multiple times (in some invalid way)

This seems like a problem that should be well known and easy to fix, but I can't find any information about it. I decided to look in to ConTeXt, and I've hit a couple of stumbling blocks (but one is ...
8
votes
2answers
384 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 ...
7
votes
2answers
416 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, ...
8
votes
1answer
285 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: ...