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

learn more… | top users | synonyms

6
votes
2answers
377 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
885 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 ...
2
votes
0answers
135 views

How to snap the page dimensions to the grid in ConTeXt? [closed]

In ConTeXt, I am using the setting grid=yes to make all of the text in a document use grid typesetting. ConTeXt seems to automatically adjust the height of this grid based on the size of the font ...
6
votes
1answer
348 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- | ...
4
votes
1answer
687 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, ...
11
votes
2answers
758 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 ...
9
votes
1answer
364 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”. ...
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 ...
5
votes
2answers
375 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 ...
6
votes
1answer
396 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 ...
2
votes
1answer
121 views

How to make specific items only appear in recto pages in ConTeXt?

I would like for some items in my book to begin only on recto, or right-hand pages, such as, e.g.: The first page. The table of contents. The beginning of a \part. I believe such a configuration ...
4
votes
1answer
318 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 ...
4
votes
1answer
155 views

What is the proper way to format syntax within ConTeXt?

For some time, I have thought, perhaps mistakenly, that the precise placement or spacing around ConTeXt syntax was unimportant, e.g., under this assumption, all of these should produce the same ...
10
votes
1answer
2k 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}? ...
1
vote
1answer
218 views

Stack margin text in outer margin in ConTeXt Mk IV

I try to stack marginals with ConTeXt Mk-IV. In this question a possible solution was given. The solution works fine, but it turns out that the location=outer parameter does not work any more. Please ...
2
votes
1answer
210 views

How to center align entries in the table of contents in ConTeXt?

In my table of contents, part is defined like this: \setuplist[part][pagenumber=no] I would like to center align the title of the part, so it appears like this in the table of contents: ...
2
votes
1answer
567 views

How to combine characters with macron, acute, caron, and grave accents in ConTeXt?

I am using a font which does not contain all of the symbols I need. I have managed to use the information in this article about Adobe Glyph List For New Fonts, and have successfully added many ...
2
votes
1answer
152 views

What is the purpose of defining font synonyms and how are they accessed?

In ConTeXt, one can define a font synonym, as shown in this simple typescript example at the ConTeXt Wiki. In following the example given, I cannot see any way to access the individual levels. I can ...
4
votes
1answer
223 views

Stack margin text in ConTeXt

If I try the following in ConTeXt: \starttext text text\inmargin{this is a note.} text text\inmargin{Another note.} \input knuth text text\inmargin[stack=yes]{this is a note.} text ...
3
votes
1answer
115 views

Where to find a list of all system-defined counters in ConTeXt?

I learned from How to obtain the current page number in ConTeXt? that I can obtain the page number counter value using tex.count.pageno, but I have not found this mentioned in any available ...
6
votes
1answer
181 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 ...
1
vote
1answer
243 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 ...
8
votes
2answers
394 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
831 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 ...
8
votes
1answer
603 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 ...
3
votes
1answer
272 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
327 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 ...
2
votes
1answer
195 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
170 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 ...
4
votes
2answers
284 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
241 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] ...
2
votes
1answer
76 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
756 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
185 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? ...
7
votes
2answers
422 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, ...
1
vote
2answers
178 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
147 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. ...
8
votes
1answer
183 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? ...
10
votes
1answer
336 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 ...
1
vote
1answer
155 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 ...