Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
30 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][...
4
votes
1answer
30 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=...
2
votes
1answer
35 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
55 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
67 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). ...
5
votes
1answer
98 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
43 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
41 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
35 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
57 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 ...
3
votes
1answer
58 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
49 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 @...
2
votes
0answers
71 views

Minion Pro problem on ConTeXt

I am having a rather strange problem using Minion Pro with ConTeXt. The following example breaks at {\em Gesammelte Schriften}. There are some lines that I can comment out in order to make the example ...
1
vote
1answer
62 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
126 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 ...
3
votes
1answer
90 views

ConTeXt: Squiggly Underbar

Is it possible to create a squiggly underline? Like this, but wavy: \setupwhitespace[big] \starttext \underbar{\samplefile{knuth}} \stoptext
7
votes
1answer
128 views

ConTeXt: How to use font optical sizes

I have a font with some optical sizes which I want to use. I tried two solutions (below), without success. How can I use optical sizes of a local font? The solutions I tried: Using \definefontfamily, ...
3
votes
1answer
71 views

Macro Source or Definition

How can I see the definition of the macro? I come from the programming background and it would be nice to see how the macro is defined. Perhaps even better if there would be something similar to Lisp'...
6
votes
1answer
93 views

ConTeXt: Using Emoji Fonts without Color

For example, I'd like to use the Twemoji font[1]. Fedora provides a TrueType variant[2] built using Google's Noto Emoji tooling[3]. Then there is a COLR/CPAL version provided by Mozilla[4]. I can't ...
2
votes
2answers
139 views

ConTeXt: Replace PDF Content During Printing

Is it possible to create a single document which appears different when printed? Not separate modes which typeset multiple documents per input TeX, but a single document which prints differently than ...
4
votes
1answer
64 views

ConTeXt: xtables zebra stripe

Background Set up zebra striping using extreme tables. The ConTeXt tables are generated by converting an ASCII Markdown table via pandoc. Minimum Example \starttext \startplacetable[] \...
0
votes
1answer
92 views

ConTeXt: uniform line height

Returning to this example, I would like to change the "Left 1" \heading to a \subheading while keeping the two "Left 1", "Right 1" headings vertically lined-up. And assuming ConTeXt: uniform handling ...
2
votes
1answer
78 views

ConTeXt graphics example compilation

Scratching my head to compile this example in the mkiv manual (p57). Example run: $ context file.tex. Am I missing something?? %engine=luatex \setuphead[section][style=\bfa] \...
1
vote
1answer
79 views

ConTeXt: right justified

Is it possible to have right-justified left-to-right text so that the text in two-column layouts are mirror images of each other, vertically? Given the second example in the question ConTeXt: uniform ...
0
votes
1answer
75 views

ConTeXt: uniform handling of whitespace in margin and text

