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
13 views

change header style in natural tables

I am using natural tables to design key to symbols for my geography presentations. I set a big bodyfont (Latin Modern 18pt, S4 paper) to make sure every pupil will be able to read. This is however ...
3
votes
1answer
39 views

ConTeXt xtable setup format of table head for all tables in document

Suppose I have the following table (one of many in a document): \starttext \startxtable \startxtablehead \startxrow \startxcell Head\stopxcell \...
2
votes
0answers
45 views

Lua Table or XML as Bibliography File in LuaLaTeX

According to the ConTeXt Wiki in ConTeXt you can use the bibtex format for bibliographies but are not limited to that filetype. Since lua and XML are a little more universal but i can‘t (yet) switch ...
8
votes
2answers
137 views

How to use svg names in ConTeXt?

ConTeXt provides multiple color modules which contain predefined colors. Among those distributed in TeX Live are X11 color and some others, but the svg names, which have become more common these days, ...
3
votes
1answer
42 views

How to imitate `twoside=semi` in ConTeXt?

ConTeXt's page setup seems to be very powerful for single pages. But as I am used to the powers of KOMA there is something I could not achieve: twoside=semi. From what I have read I need to set up ...
4
votes
1answer
45 views

How does text styling for synonyms work in ConTeXt?

So I set up synonyms (here abbreviations) similar to the example on the Wiki (and expanded for first use as in this post). \definesynonyms [abbreviation][abbreviations][\infull] \setupsynonyms ...
11
votes
1answer
84 views

Does ConTeXt have an equivalent to `Scale=MatchLowercase` or similar?

In (Lua-)LaTeX with fontspec there is an option called Scale=MatchLowercase (as well as some similar ones like Scale=MatchUppercase) which would try to automatically detect a scale to match the fonts. ...
2
votes
1answer
50 views

Context: xtable row over multiple pages [duplicate]

For layout reasons I would like to embed my data into a table. Now I'm having a problem if a row is really large because the page is overflowing. How can I allow a page break if this happens? MWE: ...
2
votes
1answer
52 views

How can i display only the text in a certain mode

I'm writin a textbook and chose to type exercices in the main text. Solutions are typed in a [solution] mode I'd like to set things so I can compile the text+exercises or all exercises+solutions. Is ...
0
votes
0answers
39 views

ConTeXt fontifying in emacs auctex

I use emacs + auctex to typeset ConTeXt documents. There are some features in the LaTeX mode that do not transpose into ConTeXt mode, and I would like to make some minor changes. Problem is, I am not ...
21
votes
1answer
218 views

The definitive guide to ConTeXt MkIV documentation

On the mailing list (sign up, do it!) and on TeX - LaTeX Stack Exchange (abbr.: TeX.SX) I often read the complaint that the ConTeXt documentation is bad/old/incomplete. I wholeheartedly disagree. ...
3
votes
2answers
71 views

Context: How to place a table always at the bottom of a page?

I would like to have a table that is always at the bottom of the first page. There is no a lot of text before the table and afterwards should always start a new page. MWE: \starttext \input knuth ...
0
votes
1answer
97 views

How to place `placeregister` inside a tabulate environment in ConTeXt?

I have a situation where I need data to be called in another part of the document to be placed in a three-column tabulate environment. The data needs to be sorted, with duplicates removed. Throughout ...
4
votes
1answer
69 views

How to have continuous lines in tabulate in ConTeXt?

