ConTeXt is a TeX macro package like LaTeX and eplain. It provides a consistent, key-value driven user interface, supports all TeX engines, is tightly integrated with LuaTeX & Metapost, and supports grid-typesetting, PDF/A, PDF/X, XML/XHTML & ePub export.

learn more… | top users | synonyms

2
votes
1answer
179 views

Stretch image width within a two-column layout in ConTeXt

Background Trying to place an image within two-column text. Problem The image renders as follows, where the vertical bar is the column separator: Code The following code produces the problem ...
1
vote
1answer
213 views

ConTeXt: Is there a package or functionality similar to the LaTeX mwe package?

I would like to post questions here concerning ConTeXt and graphics. However, I cannot find a minimum working example package for ConTeXt like Martin Scharrer's mwe package for LaTeX. Nothing alike ...
2
votes
1answer
241 views

How to invert direction of brackets (for a right to left text) in ConTeXt?

The Unicode Bidirectional algorithm mandates that the glyph for the character "left parenthesis" (and many others) be inverted when displaying text in RTL direction. However I am trying to typeset in ...
4
votes
1answer
128 views

ConTeXt: Wrong mathmatrix spacing between rows in startalign-environment

When using a mathmatrix (e.g. for vectors) in between \startalign and \stopalign, the spacing between rows becomes too large. I'm running Mark IV and the problem exists on live.contextgarden.net as ...
5
votes
1answer
811 views

Remove the space above/below itemizes and descriptions

In the document below an itemize is nested in a description and I want to have no vertical space between the entries. I removed the space above and below of itemizes and descriptions using ...
11
votes
1answer
527 views

Two-column layout with thick vertical rule in ConTeXt

Background I would like to add a thick rule centered between two columns. Example Code A minimum working example that illustrates the issue: \setupcolors[state=start] ...
5
votes
1answer
278 views

Vertically align \framed with itemized list using ConTeXt

Problem The numbers in the following itemized list are not aligned with the text: Code It is possible to adjust the vertical alignment using the offset command: % Itemized bullet list ...
5
votes
1answer
220 views

Change list bullet style independently from each other in ConTeXt

Background I would like to vary the style of multiple itemized lists on the same page, independently from one another. Code A short example: \setuppapersize[A5] \setupcolors[state=start] % ...
2
votes
1answer
70 views

Conversion of Sectioning Numbers in ConTeXt

I would like to have the following typesetting in my ConTeXt document, but I don't master its conversion mechanism to yield it. First part, Second part, Third part... Chapter 1, Chapter 2, Chapter ...
5
votes
1answer
79 views

Apply columns to sections without explicitly bracketing each section

Background Creating a document that can have zero-, two-, or three-column layouts, depending on user preferences. I would like to keep the content clean of \columnsets by redefining only the sections ...
5
votes
1answer
709 views

Define colour transparency in relation to existing colour

Background Using ConTeXt to develop a nice theme where users can change the colour scheme, but still get the same "feeling" for the output, primary, secondary, and tertiary colours are defined. For ...
1
vote
1answer
91 views

Substrings in ConTeXt

