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

0
votes
0answers
5 views

In CONTEXT, how can I get the total number of chapters?

For total number of pages, one can use \lastcounter[userpage] to get the total number of pages in the document. Actually it gives the number on the last page (which is more interesting). Similar ...
1
vote
0answers
40 views

Looking for ConTeXt template

I did very few LaTeX based on a template and it allowed me to produce document without spending too much time learning LaTeX synthax imputing most of its basics. LaTeX is a bit outdated in term of ...
5
votes
1answer
195 views

How do I create unequal column widths using columnsets?

I would like to create a columnset where the first column is wider than the others. I understand that column breaks become complicated in such an environment. The ConTeXt columns manual claims to ...
1
vote
1answer
26 views

Why does kpsewhich fail to find this file?

I'm trying to compile a file with context, and I get an error: I couldn't open style file cont-no.bst ---line 2 of file dissertation.aux : \bibstyle{cont-no : } I thought I would ...
2
votes
2answers
27 views

How can I get a TABLE to respect the narrower environment in ConTeXt?

The narrower environment in ConTeXt is very useful, but TABLEs misbehave inside of it. I would expect a TABLE in a narrower environment to align with the new margin, but instead, the TABLE is aligned ...
5
votes
2answers
86 views

Hierarchical semantic network

I would like to reproduce a hierarquical semantic network like this (Memory and Learning, from brain to behavior", Mark A. Gluck) My main problem is to add the lateral information in each box. ...
1
vote
0answers
44 views

ConTeXt for the LaTeX user [duplicate]

I am willing to try out ConTeXt after reading about its typographical capabilities and differences from more classical engines. I was wondering if there was good and recent resources to learn the ...
7
votes
0answers
96 views

ConTeXt: uppercase ß, customizing glyph substitution

I've been trying to get a capital ß out of ConTeXt in contexts where automatic uppercasing is meant to happen, and get strange results. I am very new to ConTeXt. Also, I don't like the oldtsyle ...
6
votes
0answers
88 views

ConTeXt: Font weights

Is there a canonical way to access font weights other than regular and bold in ConTeXt? This does not work: \definefontfamily [myfamily] [serif][Calluna] \definefontfamily [myfamily] [sans] [Calluna ...
1
vote
0answers
42 views

Copying Arabic text from ConTeXt PDF

When copying and pasting an Arabic text from a PDF file generated by context, the characters are not correctly joint. Consider the following MWE: \definefontfamily [font] [serif] [Amiri] ...
0
votes
0answers
29 views

pagebreaking and `\vfil` in ConTeXt

I am trying to distribute elements vertically across a page: \setupbodyfont [TeX Gyre Pagella, 30pt] % Or something else \showframe \starttext A \vfil B \vfil C \vfil D \page E \vfil F \page G ...
3
votes
1answer
53 views

Styling different levels of itemize with repeating item numbers in ConTeXt

As ugly as this sounds, is it possible to produce a nested itemize list with different styles for each item number? E.g. with the below code: \setupbodyfont[sansserif] \starttext ...
1
vote
1answer
70 views

ConText under Windows

I'm very frustrated by the fact that almost all ConText documentations are outdated. For example, I followed the steps in ConText Garden Wiki's "Adapting TeXnicCenter for processing ConTeXt documents" ...
6
votes
2answers
82 views

Scale long line of text down

I'm using Context to generate a book. Most of my chapter titles are short and fit in the space allotted to them. However a few are slightly too long, I'd like to scale those down to fit. Trying ...
3
votes
0answers
50 views

Nested quotes with poetry

I'm using context and trying to get nested quotes right. Here is a document that illustrates my problems: \starttext {\bf Closing quotes on new line.} \startblockquote The start of a really long ...
20
votes
7answers
3k views

ConTeXt editors

There is a very active question about LaTeX editors and IDEs. I personally use Vim with LaTeX-suite for any LaTeX editing, and I am very happy with it. Lately I began to use ConTeXt more and more. ...
4
votes
1answer
76 views

Can I just install TeX Live to get ConTeXt?

I have a hankering to try ConTeXt again. I am normally a MikTeX user -- its on all my computers, except the linux ones (which generally use whatever is the the package manager). Last time I used ...
2
votes
1answer
91 views

Putting a plus symbol in the index in ConTeXt

I tried searching the mailing list for this but maybe I'm searching for the wrong thing. Basically, I have something I want to put in the index, but it has a plus symbol in it. ConTeXt interprets the ...
9
votes
4answers
18k 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: ...
1
vote
0answers
52 views

How to keep page break points when publishing the same content with two different styles?

I would like to publish two or more versions of the same document. The content is the same, the style is different and the page breaks should be the same too, so that I can refer to the same page ...
2
votes
0answers
62 views

Using typewriter font and turning off hyphenation in ConTeXt

I want to set the font for my entire document as a courier / typewriter font, so that it resembles a typewritten manuscript. This includes turning off hyphenation for the entire document. So far, I ...
112
votes
11answers
12k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
7
votes
2answers
94 views

\overstrike in ConTeXt, can it overstrike leaders?

I have the something similar to the following: \setuppapersize[A6][A6] \starttext \overstrike{Hello\hfill world!} % Works OK Hello\leaders\hbox{.}\hfill world! % Works OK, nothing special ...
2
votes
0answers
58 views

Is there “toffset” option for \setupbackgrounds in context

I'm trying to learn context, and I'm satisfied with their capacities. I read in contextgarden that options of \setupbackgrounds inherit from \setupframed, but if I setup toffset=5mm for ...
1
vote
1answer
78 views

Turning off hyphenation and redefining the typesetting of italics and bold

I want to emulate under ConTeXt the manuscript format provided by the sffms LaTeX package: http://www.mcdemarco.net/sffms/ It provides, roughly, these features: Double spaced manuscript 12-point ...
4
votes
1answer
111 views

Alternative to \large, \Large, \Huge, \small etc in ConTeXt

Are there simple alternative of these font sizes in ConTeXt? Or one needs to use some special module? I looked at this page here. It seems to be a lot of boilerplate of such a simple task.
0
votes
1answer
73 views

Customize right to left list in context

How can I use margin and column options with right to left list (arabic language). I have defined new enumeration ..., أ , ب for my right to left list, but if I add mergin or any other option for ...
2
votes
1answer
104 views

ConText and bibliography

Trying to compile simple example of using bibliography in ConText (from contextgarden wiki). My file is: \mainlanguage[russian] \usemodule[simplefonts][size=12pt] \setmainfont[XITS] ...
2
votes
1answer
45 views

How to modify months names in context

I would like to change months names in context, in tex \month define the month number, names of months can be redefined with \ifcase Change month names in \today command How can I do the same in ...
1
vote
0answers
39 views

Can I supply multiple compilation flags to the ConTeXt binary?

I can only provide one (1) compilation flag to ConTeXt binary via a commented line at the top of a ConTeXt input file. input.tex % engine=luatex \starttext hello, world \stoptext compile input.tex ...
2
votes
1answer
79 views

How to use Latin Modern font for math with arabic font

I want to write arabic document which contain mathematics using context, I would like to use Latin Modern font for mathematics (which I use when writing my documents with xelatex). My question is how ...
3
votes
0answers
76 views

Is there any way to suggest to ConTeXt to take advantage of multiple cores?

I have access to a relatively slow, but hugely (12) multi-cored machine. My 200+ page document has compile times in the 400 second range. Are there any flags or hints that I can give to the ...
2
votes
0answers
59 views

How can I define a dotted underbar in ConTeXt?

I would like to create a dotted underbar in ConTeXt with the \defineunderbar mechanism. Is that possible?
4
votes
1answer
55 views

How do I create a subtle placeinitial effect in a setuphead?

I would like the first character of my \section head (I'm using a fancy germanic font) to be at (for example) \tfb while the rest is at \tfa. I've tried adding \placeinitial to the style, but that ...
1
vote
1answer
75 views

How to write Japanese with ConTeXt?

Would you mind explaining to me why the following ConTeXt code does not work and how I can fix it? \mainlanguage[ja] \definefontfamily[mainface][serif][Heisei Mincho ...
1
vote
1answer
46 views

\startcombination spanning multiple pages? (ConTeXt)

I make extensive use of \startcombination for my grid of images and am very happy with what it produces. \startcombination[4*3] ...
4
votes
1answer
76 views

If figures are placed left, left-aligned captions are unwantedly centered (ConTeXt)

What I try to do: I want to place figures left so that text wraps around them if they have less width than \textwidth. The figure captions should be aligned left (flushleft). What happens: The ...
3
votes
1answer
51 views

Alignment of section titles in multi-column paragraphs in ConTeXt

I want to create two-column paragraphs. The alignment of left and right columns should be flush right and flush left, respectively. The following example displays the main texts in the correct ...
0
votes
0answers
55 views

How to limit the width of \halign?

The glues inside my \halign rows don't get reduced when they should. The contents of \halign behave as if they had infinite horizontal space. This is the source code for the first table (it's very ...
0
votes
0answers
36 views

Error After Updated Context ?

I have a problem again with Context after updated third modules, like this : Command Line: C:\context\tex\texmf-win64\bin\context.exe --synctex=-1 "vektor.tex" Startup Folder: D:\Master ...
2
votes
1answer
101 views

circuitikz and ConTeXT

I would like to use circuitikz with ConTeXT but I have an error message, ! Undefined control sequence. My code is: \usemodule[tikz] \usemodule[circuitikz][european] \starttext \startcircuitikz ...
3
votes
3answers
119 views

How to do simple arithmetic with arguments in ConTeXt?

This seems like a simple requirement but after reading the wiki and googling for answers, I can't figure how to express it for ConTeXt. What I want to do is define a macro with two arguments (or one ...
2
votes
1answer
58 views

Page Numbers are displayed in reverse such as 21 for page 12 in ConTeXt MarkIV

I am trying to typeset a book in arabic in ConTeXt. I have stumbled upon this issue Page Numbers change after 9 to 01 for page 10 21 for page 12 31 for page 13 41 for page 14 and so on The issue ...
5
votes
2answers
113 views

ConTeXt MarkIV : Arabic Letters are disjointed and reversed in headers and margin

I am trying to get Arabic Chapter Name in the header and some arabic text in the margins using ConTeXt MarkIV Here is the MWE: \mainlanguage[arabic] \setupdirections[bidi=global] \definefontfeature ...
1
vote
0answers
39 views

Is it necessary to use nonstopmode in ConTeXt? [closed]

Is it necessary to use --nonstopmode in ConTeXt or using --once is enough ?
2
votes
0answers
39 views

Changing the itemize marker location in Context

When manually defining the itemize marker with Metapost, the location of the marker appears to be quite low (see picture, the pink line added to highlight the problem). It looks rather ugly, and I'd ...
3
votes
1answer
84 views

How do I determine current font style in ConTeXt?

I want to define a macro that behaves differently within different font families. How do I determine the current font family used in ConTeXt? Is there something like \f@family variable?
6
votes
1answer
91 views

ConTeXt \quote command resets font shape. Is this a bug?

Whenever I use \quote command, it resets font shape to upright (while \quotation command works as expected). I suppose it's a bug. Here's the minimal example: \starttext {\bf Font shape \quote{does} ...
3
votes
1answer
105 views

TikZ causes blank page in front of ConTeXt makeup with grid layout

Consider the following MWE: \usemodule[tikz] \setuplayout[grid=yes] \starttext \startstandardmakeup Not nothing. \stopstandardmakeup \stoptext The output contains two pages: an unexpected and ...
3
votes
1answer
139 views

Using Babel-like shorthands in ConTeXt

I'm new to ConTeXt, and I feel very excited about its capabilities. But as soon as I've tried to make a handsome document in Russian, I've learned that ConTeXt doesn't seem to provide Babel-shorthands ...