When I create a tabulate in ConTeXt with vertical and horizontal lines, the vertical lines do not quite match up with the horizontal lines, leaving a space between them. \starttext \starttabulate[...
10
votes
2answers
258 views

Health of ConTeXt community

I have been assessing ConTeXt as a platform for technical documentation production. It seems to have some compelling capabilities that are hard to match with LaTeX, such as in-built XML and HTML ...
0
votes
0answers
31 views

Installing ConTeXt using Homebrew

Is there any way to install ConTeXt using either Homebrew or Homebrew Cask on macOS?
4
votes
1answer
61 views

“Undefined control sequence” error when using chemfig in ConTeXt

I came across an error when using chemfig in ConTeXt: \usemodule[chemfig] \starttext \chemfig{A-B} \stoptext There is no pdf output, but there is an error message: %%%% tex error > tex ...
5
votes
1answer
90 views

How to create tables that spill into the next page in ConTeXt? [duplicate]

I have a table like this in ConTeXt, per a workplace template, with borders around every cell. \startsetups table:all \setupTABLE[align={hyphenated, normal}] \setupTABLE[frame=on] \stopsetups ...
3
votes
1answer
48 views

Images in HTML exported from ConTeXt

I am trying to assess ConTeXt as a source format for producing PDF and HTML output. I've discovered the feature: \setupbackend[export=yes] but running the example from this page, does not result in ...
3
votes
1answer
75 views

How to remove duplicates from a chapter-local list in ConTeXt?

This code, found at How to define items appearing in a list, which appears somewhere else in the document in ConTeXt?, allows users to add items to a list by using the code \definetopic{}: \...
3
votes
1answer
67 views

Usage of Simplefonts

after installation of standalone context I tried to compile the following MWE: \setupbodyfontenvironment[default][em=italic] \usemodule[simplefonts][size=10pt] \setmainfont[Constantia] \starttext ...
1
vote
0answers
62 views

How to integrate ConTeXt package from pragma into TeXLive?

Have anyone an idea how to integrate the cont-tmf.zip into TeXLive distibution? The standalone distribution works not and so I would like an integration of up-to-date distribution within the texmf-...
3
votes
1answer
66 views

How to install ttf and otf fonts for ConTeXt

What command do you use to install TrueType fonts or OpenType fonts? I like ConTeXt and I want to use it with TrueType fonts and OpenType fonts. There are so many variants of TeX that I don't know. ...
5
votes
1answer
340 views

Unexpected white gap (4mm wide) between edge of PDF page and start of a background

When processing my document with ConTeXt, I do not understand why there appears a gap between the leftmost edge of my PDF document and the left edge of my background layer. I have made an MWE which ...
4
votes
2answers
61 views

ConTeXt: Avoid extra line from figure in itemize

Constructing exams I often want to put figures close to the problem text. Perhaps I am doing something in a bad way, but the naive way adding a right-aligned figure does give an extra, unwanted, line. ...
0
votes
0answers
31 views

Context related code highlighting with t-vim

Notice that \inlinec{\n} represents only a single character. An escape sequence like \inlinec{\n} provides a general and extensible mechanism for representing hard-to-type or invisible characters. ...
2
votes
2answers
89 views

ConTeXt: break paragraph after t-vim code block

I will edit this question here: I would like the \startc to work like $$math$$. \starttext In C, the program to print hello, world is \startc My C code here. \stopc Just how to run this program ...
3
votes
2answers
69 views

ConTeXt inserting images into header

I need to insert three images into header in ConTeXt and specific info in the footer. The equivalent snippet in LaTeX is: \usepackage{fancyhdr} \renewcommand{\title}[1]{\gdef\@title{#1}\gdef\mytitle{...
3
votes
1answer
91 views

New Theorem Style : equivalent ConteXt and LateX

I used LaTeX for a long time before converting (with difficulty !) to ConteXt. For example, to define my new theorems, I used the amsthm package and I did this : New Theorem Style \...
2
votes
2answers
92 views

Have a picture on the right of a section title in ConTeXt

I am trying to set a picture to the right of a section title. Like this (bad ASCII-Art rendering): 1.2 Section Title +---------+ | Picture | Lorem Ipsum ...
3
votes
1answer
95 views

Accurate control with \setupalign[hanging] for optical margins in ConTeXt?

How could I get more control handling the "hanging" option for hyphenation with optical margins provided by \setupalign[hanging]? That is to say, I am not worried about protrusion. The default "hz" ...
2
votes
1answer
47 views

Tell the ConTeXt index which occurrence is the defining one

I have a document which defines quite some terms. I want to create an index where those terms are listed, along with prominent usages. In the index, I want to differentiate between the page that ...
1
vote
1answer
60 views

Centering chapter titles with ConteXt

How to center chapter titles to have chapter I: First chapter and not Chapter I: First chapter \mainlanguage[fr] \setuphead[chapter] [commandbefore={:\,}, header=empty, ...
3
votes
1answer
74 views

ConTeXt: Applying conditional formatting to bibliography entry

A relatively common requirement in academic grants is to provide a bibliography where your name or your students' names are formatted differently than other author names (such as put in bold text or ...
1
vote
1answer
120 views

Setup SyncTeX with Textadept and Okular

My question is very simple: can I setup Textadept and Okular in order to get forward and backward search? Textadept jumps to Okular with Ctrl+R and compiles my ConTeXt file with Ctrl+Shift+R. That is ...
4
votes
1answer
51 views

ConTeXt: Simplifying mathmatrix notation with separatedlist

I find myself using a lot of matrices, and I would like to save myself some typing by using the separatedlist environment from the database module, but I keep getting errors. The following produces a ...
2
votes
1answer
43 views

ConTeXt - Unwanted empty page with doublesided document

When I use alternative=doublesided in \setuppagenumbering I get an extra white page if my document has an odd number of pages. How can I get rid of it? Following I post a minimal example to get the ...
4
votes
0answers
90 views

mathspec or mathastext equivalents for ConTeXt

I have just started out with ConTeXt, and am wondering if there is a way to use fonts that do not have an OpenType math table or a specifically designed math font in the way that mathspec or ...
1
vote
0answers
124 views

Using start/stopxmlsetups with the ConTeXt Lua Interface

How could I write something like the following converter using only the Lua interface? \startbuffer[test] <html> <body> <p>Some stuff</p> <p>More stuff,...
5
votes
2answers
107 views

ConTeXt and Metafun: Framed enumeration with counter as part of overlay

How do you make an enumeration where the enumeration counter appears within a frame decorated with Metafun? The idea is to have something similar to an example on pg. 144 of the Metafun manual: ...
1
vote
2answers
91 views

ConTeXt: Block array with labelled columns

I would like to display a matrix surrounded by square brackets that has row and column labels outside the square brackets. In LaTeX, I would use blockarray like the following: \documentclass[preview]{...
5
votes
1answer
74 views

ConTeXt and Metafun: Using environment variables inside overlay

I would like to draw a custom frame for the framed environment using Metafun. I am currently hard-coding the frame color within the Metafun definition. However, I would like the Metafun frame to ...
1
vote
0answers
95 views

Notes between two columns with multicol

I have been working to get notes (possibly margin notes, but doesn't have to be) in between two columns of text. This question has proved useful, however it works with the twocolumn option for the ...
5
votes
1answer
123 views

Opentype features in fallback math font (e. g. EB Garamond) in ConTeXt

Preamble: In a document I want to use EB Garamond for both text and maths and I don't want to install anything that doesn't come with TeX Live (i. e. no Garamond Math and no URW Garamond). So here's ...
4
votes
1answer
72 views

Defining whitespace before or after a figure or table in ConTeXt mkiv

I am having trouble defining the whitespace before and after an xtable (or a figure for that matter) in ConTeXt mkiv. No matter how I set spacebefore=, the result is the same. Here's a MWE showing my ...
3
votes
2answers
96 views

Saving values for a second pass compilation

How can I save values (states) to be used on a second pass compilation? For example, look at this simple example: \definecounter[foox] \setcounter[foox][1] \definestartstop [foo] [before={\...
3
votes
1answer
114 views

How can I use IPA (International Phonetic Alphabet) symbols in ConTeXt

I want to use IPA (International Phonetic Alphabet) symbols in ConTeXt but don't know how to do it. Please tell me how to do it, if there is a way.
4
votes
0answers
75 views

Adding Alt-Text to Images in ConTeXt

I've been looking at ways to add alt-text to tagged images in PDFs. From the mailing list in this thread, it appears that it should be possible to do \externalfigure[t:/sources/cow.pdf][label=...
0
votes
0answers
58 views

Tagging elements in header and footer in ConTeXt

When generating a tagged PDF with ConTeXt, the content that I have in my header and footer isn't tagged. This makes sense since they are not actually part of the page flow. However, it also causes ...
4
votes
1answer
51 views

Setting page attributes of every page in a generated ConTeXt file

I'm trying to inject page metadata into a PDF generated with ConTeXt so that the pages have their tabbing order set to use the document structure (for accessibility checks). Currently, I can inject ...