Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [context]

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.

3
votes
1answer
78 views

Is there any alternative for tcolorbox in Context?

I am planning to move to Context, however, the fact that I'll miss some of LaTeX packages (especially tcolorbox) feels sad. That's why I asked such a question.
1
vote
1answer
47 views

Is there a simple way to create a cross-shaped array in ConTeXt?

According to https://en.wikibooks.org/wiki/LaTeX/Mathematics#Matrices_and_arrays, the following code creates an array that has a cross-shape, with four items centered in each quadrant. \begin{array}{...
4
votes
1answer
44 views

ConTeXt: text to the left of a numbered displayed formula

I read in an old style manual (Sättningsregler, by Lansburgh) that suggests to set short word(s) separating two displayed formulas (if there is space) to the left of the second displayed formula, as ...
4
votes
0answers
36 views

Break down a bibliography in Context according to category of item

A requirement for a memoir that I am typesetting (for a friend), using Context, is to separate the bibliography into several sections according to the category of the item (textbook, legal text, etc.)....
7
votes
1answer
69 views

How to activate font fallbacks on typefaces in ConTeXt?

This is a follow-up to my previous question about setting the tt font in mathtt. As Henri Menke stated in a comment using typefaces should be preferred over font families. So I tried to convert the ...
5
votes
1answer
68 views

How to use tt font in mathtt in ConTeXt?

When using a specific mono font in ConTeXt I want to have this font as \tt font which should also affect \mathtt. So how can I use my main tt font as math tt font? MWE: \definefontfamily [test] [rm] ...
1
vote
0answers
37 views

Display book page number in ConTeXt APA style bibliography

I am using APA style for my bibliographies (better covering of @film entries than APS). In French humanistic bibliographies, the page number of a book is often required. I saw on this TEX S.E post a ...
6
votes
1answer
120 views

ConTeXt: Complex multicolumn layout

