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

6
votes
1answer
182 views

MetaPost: Non-uniform periodic tessellations

Overview Looking to create backgrounds that have regular polygons aligned to a grid. Problem The space between the polygons varies, even though the radius for the polygons has been calculated in ...
8
votes
2answers
219 views

MetaPost: Adjust colour value (brightness/luminosity)

Background In MetaPost, colours can be lightened or darkened by calling the transparency function. However, this allows other colours to show through, which isn't necessarily desirable all the time. ...
5
votes
1answer
105 views

ConTeXt: Randomly lighten or darken a colour within a threshold

Overview Looking to randomize the colours of squares of a checkerboard so that some are slightly lighter and some are slightly darker, relative to another colour. Problem The following sets a base ...
5
votes
1answer
319 views

Conditional column break in ConTeXt

Background Trying to determine whether a column break must be inserted on a two-column page. There are multiple sections on the page. Before the last section on the page, I want to insert a column ...
2
votes
1answer
153 views

Make ConTeXt ignore system-fonts?

How can I make ConTeXt ignore my system-fonts? Currently, ConTeXt scans and uses all system fonts (all the files in the font folder of windows 7) first and the fonts in the ConTeXt folder second. I ...
2
votes
1answer
142 views

Currency/number formatting in ConTeXt

I am stuck trying to format numbers particularly currency. I assume I need to define something so that I can say \mynum{$234234} and this is then typeset as $ 234 234.00 for instance. From what I ...
3
votes
1answer
158 views

How to wrap text around framed floats in ConTeXt?

The goal is to embed an image into a coloured box with text. I tried with \placefigure and \starthangaround. They work fine outside a frame, but once put inside a frame the text collides with the ...
1
vote
0answers
427 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 ...
9
votes
1answer
297 views

PDF Colour Space and ConTeXt

Background Trying to create a PDF that includes a vectorized cover page having transparent colours. I would like the PDF to have the same appearance in Acrobat Reader, Firefox PDF Viewer, Foxit ...
1
vote
1answer
197 views

LaTeX - ConTeXt converter or there and back again:)

I'm looking for some converter LaTeX -> ConTeXt and perhaps LaTeX <- ConTeXt (just in case). I can write simple script and implement translation of basic syntax, but perhaps someone did it?
2
votes
1answer
482 views

LaTeX + Memoir or ConTeXt MkIV?

Is it worth to migrate from LaTeX (with Memoir) to ConTeXt? I think about it, but I have few doubts: LaTeX + Memoir is a well documented team, while ConTeXt not, LaTeX + Memoir is a team that works ...
3
votes
0answers
48 views

Width-per-column not working in ConTeXt columnset [duplicate]

I'm trying to put some information and a table (\starttabulate...\stoptabulate) aside to a image, the image in the left column and the title and the table in the right column. So what I did is this: ...
2
votes
1answer
95 views

ConTeXt: Repeat second-level registers within index

Background In ConTeXt, a multi-level index can be created using: \index{level1+level2}text If the value for level2 matches the previous index value of level2, then the text for level2 is not ...
2
votes
1answer
178 views

ConTeXt: How to create nice-looking fractions

Background Looking to create vulgar fractions in the current font such those in Unicode. LaTeX has the nicefrac package that provides, as the name implies, fractions where the dividing line is a ...
2
votes
0answers
113 views

ConTeXt: Set mixedcolumns maximum height for vertical rule

Background Looking to ensure that the height of a vertical rule for the first page of a section is the same as the subsequent sections. Code Minimum working example to illustrate the issue: ...
2
votes
1answer
131 views

Macro to get character width in ConTeXt

Background Looking to adjust the location of the first letter in a word based on its width. Problem The calculation resembles: \define[1]\StyleChapterChar{% \cldcontext{string.sub("#1",1,1)}% } ...
3
votes
1answer
432 views

Expand background image to fill page in ConTeXt

Background Looking to make a background image scale to fill an entire page. Code I tried changing the dimensions of the page to fill the entire area and then drop in an external image: ...
3
votes
1answer
185 views

ConTeXt: Part, chapter, section, and subsection names