Problem Trying to get the first letter of a word for a chapter heading. The chapter style is being applied as follows: \setuphead[chapter][ command=\StyleChapter, % Hide the header's ...
6
votes
1answer
380 views

Set margin background colour for all chapter pages

Problem The \setupbackgrounds macro has the ability to change the background colour of the margins, from the top of the page to the bottom: \setupbackgrounds[footer,header,text][rightmargin][ ...
3
votes
1answer
250 views

How to obtain formatted page number in ConTeXt?

Problem The \pagenumber macro does not reflect the conversion attribute value within the context of front matter vs. body matter. The front matter uses Roman numerals, the body matter uses regular ...
6
votes
2answers
184 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, ...
4
votes
1answer
322 views

ConTeXt: vertical spacing

I'm a bit confused about how to specify vertical whitespace. The following document works: \setupwhitespace[line] \setuphead[subsection] [after={\blank[2*line]}] \starttext \subsection{Title} ...
7
votes
2answers
121 views

How to compare the beginning of an argument

I need to write a simple function in tex (ConTeXt more precisely, but I suspect that does not matter here), that does one thing when the first argument #1 begins with a particular string, and does ...
3
votes
1answer
97 views

Alignment issues with lists in a table in ConTeXt

This issue has been answered many times for LaTeX, but I couldn't find any explanation for ConTeXt. Here is a sample that shows the alignment problem : \starttable[|cB|p(4cm)|p(4cm)|] ...
3
votes
1answer
198 views

Sort bibliography entries in alphabetical order by the entries' “short” value

How can the bibliography list entries be sorted in alphabetical order using the s ("short") field of the publication entries in the example below? I don't want to use a BibTeX file, but the ...
5
votes
1answer
200 views

How to change the font formatting in the text and numbers of footnotes in ConTeXt?

I have a document with two different types of footnotes, \noteone and \notetwo, defined with this: \definenote[noteone][footnote] \definenote[notetwo][footnote] For these two footnotes, I need to ...
5
votes
1answer
199 views

Indented block in ConTeXt

I need to write pseudocode in ConTeXt. Since there is no documentation of the t-algorithmic module, and because I don't have so much to write, I decided to format the code myself. Here is what I ...
16
votes
3answers
774 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] ...
3
votes
1answer
121 views

How to set section numbers to use whole numbers, rather than decimals, in ConTeXt? [duplicate]

I have a document like this: \setuphead[part][placehead=yes] \definestructureresetset[default][1, 0, 1, 0][1] \setuphead[sectionresetset=default] \starttext \part{Animals} ...
10
votes
2answers
228 views

ConTeXt equivalent of \renewcommand

I can use \define to define a new command, but how do I overwrite an existing one? My use case is rewriting all {\externalfigure[cow]} to \placefigure[right]{My Caption}{\externalfigure[cow]} to ...
3
votes
1answer
274 views

List all TypeScripts in ConTeXt

A TypeScript (as opposed to a font) contains font definitions for the individual font styles (regular, sans, math, etc. and bold, italic, bolditalic, etc.). I can list all the fonts with mtxrun ...
2
votes
1answer
112 views

ConTeXt: arbitrary Unicode code point

How to print a glyph by Unicode code point? i.e. what is the ConTeXt equivalent of the following LaTeX (displaying a capital Alpha): \symbol{"0391} % hex \symbol{913} % dec \symbol{'1621} % oct
5
votes
1answer
107 views

How to place section titles in the header, but not in the document?

I need to place some \part titles within my document, but make them invisible in the text, and only appear within the table of contents and headers. With this code, the \part titles are not found ...
2
votes
1answer
116 views

How to let Lua see the contents of a variable rather than just the variable name in ConTeXt?

I have some Lua code which searches for "①" and "②" within some text and prints only the text displayed between: \startluacode userdata = userdata or {} function userdata.printbetween(str, ...
3
votes
2answers
282 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
126 views

How to display the page range of marked locations in a passage in ConTeXt?

I have a macro placed throughout my document marking key places within a long passage. These have no relation to the chapter or section titles. _____________ _____________ | | ...
3
votes
2answers
326 views

TikZ frame paragraph span across pages in ConTeXt

I tried to reproduce the following example in ConTeXt: http://www.texample.net/tikz/examples/framed-tikz/ How can I substitute the LaTeX framed package, that is make the frame span across multiple ...
7
votes
2answers
402 views

From XeLaTeX's Unicode-math to ConTeXt's typescript

I search a way to translate the following XeLaTeX's declaration (based on the unicode-math package) \setmainfont{Linux Libertine G} \setsansfont[Scale=MatchLowercase]{Liberation Sans} ...
3
votes
1answer
134 views

How to allow footnotes in frontmatter content in ConTeXt?

I have a document structured like this: \starttext \startfrontmatter \startstandardmakeup This is a title.\footnote{This is a footnote.} \stopstandardmakeup ...
4
votes
1answer
147 views

How to keep section titles together with the content in ConTeXt?

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this: ____________ ____________ | | ...
4
votes
1answer
143 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 ...
4
votes
2answers
209 views

How to display the chapter number in the headers in ConTeXt?

I am using serupheadertexts to define the headers in my document: \setuphead[chapter] [number=yes] \setupheadertexts[{\getmarking[chapter]}][][][] I want to access the chapter ...
3
votes
1answer
144 views

How to place multiple lines of text in the headers in ConTeXt?

I am using this to place headers within my document: \setupheadertexts[{Birds of South America \getmarking[chapter]}][][][] I tried to place the title on a different line, using \\, \crlf, \vskip, ...
1
vote
1answer
96 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 ...
3
votes
1answer
198 views

\lettrine causes strange line breaks

Since I updated to ConTeXt 2012 and mkIV, each time I want to write a dropped capital I got a strange result (I mean, that extra line break) with the first line of the paragraph the dropped capital is ...
4
votes
1answer
135 views

Bad layout with both lettrine module and builtin initals in two column setup in ConTeXt

I am seeing broken positioning of letters produced by the lettrine module. Here is my MVE: \setuppapersize[A4][A4] \usemodule[lettrine] \definehead[recipe][section] \setuphead[recipe][ ...
9
votes
1answer
188 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 ...
1
vote
1answer
110 views

How to set the line width of vector graphics in ConTeXt?

I have several vector graphics in PDF format that I want to place in my ConTeXt document. I added them with \externalfigure[graphic.pdf], some scaled to different sizes. All of the lines in these ...
2
votes
1answer
206 views

How to vertically center text on the centerline of short lower-case letters in ConTeXt?

I have a title in my document like this: Birds of South America “Birds”, “of”, and “South America” are each in different fonts and sizes, like this: {\ssc Birds} {\cga of} {\ssd South America} ...
4
votes
1answer
177 views

How to use a custom symbol for enumerations in ConTeXt?

I need to make an itemized checklist in ConTeXt. I tried all of the available built-in symbols, which gives a dot, line, star, triangle, small circle, medium circle, and large circle, but I need a ...
4
votes
1answer
313 views

How to create outline text with a solid interior in ConTeXt?

Following the instructions for \definespotcolor at the ConTeXt Garden, I created some outlined text: \defineeffect[outline][alternative=outer,rulethickness=.25pt] \starttext \starteffect[outline] ...
6
votes
1answer
217 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 ...
7
votes
1answer
736 views

Writing a letter in ConTeXt, formatting issues

I'm writing a letter to someone, using ConTeXt. I'm running into some formatting issues. The following is the code I have, and the PDF output. There are two things that I'd like to fix. ...
14
votes
1answer
260 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 ....... | | | ....... ....... | ...
6
votes
1answer
122 views

Why is this CSV form letter code incompatible with the table of contents in ConTeXt?

Using the code in the answer to How to create form letters from spreadsheet data in ConTeXt?, I am building a document from data in a CSV file. I found that some part of the code is incompatible with ...
54
votes
2answers
1k views

If LaTeX is only a macro package, why does it have its own executable?

From other answers on this site and the FAQ of the TeX User Group my understanding is that: TeX is the original typesetting program, written by Knuth Omega, eTeX, pdfTeX, XeTeX, LuaTeX are engines. ...