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
0answers
21 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
38 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
44 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
99 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
53 views

Load System Fonts in Fedora 28 Texlive 2017* ConTeXt? [to be 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] [...
0
votes
0answers
73 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 ...
0
votes
0answers
34 views

ConText: Extreme Tables: keep row groups together on page break

Is there a way to keep rowgroups together on a page break (page break before or after group). In the provided example the page break occurs between B1 and B2. I tried the options split=no but there ...
3
votes
1answer
64 views

ConTeXt: Define command for table

Why is it not possible to define a command to create a table like this? I had no problem doing the same with a list List Command: \define[1]\docListBulleted {\startitemize[before={\blank[small]},...
0
votes
1answer
40 views

TextMate ConTeXt bundle

I am in macOS High Sierra, with TextMate 2 and the (outdated, from 2010) ConTeXt bundle. And I have MacTeX 2018 installed. I tried to compile something and it said that my PATH was something and that ...
5
votes
1answer
107 views

Implement Friggeri in ConTeXt

How would one implement the Friggeri CV1[2] in ConTeXt? I'm new to TeX and have read: ConTeXt Mark IV an excursion Creating a clean presentation style in 40 commits It's in the details For the year-...
2
votes
1answer
59 views

vertically center all slides in ConTeXt with minimal setups

I would like to emulate beamer's centred framed behaviour in my ConTeXt presentation. Thanks to this post, I figured out how to have my (sub)section titles centred. I am also using a makeup for my ...
1
vote
0answers
105 views

Flushing short lines left and long lines right in lines environment

How can I get short lines flushed left and longer lines (which have to be broken in two or more) justified and flushed right in lines environment by using only environment setup options in ConTeXt? ...
5
votes
2answers
56 views

ConTeXt: Retrieve caption of referenced figure

The title pretty much says it... I would like to retrieve the caption of a figure I placed earlier in the document. \starttext \placefigure[][fig:foo]{My caption}{\externalfigure[foo.png]} \input ...
4
votes
2answers
144 views

How to omit numbering in the last page of every chapter

I am writing a fiction work with ConTeXt. Every chapter and my four parts pages begin with their corresponding odd page. I have no problem with every last chapter page containing the text: whether ...
2
votes
2answers
94 views

ConTeXt: Place rules above and below floating figure

I'm experimenting to place a rule above and below a floating figure to achieve the following design. But to no avail. I've tried to place a \blackrule before and after the \placefigure. But that's ...
3
votes
1answer
49 views

ConTeXt: Extend figure into margin with \placefigure

I would like to extend a figure into the margin pretty much as done here in LaTeX: Place figures side by side, spill into outer margin My idea was to place the figure right and make it wider than \...
1
vote
0answers
22 views

TikZ graphdrawing library in ConTeXt throws error [duplicate]

Consider the following example: \usemodule[tikz] \usetikzlibrary[graphs,graphdrawing] \starttext \starttikzpicture \graph { A -> B }; \stoptikzpicture \stoptext While it works in ...
1
vote
3answers
66 views

ConTeXt change number formatting in \defineenumeration

When using \setupenumeration in ConTeXt, is there an equivalent to \setupitemgroup's norepeat flag? I would like my custom enumeration sub levels to follow the pattern of 1) a) b) i) ...
1
vote
1answer
51 views

ConTeXt lua array entries being doubled

I've been trying to write a piece of ConTeXt code that fills in a persistent lua array with variables parsed from the ConTeXt end, but for some reason it appears as though every \question{}{}{} call ...
2
votes
1answer
58 views

ConTeXt passing current counter value to lua

I've been experimenting with ConTeXt and have been trying to create an exam using it. I would like to have an array in lua that holds the weight of each question, and a custom enumeration called "...
4
votes
1answer
84 views

How to load Source Sans Pro Context

I really don't see any proper guide on how to load fonts in Context. There are a lot of different functions for fonts, family and typescript without a proper explanations on how to use them or the ...
13
votes
4answers
401 views

What is the LaTeX equivalent of ConTeXt \testfeatureonce to benchmark performance

ConTeXt provides a macro \testfeatureonce to benchmark performance. The syntax is \testfeatureonce{n}{...} which runs the code in the second argument n times (n is assumed to be an integer) and ...
5
votes
1answer
117 views

ConTeXt: Is there a way to create multi-page code listings?

I am using t-vim module and I would like to format my listings similar to figures with captions, but with the ability to spread them over multiple pages. I can see three ways to do it: Put the \...
9
votes
2answers
183 views

What is the difference between \unexpanded and \protected in ConTeXt?

EDIT: It turns out that \unexpanded in ConTeXt is different from \unexpanded in ε-TeX, so the earlier description doesn't apply. I'll update the question accordingly. From the ε-TeX manual: ...
1
vote
1answer
53 views

Split align over pages in ConTeXt

Consider the following code example: \setuppapersize[A8,landscape][A8,landscape] \starttext \startformula \startalign \NC 1 \NC= 1\NR \NC 2 \NC= 1\NR \NC 3 \NC= 1\NR ...
4
votes
1answer
77 views

Problem in rendering bibliography in ConTeXt

I am using ConTeXt for making report and getting stuck in formatting Bibliography. Currently I am using these categories (via Zotero BibTeX export) @article @book @misc @techreport out of which @...
1
vote
0answers
48 views

ConTeXt: Page break preference between nested itemize environments

I frequently have nested itemize environments that must appear on the same page as the item that they are nested under, such as parts of a question on an assignment or exam. I can't seem to figure out ...
1
vote
1answer
39 views

\page after each item with \setupitemize

I would like to force a page break after each level 1 item of my presentations. How should I set \setupitemize ? This MWE fails : %\startmode[screen] \setuppapersize[S6] \setupitemize[1][standard][...
3
votes
1answer
69 views

Aligning table row at middle

I have this trigonometric table: Their columns are correctly aligned in the middle, but the rows aren't. So, how can I get a row middle aligned text too? Working example is followed: \starttext \...
1
vote
2answers
87 views

ConTeXt: How to reduce the width of a \textbackground environment?

Given A \definetextbackground named blockquote is defined as follows: \setupwhitespace[big] \definetextbackground[blockquote][ location=paragraph, style=italicbold, backgroundcolor=lightgray, ...
7
votes
1answer
101 views

How can I use Context and R together?

I am using conTeXt to create pdfs (I need to use Context rather than any other latex engine because I am using their tagging feature to create pdfs with tagged document trees). I would like to be ...
5
votes
1answer
88 views

Noto CJK font not usable with ConTeXt?

Noto CJK font is an OpenType CJK font developed by Google and Adobe. In ConTeXt, if I write \definefontfamily [myfamily] [serif] [Noto Serif CJK SC] then context will hang on loading the Noto font. ...
2
votes
1answer
59 views

ConTeXt: Split xtables across multiple pages

Background Use extreme tables to split tabular data across pages. Problem The \setupxtable command does not appear to be sufficient to force a table to split across pages. Also, a reference to ...
2
votes
1answer
57 views

ConTeXt: Fill full page with image, disregarding page layout

Background Looking to create a three-column document with images that fill entire pages, while the text has a different page layout. Both the images and the text pages should have the same total ...
0
votes
0answers
31 views

PGFplot select cells from dat file

I want to show a two dimensional bar plot with PGFplots in ConTeXt using multiple .dat files. The .dat files contain a lot of information. I only need 7 rows. Questions: how to select a specific ...
2
votes
1answer
38 views

ConTeXt sectioning alternative inmargin does not respect margins

This is a follow-up to How to imitate `twoside=semi` in ConTeXt?. Basically, I want a single-sided layout with two-sided page numbering. That includes having a wide margin for marginal material only ...
3
votes
2answers
85 views

How to place a logo in the simpleslides module in ConTeXt?

I found simpleslides module extremely suitable for academic presentations, yet I am clueless as how to place a logo in the lower right area of the slides in any of the specified styles. Is there any ...
1
vote
1answer
35 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
54 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
78 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
168 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
51 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
53 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
133 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
63 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
63 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
57 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 ...
23
votes
1answer
358 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. ...
4
votes
2answers
94 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
99 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 ...