Why does whitespace handle differently in the margins than the text body? \setuppapersize[letter] \setupwhitespace[medium] \setuplayout [backspace=4.375in, width=3.625in, leftmargin=3....
0
votes
1answer
84 views

ConTeXt: advanced enumeration item setup

This question is a refinement of ConTeXt: avoid enumeration items across pages. Given an itemgroup, each \item contains one or more paragraphs or itemgroups, possibly mixed. I only want pagebreaks ...
1
vote
1answer
69 views

Reflection in ConTeXt

The answer to ConTeXt: avoid enumeration items across pages was a nice introduction to modifying TeX before rendering, like HTML with JavaScript. \startsetups [userdata:itemize] \setbox\scratchbox\...
0
votes
1answer
58 views

ConTeXt: Block vs Environment vs Group

I've seen these all used somewhat interchangeably. What's the difference? edit: I've seen many \start..stop blocks referred sometimes referred to as environment. For example the verbatim environment ...
0
votes
1answer
62 views

ConTeXt: What are alternatives and rendering setups?

I've seen the alternative keyword used throughout ConTeXt: \setuppagenumbering[alternative=doublesided] \setupheads[alternative=inmargin] \setuplist[section][alternative=d] I assumed that it was ...
1
vote
1answer
44 views

Compilation options in ConTeXt document

Is there a way to supply compilation options from within the document in ConTeXt? For example the arrange option in the following example: There is a documented caveat in imposition mode, where the ...
5
votes
1answer
92 views

ConTeXt: avoid enumeration items across pages

If each \item is one or more paragraphs, sometimes ConTeXt will break these paragraphs across pages. In this specific case I would rather ConTeXt break between each item if a single paragraph or ...
6
votes
1answer
141 views

ConTeXt: Frame a Sentence

How can I frame a single sentence in a paragraph when the sentence may wrap around to become several lines long? Just like \color but to also provide background color, frame, styling, and so forth. ...
4
votes
1answer
66 views

Using multiple fonts in ConTeXt

As I'm learning a bit more about ConTeXt I'm finding that fonts is a very complex topic. Recently, I found myself wanted to do the following: Use one font for the title page and section headings Use ...
7
votes
1answer
115 views

How to draw chessboards in ConTeXt?

I wonder which module you can use to draw chessboards in ConTeXt. When I was using LaTeX, skak is fine but now I a bit stuck. In LaTeX the code looks like: \documentclass{minimal} \usepackage{skak} ...
6
votes
2answers
138 views

ConTeXt: Use of t-vim module in table

How can use the t-vim module inside a TABLE environment? I know it propably has something to do with buffers but I'm not sure how to store the output from vim into a buffer. MWE: \usemodule[vim] \...
4
votes
3answers
118 views

How to put a frame around the footer section, with text sitting at the bottom center?

I'm trying to put draw lines around the footer area and put some text at the center bottom of the area. I've been trying variations of the below for a while now: \showframe \defineframed[...
4
votes
0answers
111 views

Subformula numbering

I can't get cases subformula to work properly. My MWE, inspired from the wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is : \starttext \placeformula \startformula \...
6
votes
2answers
199 views

What is “state=start”?

Throughout ConTeXt's web site and documentation, there are examples that have state=start. The reference manual also has this, but it isn't clear to me what this means. In the manual, for different ...
6
votes
1answer
158 views

How to make the switch from LaTeX to ConTeXt [duplicate]

I've heard and read much about ConTeXt and Metafun and there are tempting arguments to switch. But i still feel intimidated thinking about switching from my current LaTeX-environment, which includes ...
1
vote
1answer
55 views

What's the right way to run “context”?

Someone previously asked the difference between context and texexec. This page says that you "start Mark IV with the context command, and Mark II with texexec". So, I started using context. But it ...
1
vote
1answer
43 views

Cannot change textcolor inside a makeup in ConTeXt?

I'm trying to put together a title page makeup in ConTeXt. The background color is set correctly but the text color will not set properly. \definemakeup [titlepage] [doublesided=no, page=...
4
votes
1answer
68 views

What is the meaning of ?? and ! in ConTeXt? [duplicate]

Reading this page about the differences between LaTeX and ConTeXt, I came across the following snippet: \definesystemvariable {dt} % DocumentTitle \def\setuptitle {\dodoubleempty\dosetuptitle} \...
3
votes
1answer
81 views

How to use OTF files in ConTeXt?

Is there a way For ConTeXt to use uninstalled .otf files in an arbitrary folder? In my current LaTeX files, for example, I have: \setmainfont{ProximaNova}[ UprightFont=*-Regular, ItalicFont=*...
4
votes
1answer
23 views

Unexpected images order with ConTeXt startcombination

I want to use combinations to show a chronological overview of the Eastern Roman Empire at different ages. The trouble is my pictures are displayed in a apparently random order. \...
4
votes
1answer
104 views

ConTeXt: Define fonts with additional non-standard styles, alternatives and sizes

How do I define fonts with additional non-standard styles, alternatives and sizes? For example, these fonts: Cormorant[1][2] Styles: Cormorant, Garamond, Infant, SC, Unicase, Upright Alternatives: ...
3
votes
1answer
45 views

How to reliably check if a document variable is not empty in ConTeXt?

Consider the following MWE: \startdocument[title=] \doifemptyvariableelse{document}{title}{True}{\documentvariable{title}} Test \stopdocument So basically I have a document with a title variable....
2
votes
1answer
65 views

How to keep the correct line numbering when using ConTeXt vim module?

Consider the following code: \usemodule[vim] \definevimtyping [somecode] [numbering=yes,lines=split] \starttext \startsomecode Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam ...
5
votes
2answers
126 views

ConTeXt, HTML source code side by side to the result from the web

I would like to write a document with some HTML code and next to it the result from a webpage. Basically something like \starthtmlexample <strong>Hello</strong>, <em>world<em&...
2
votes
0answers
93 views

Load System Fonts in Fedora 28 Texlive 2017* ConTeXt? [to be closed] [closed]

The example from font-sel.mkvi fails to load system fonts: \definefontfamily [dejavu] [serif] [DejaVu Serif] \definefontfamily [dejavu] [sans] [DejaVu Sans] \definefontfamily [dejavu] [mono] [...
1
vote
0answers
108 views

ConText: Text overflow over into the footer

In the MWE the text overflows into the footerdistance and into the footer. Why is this happening and how can I avoid it? The documents are generated and very long. The split at placetable seems to ...