Background Looking to achieve a fairly complex layout from a Markdown source document. The layout resembles: Code \usemodule[newcolumnsets,visual] \setuphead[chapter][ header=empty, footer=...
2
votes
0answers
84 views

ConTeXt marginal images and notes

I am writing a Textbook with much marginal notes and even images in the margin to explain words. I think it works best to use consequently the same command for text and images: \margintext. I want ...
4
votes
2answers
69 views

ConTeXt: Matrix inside startalign/stopalign changes specified column alignment

Example: \starttext \startformula \startalign[n=2,align={right,left}] \NC x \NC = a ~ long ~ sequence ~ of ~ terms \NR \NC y \NC = ok ~ left \NR ...
2
votes
1answer
75 views

Context images / figures and linenumbering

When typesetting a document with linenumbering, I get heavy problems with images. The linenumbering becomes a mess. What do I do wrong? Here is an MWE: \setuppapersize[A5] \setupexternalfigures[...
3
votes
0answers
42 views

Context bibliography formatting problem

In the bibliography produced by Context MKIV the pages are suddenly in parentheses, but it was not like that a week ago. \setuplanguage[en] %\setupbackend[export=yes] \mainlanguage[english] \...
3
votes
1answer
53 views

Use one font for `\mathcal`, but another font for general math (ConTeXt)

I want to use (for example) Tex Gyre Heros Math for \mathcal, but (for example) Tex Gyre Pagella Math in general for mathematics. (Why did I want to do that, because Pagella's \mathcal seems quite ...
3
votes
0answers
76 views

Bibliography: what is the correct way to setup and invoke the category 'electronic'

Short question: What is the correct way to setup and invoke the bibliography mecanism in context, to use, for example, the category electronic? Long question: Looking at context documentations and ...
1
vote
1answer
35 views

ConTeXt: Line Break for chinese characters

I automatically generate documents in which users can input any kind of text. If the user enters chinese characters the text overflows and no line break is occuring. How can I prohibit the text ...
3
votes
1answer
60 views

ConTeXt: Preformatted text inside tables

I want to insert preformatted text into a table. I tried to accomplish this with \startlines but the command shows no effect in tables. It is possible with \break but this is no real solution. How ...
2
votes
2answers
62 views

Alternative of `\rule` in ConTeXt for lifting `\hat` slightly up

In ConTeXt, I want to lift a \hat slightly up, since \hat is too low and touches the variable. Now, this post is exactly what I want. It suggests: \hat{\rule{0ex}{1.2ex}\mkern-3mu x}_{t+1} However, ...
4
votes
1answer
76 views

Align figure on a grid by it's top edge

I'm trying to place figures in a book that I'm typesetting. Most of them end up at the top of a page. I'd like my captions to use smaller font with a smaller line spacing than the main text of the ...
5
votes
1answer
53 views

Switch off Old Number otf feature for line numbering in ConTeXt

I am using OldNumber features in my presentations, because I like them (de gustibus…). However they look quite odd when used to number lines. What should I do to have lines numbered the standard way ...
7
votes
1answer
65 views

How many math columns are allowed in math cases (ConTeXt)?

In ConTeXt, when using the cases environment, it seems to allow one \MC (giving 2 columns) only, and when I place a second \MC (giving 3 columns), the columns are not aligned, and the math variables ...
3
votes
1answer
46 views

ConTeXt: Refer to first and last value of a counter in the current page

I look for a way to show the first and last values of a counter in the header, like in this question, but for ConTeXt. If we, at a page break, are in the middle of a problem, I could live with the ...
2
votes
1answer
39 views

Right-align \sym in enumeration

\startitemize[before=,width=3.5em,inbetween={\blank[small]}] \sym{\bold{foo}} Lorem ipsum dolor sit amet \sym{\bold{foobar}} Lorem ipsum dolor sit amet \stopitemize gives Is there a way to align ...
2
votes
1answer
61 views

ConTeXt: Change “and” to “och” for two authors in bibliography

I want to print the Swedish word "och" instead of the English "and" in the bibliography in case of two authors. Example: \mainlanguage[sv] \startbuffer[ref] @book {grauertlieb, AUTHOR = {Grauert,...
3
votes
1answer
113 views

Latin hyphenation and macrons (in ConTeXt, but I believe also in LaTeX)

It seems that there are some problems for (Con)TeX(t) when hyphenating macronized words. When I inspect the ConTeXt language-file for Latin (http://www.pragma-ade.nl/general/manuals/languages-mkiv.pdf)...
3
votes
1answer
76 views

luajittex ignores fonts luatex finds

With LuajitTeX, Version 1.10.0 (TeX Live 2019) and ConTeXt ver: 2019.02.26 20:04 MKIV beta fmt: 2019.3.1 I can run the following MWE: \setupbodyfont[postscript,sans,12pt] \starttext Test \stoptext ...
3
votes
1answer
73 views

ConTeXt: TeX ligatures with Libertine

I noticed that libertine, at least as I load it, does not convert --- to – Consider this MWE \definefontfamily[libertine][rm][Linux Libertine O] \setupbodyfont[libertine,serif] \starttext \input ...
3
votes
1answer
79 views

Indentation after a title using `alternative=text`

I am using ConTeXt 2018.04.04 from TeXLive 2018. When I use the alternative=text option in \setuphead, the second paragraph after the title is not indented. I cannot find in the manual how to get it ...
4
votes
1answer
54 views

Context html export bibliography

Context MKIV html export works perfectly, but: the bibliography in APA produces ---- lines for authors with several publications which disappear in html-rendering. Which is the best way to resolve ...
2
votes
1answer
42 views

Remove page numbering from first page of resume of letter module

A document like the modern sample on https://wiki.contextgarden.net/Curriculum_Vitae#Stripped_down_example contains page numbers even when only one page is generated. Using \setuppagenumbering[...
5
votes
1answer
54 views

Context html export garbles bibliography

I added \setupbackend[export=yes] to my file to test the html export capabilities. All works excellent except the bibliography which is either split (in -div version) or comes as one paragraph (in -...
5
votes
1answer
128 views

context: line between margin and text

I work with ConteXt. Here at StackExchange I found a code for LateX to put a line between the text and the margin/marginparagraph. This line is visible in the image below. After that, I switched to ...
5
votes
1answer
67 views

`\startalign` and `\startcases` are not compatible

In ConTeXt, it seems that \startalign and \startcases are not compatible. If so, what should I do when I want to align an equation containing a case-statement and a following equation? \starttext \...
3
votes
3answers
72 views

How to typeset absolute values and norms in ConTeXt

How to properly absolute values and norms in ConTeXt? I currently use: \m{|x|\leq|y|} But the height does not adapt to the content (same thing for \mid).
6
votes
1answer
212 views

Difference between `$…$` and `\m`

In ConTeXt wiki: Math, it is said that \m, \math, \mathematics are the same as $...$. My guess is that \m wraps $...$ in ConTeXt the same way as \(\) wraps $...$, is that so? Are there any advantage ...
2
votes
1answer
53 views

ConTeXt mkiv bibliography and chicago style

Between the three bibliography-setting commands of Context mkiv, what is the hierarchy? \usebtxdefinitions[aps] \definebtxrendering[default][chicago][specification=chicago,sorttype=authoryear,...
3
votes
1answer
82 views

ConTeXt Mark IV: What is the Identifier rule?

What is the restriction on user-defined identifiers in ConTeXt Mark IV? Should it contain Latin alphabet only? What about numbers? What about hyphen and underscores? I can't find the official rules ...
2
votes
1answer
97 views

What is the mtxrun error about 'context.lua' and how to fix it?

Trying my first steps in the Tex world. I'm trying to achieve the result for : Pandoc Resume, which creates an intermediary tex file before a convertion to pdf using mtxrun. Unfortunately, I cannot ...
3
votes
1answer
58 views

How to get a colored packed itemize list in ConTeXt?

Consider the following MWE: \setupitemize[color=green,packed] \starttext \startitemize \item Test one \item Test two \stopitemize \stoptext As you ...
5
votes
2answers
182 views

ConTeXt XML: Nested section elements

I am trying to produce PDF from XML with ConTeXt. Currently, I am struggling with this: The XML file is in JATS, and JATS usually does not specify the levels of sections. There is an optional ...
3
votes
1answer
34 views

Is making \cite into a \footnote possible in ConTeXt mkiv

After examining "Bibliographies the Context way" I found that there is no response there to the question of how to make \cite work as \foonote. \placelistofpublications lines up \cite entries ...
3
votes
1answer
107 views

Cover page coloring in ConTeXt

How would I go about coloring the top and bottom of a page in ConTeXt/Metafun? Currently I am using this code \definecolor [Top] [h=00ff00] \definecolor [Bottom] [h=ff0000] \definecolor [TitleColor]...
2
votes
0answers
56 views

Any good ConTeXt tutorials / beginner guides out there? [duplicate]

I've been wanting to learn ConTeXt for a while, mainly due to its promises of finer typographic control than what LaTeX offers. However, every time I try, I fail and eventually give up due to some ...
3
votes
1answer
98 views

Pandoc + ConTeXt: Inline images [closed]

Background A Markdown document has a div to inline an image: ::: image-inline ![](../climate/co2_graph) ::: The Markdown is passed through Pandoc to produce a ConTeXt document. The output resembles:...
5
votes
1answer
83 views

Context mkiv and \cite

In Context MKIV using bibliography produces in just one case an annoying dash. (-Eastwood, 1997). All other footnotes work OK, in Latex all works OK. Some non-standard character? \mainlanguage[...
6
votes
2answers
110 views

ConTeXt does not load png file given by lua code

This is my code: \defineexpandable[1]\background{ \directlua{ local cases = { "noise-blue.png", "noise-yellow.png", "noise-red.png", "noise-green.png" } tex....
3
votes
2answers
84 views

TikZ in ConTeXt: How to flush left align a node with changed font size?

Consider the following MWE: \usemodule[tikz] \starttext \starttikzpicture \node[draw,font=\big,text width=4.75cm,align=flush left] {This text should not hyphenate.}; \stoptikzpicture \stoptext ...
5
votes
2answers
121 views

ConTeXt XML: Configureable Titleblock

I am trying out XML processing with ConTeXt. The basics are working fine for me. Now I am trying to make the titleblock layout independent of where the data appears in the XML file. Let's consider ...
2
votes
3answers
134 views

How to adjust the page number position in the footer area in ConTeXt?

I would like to elevate a little bit the position of the page number in the footer area of the MWE below in ConTeXt: MWE \setuppapersize [A4] \setuplayout [header=0pt, margin=0pt, ...
4
votes
1answer
54 views

ConTeXt XML: How do I typeset blank lines, leading spaces

I have the following example, where one <Line> is blank and one has leading spaces. ConTeXt is ignoring the blank line and trimming the leading spaces. How do I turn this off? \startbuffer[demo]...
1
vote
1answer
47 views

Context MKIV \cite stopped processing \righttext

Context MKIV worked with \cite[righttext={}][key] perfectly, then stopped. Where to look for problems? MWE \usebtxdataset[default][bib.bib] \usebtxdefinitions[aps] \setupbtxrendering[default][...