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
45 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
51 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
60 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
41 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
58 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
45 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
36 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
60 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
104 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
0answers
84 views

ConTeXt images/floats in text and margin

In making a format for a Latin Textbook, I get problems when I insert images in margin and text. Because I fear that there is some interference in my document, I will paste the whole document setup (...
2
votes
1answer
64 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
62 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
76 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
51 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
41 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
53 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
105 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
61 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
70 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
182 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
49 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
76 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
75 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
54 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
170 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
33 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
90 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
53 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
78 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
82 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
104 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
77 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
118 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
125 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
53 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
46 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][...
5
votes
1answer
51 views

Change PDF timestamp in ConTeXt

Inspired by the corresponding question for pdftex, I want to set the pdf timestamp in the metadata in ConTeXt. What didn't work so far: % Set the luatex variables, applies only to \date \ctxlua{ pt=...
3
votes
1answer
49 views

ConTeXt: Optional XML in two columns

I have the following XML data: \startbuffer[demo] <?xml version="1.0" encoding="UTF-8"?> <Book> <Reading> <Header>Foo</Header> <Source>From Source #1</Source>...
5
votes
1answer
80 views

ConTeXt: Read an XML file into a buffer for processing

I have a very (very) long XML file, and I am using ConTeXt to turn it into a book. This works to read the file and output as-is: \starttext \startbuffer[test] \input /Users/ramfub/Documents/...
3
votes
2answers
77 views

Independently style head in TOC and in document

I'm using a custom typescript (after help in this question) which includes (among other things) two additional weights, medium and semibold, and their size modifiers (like \tfa, \tfb and so on). ...
6
votes
1answer
112 views

Context: \defineparagraphs aligned to grid?

I am a beginner in ConTeXt, and I don't understand why \defineparagraphs turns off grid alignment here: \showgrid \setuplayout [grid=yes] \defineparagraphs[AntiphonNo][n=2] \setupparagraphs[...
2
votes
1answer
45 views

How can I get colored url within head titles in ConTeXt?

I am currently working on a ConTeXt cheat sheet. Each command is designed as a link to the wiki. Most, but not all of the subsubjects are dedicated to one command. I would like to stick to this ...
3
votes
1answer
48 views

Suppressing blank lines between descriptions in ConTeXt

EDIT I changed the title to make this post easier to find for someone not too familiar with ConTeXt syntax. Previous title was "Is there a joinedup equivalent for \setupdescriptions?" Which option ...
3
votes
1answer
40 views

Override package definition in ConTeXt presentation

I am using ConTeXt for my presentation. More specifically, I used the following code: \usemodule[pre-split] \starttext \TitlePage{Famous Quotes} \Topic{\sc Tufte} \input tufte \...
3
votes
1answer
68 views

Define a new big operator in ConTeXt

I would like to replace the sum symbol by a big plus as Pedro G. Mattos wanted to do here How can I define a big plus operator that works like \bigcup?. In the wiki I found that the command I should ...
4
votes
1answer
72 views

Sups in ConTeXt

In LuaLaTeX I can use the realscripts package to use superior figures as footnote marks. How can I use superior figures as footnote marks in ConTeXt?
4
votes
0answers
59 views

Brackets with the same linewidth in ConTeXt

I refer to the same situation as @tommsch at Brackets with the same linewidth but in ConTeXt instead of LaTeX. In ConTeXt the two first matrices are clean but the third one has the same problem as @...
3
votes
0answers
127 views

Minion Pro problem on ConTeXt [closed]

EDIT: The problem seems to be solved now. (I've had a test with version 2019.02.14 16:57) I am having a rather strange problem using Minion Pro with ConTeXt. The following example breaks at {\em ...
2
votes
1answer
87 views

PDF bookmarks don't get proper formatting

In my document, I have two chapter titles with \em commands and --- dashes, which get correctly converted to italics and em-dash in the text. But the PDF bookmarks are not created properly: \em: if I ...
4
votes
2answers
140 views

Define macro as wrapper for parameters of a command

I'm trying to define a macro that is a little wrapper to a common parameter of a command. The macro is expanded, but the parameter is not taken into account by the command. The macro, \sp is used ...