Background Looking to include the section within an index. Problem In LaTeX the nameref package allows coding a contextual macro called \currentname. This allows users to refer to the current ...
4
votes
1answer
105 views

Insert section title within index in ConTeXt

Background Each recipe in a recipe book has ingredients, and those ingredients can be common for different recipes throughout the book. For example: Code I've added the comma and colours as ...
3
votes
1answer
83 views

Use deeptextcommand and custom register in ConTeXt

Background Looking to emphasize the first letter of the index chapter title. Code The following code does not work as expected: \defineframed[StyleChapterFramed][ frame=off, ] ...
2
votes
1answer
156 views

Include custom index chapter title in table of contents in ConTeXt

Problem The following code is used to prevent pagination from being applied to the index: \setuphead[chapter,section][ number=no, page=yes, continue=no, ] \definehead[StyleIndex][chapter] ...
1
vote
1answer
417 views

How to fix in ConTeXt problems after pages and warning 'no GlyphToUnicode entry has been inserted yet!'

Is the warning no GlyphToUnicode entry has been inserted yet! exclusive of pdftex or is it caused by patches loaded by mkii or by using 'cont-sys.rme' instead of cont-sys.tex? The funny thing is, ...
3
votes
1answer
201 views

bug? unwanted gap in 2nd columnset

(Disclosure: I posted this question on the NTG ConTeXt mailing list before the weekend. I have not received any replies yet, so now I'm asking here.) We have a document where a gap occurs in a ...
1
vote
1answer
72 views

How to teach ConTeXt to recognize and format custom syntax?

I have a document filled with editor's comments, appearing like this: \starttext This [is ]some text with comment[s] added to show corrections to erro[r]s. \stoptext I need to make ...
4
votes
1answer
313 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 ...
3
votes
1answer
123 views

How to manually increment the chapter number in ConTeXt?

I need to manually adjust the chapter number in a book, so that three chapter numbers are missing. \starttext \chapter{Birds of Africa} \chapter{Birds of Australia} \stoptext "Birds of ...
3
votes
1answer
241 views

ConTeXt: How to increase line-spacing in title?

Pandoc generates ConTeXT document titles using a standard simple scheme that sets the title in \tfd. I already changed the default font and size of \tfd. However, when a title is so long that it ...
4
votes
1answer
165 views

ConTeXt: How can I prevent a block of text from being split over a page break?

At the end of below minimum working example there is a funny \startdelimitedtext[endtext] which should be printed at the bottom of the last page without being split over a page break. How do I render ...
1
vote
1answer
263 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 ...
2
votes
1answer
53 views

Is there a ConTeXt command to print the path of the file in which it is evoked?

I would like to put a URL-link in the output PDF of a ConTeXt file. It should point to the directory in which the ConTeXt file and its output PDF reside. Currently, I am using a shell script in my ...
4
votes
1answer
208 views

How hard is it to use typo-dir.lua in LaTeX?

I tried to use typo-dir.lua from ConTeXt distribution in LaTeX but I could not. I searched all context sources and I added all missing functions but still it did not work. Is it possible to use this ...
13
votes
1answer
316 views

Devanagari/Indic in LuaTeX

As I gather from the mailing lists, LuaTeX is currently unable to render devanagari properly because it doesn't understand the complex ligature rules involved. This is my experience with test ...
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.
5
votes
2answers
456 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, ...
3
votes
1answer
403 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, ...
1
vote
0answers
79 views

How to prevent page breaks from appearing at the point where a sub-itemized list begin in ConTeXt?

I have a lengthy document containing lots of itemized lists, in two levels. It is like this, but often much longer: \startitemize[r] \item This is a statement. \startitemize[n] ...
3
votes
1answer
67 views

How to place an “Ex.” item at the beginning of an itemized list in ConTeXt?

I created a macro which displays an list of numbers, where readers can write in their answers to a question. \def\answers{ \startitemize[n] \docursive{3}{\item} \stopitemize } In ...
2
votes
1answer
170 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
208 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
226 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
126 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
755 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
500 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
264 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
210 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
68 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
78 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
638 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
372 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][ ...