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

learn more… | top users | synonyms

16
votes
3answers
733 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] ...
6
votes
1answer
208 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
845 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 ...
4
votes
1answer
307 views

ConTeXt: Wrapped text misbehaves at page breaks

On this site, a solution for text wrapping based on descriptions in Pandoc-generated ConTeXt documents was previously formulated. Although satisfactory for a one-page minimum working example, the then ...
5
votes
1answer
331 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 ...
4
votes
1answer
141 views

How to place text on the second page of the frontmatter in ConTeXt?

I need to put the copyright text on the second page of my ConTeXt document, on the verso page. I am using \startfrontmatter and \startstandardmakeup to create the title and authorship pages in the ...
10
votes
1answer
326 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 ...
6
votes
3answers
366 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
215 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
4answers
5k 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: ...
5
votes
1answer
336 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- | ...
13
votes
1answer
192 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 ...
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}? ...
8
votes
2answers
402 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
2answers
388 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
602 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. ...
7
votes
2answers
420 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, ...
6
votes
1answer
112 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
2answers
298 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
2answers
451 views

ConTeXt: Figure scaling to width and text wrapping for Pandoc-generated documents

Consider the following Pandoc-generated ConTeXt document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, cutspace=1.5in, height=middle, topspace=0.75in, ...
5
votes
2answers
362 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 ...
4
votes
1answer
176 views

Understanding conditional page background in ConTeXt

How does the following code work? Source: discussion on the mailing list \setuplayout [header=0cm, topspace=1.625cm, footer=0cm, width=fit, height=fit] \startMPinclusions numeric ...
4
votes
1answer
239 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] ...
3
votes
1answer
379 views

ConTeXt: How to change the background color and border of a Pandoc-generated blockquote?

Consider the following minimum working example containing a blockquote as defined in a Pandoc-generated document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, ...
3
votes
1answer
261 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 ...
1
vote
1answer
261 views

ConTeXt Standalone installation problem under Debian GNU/Linux

I am trying to install ConTexT Standalone under LMDE, a Debian GNU/Linux operating system. I followed the system-wide installation instructions step-by-step without any problem. Except for the final ...
10
votes
2answers
307 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
329 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 ...
7
votes
3answers
317 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, ...
7
votes
2answers
728 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
174 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
1answer
239 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] ...
6
votes
1answer
426 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
158 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
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
2answers
137 views

ConTeXt: Columnar section titles, floats, and images

Background Regarding floats in columns, the wiki states: By default, a title will be moved down to appear below a float, it will not be "wrapped" around a float like normal text. Problem The ...
4
votes
2answers
347 views

How can I list fonts available to LuaTeX in ConTeXt (TeX Live 2013)?

I've looked at How do I get a list of all available fonts for luaotfload?, but the answers don't work for me in TeX Live 2013, at least not without LaTeX. This is because there they rely on the file ...
4
votes
1answer
413 views

How to set the page layout dimensions in ConTeXt?

Using the instructions found in the page design chapter of the ConTeXt user manual, I have attempted to set my own page dimensions, but have not been able to understand the instructions. For e.g., ...
4
votes
1answer
213 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 ...
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)$ ...
3
votes
2answers
254 views

ConTeXt unicode fallback font

In case a font doesn't have some symbols, is there an easy way to just fall back to whatever font LuaTeX can find that supports that glyph, just for that symbol? Or is there a reasonably complete ...
3
votes
1answer
371 views

How to show the \title headings in ToC?

My document is organized as following: \title[Some title] \section[Section 1] \section[Section 2] etc. When I use \completecontents command to print a ToC, I only get the section titles (which are ...
2
votes
1answer
184 views

How to show additional contact information in t-letter head

I am working on a letter using the t-letter module and have found that only my name and address show in the head layer. Any ideas as to how I can show additional contact information as well? Here is ...
2
votes
1answer
202 views

How to place text between two columns and which breaks the rule dividing them in ConTeXt?

I have two paragraphs of instructions and I need to indicate to readers that they have a choice of one or another. I am using this code, to put the data into different columns, with a line between: ...
2
votes
1answer
462 views

How to create custom section titles with a “<title> <number>” format in ConTeXt?

I am making a book, with chapters titled "Week 1", "Week 2", "Week 3", etc., and sections titled "Activity 1", "Activity 2", "Activity 3", etc., and other sections titled "Presentation 1", ...
1
vote
1answer
122 views

ConTeXt: Change location of page numbers in table of contents

Background Looking to place the page number on the left of each section heading in the frontmatter's table of contents, similar to the following (where "Title Here" is a section title and the page ...
1
vote
0answers
417 views

Any advanced example of layout designing with ConTeXt?

I'm looking for an advanced example of layout designing with ConTeXt? I've checked reference manual and few another docs from contextgarden, but they show only simple, elementary things. I'm ...
1
vote
1answer
92 views

How to place chapter titles in the header only on the first page of each chapter in ConTeXt?

How can I place the chapter titles in the header, but only on the first page of that chapter? This is the opposite of the question, How to prevent chapter titles from appearing in the header on the ...