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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
72 views

Generate valid PDF/X-1a file with ConTeXt

I want to generate a valid PDF/X-1a file with ConTeXt. I'm currently doing \setupbackend[ format=PDF/X-1a:2001, intent={Coated FOGRA39 (ISO 12647-2:2004)}] When I validate the resulting PDF ...
  • 2,031
1 vote
1 answer
76 views

How to fill the visualcounter countdown counter?

I am trying to fill a countdown counter in order to get something like that But, I did not manage to get it \usemodule[visualcounter] \startTEXpage \usevisualcounter[n=0,last=4,distance=0pt]{...
  • 1,141
0 votes
0 answers
54 views

TeXworks run ConTEXt compiler from Arara

Platform: Linux Mint 20.1, 64-bit, Cinnamon ConTeXt version: 2021.03.05 (MKIV, installed via the Mint Synaptic Package Manager) When attempting to compile ConTEXt source-file on TeXworks via arara, ...
  • 65
1 vote
1 answer
49 views

Tikz arrow not showing

The MWE is as following ( I am using ConTeXt) \usemodule[tikz] \usetikzlibrary{positioning} \usetikzlibrary{shapes} \usetikzlibrary{calc} \tikzset{arrow/.style={-stealth, thick, draw=black!70!white}} \...
2 votes
1 answer
70 views

Customize chapter title in context

A few days ago I asked a question about customizing chapter titles in context (here). My question was not so appropriate although @mickep gave an answer. My intention is to get something like this ...
  • 1,869
3 votes
0 answers
76 views

ConTeXt : TikZ foreach interaction with french module

The \foreach statement in TikZ is shifting the coordinates in my ConTeXt figures ; after some experimentation, I found it to be caused by the two instructions \usemodule[french] and \...
0 votes
1 answer
57 views

Customize number chapter size in ConTeXt

I want to control the size of the chapter number in ConTeXt with some command like LaTeX \anyfontsize. I was checking this answer https://tex.stackexchange.com/a/668592/14423 I was able to modify the ...
  • 1,869
2 votes
1 answer
35 views

ConTeXt: difference between text and label in referenceformat

When we read the documentation page of \setupreferenceformat we can find those two lines: label Label inserted before the left. Mutually exclusive with text. text Text inserted before the left. ...
  • 1,141
3 votes
1 answer
42 views

ConTeXt: math mode font size in startstops

Take a look at this simple document: \definestartstop[test][style={\tfx}] \showgrid \startTEXpage[offset=.5mm] Let's take a look. Math without style: $\pi=3.1415...$. \starttest Math in ...
  • 1,141
2 votes
1 answer
54 views

ConTeXt: horizontal alignment with `t-vim` module

Is it possible to horizontally align t-vim module code blocks? I tried with \{start|stop}alignement like so \usemodule[vim] \definevimtyping[python][syntax=python] \starttext \startalignment[...
  • 1,141
2 votes
1 answer
25 views

ConTeXt: text overlapping title in serried enumeration

Consider the following piece of code \defineenumeration[axiom] [prefix=yes, alternative=serried, text=Axiom, right={.~}, ...
  • 1,141
0 votes
1 answer
101 views

Grid vs Tables to create a catalog like layout

I am trying to figuring out how to setup in ConTeXt a fluid grid to have all the elements of a catalog in a clear and recognizable pattern. The more I read about grid and the more I am convinced that ...
  • 91
1 vote
0 answers
36 views

How to add ConTeXt to an existing Windows TeX Live installation?

I have TeX Live installed on Windows already and have been using LaTeX. I want to try out ConTeXt. But TLShell doesn't seem to have any way to install ConTeXt and trying to run the TeX Live install ...
  • 11
0 votes
0 answers
81 views

How do you draw a basic line with ConTeXt and METAFUN?

I was able to draw a basic line, however I am still have this feeling of having hit another pebcak… 🤔 This is my line: \startMPcode path line ; line := (0mm,0cm)--(5cm,0cm) ; draw line ...
  • 91
1 vote
1 answer
50 views

ConTeXt: Problem with \setupalign and vertical alignment

When my MWE has \setupalign[height], my bottom floats sit correctly at the bottom of the page, but the vertical gap between a heading and the following text can be too big. When I delete \setupalign[...
  • 351
1 vote
1 answer
47 views

ConTeXt: Having problems between a heading and the following text

The text in the screenshot describes my problem on page 1, and there is a different problem on page 2. Page 3 shows the 'right' way to insert a page reference. But I don't want to do it like this - I ...
  • 351
0 votes
0 answers
56 views

How to achieve memoir chapter style in ConTeXt?

I quite like the chapter style on Page 28 of http://tug.ctan.org/info/MemoirChapStyles/MemoirChapStyles.pdf. How can I achieve such a style in ConTeXt? Also, how can I instruct ConTeXt to use a ...
  • 133
2 votes
1 answer
45 views

How to indent a text block in Context, either Nested or with Multiple Levels?

Using Context, I want to be able to indent text blocks from the left, and which go all the way to the normal right margin. It looks like a context equivalent of using adjustwidth from the Latex ...
3 votes
1 answer
71 views

How to achieve line above right-aligned caption in floating figure in ConTeXt?

I would like to achieve, what in Adobe InDesign is called a paragraph rule over a figure's caption, i.e a line on top of the caption, while keeping the caption itself right-aligned (actually aligned ...
  • 745
1 vote
1 answer
54 views

Difficult to setup the text header from \section

I am trying to prepare my document step by step but every time I face a pebcak that blocks me. I am trying to display on the header the section mark, useless to say that whatever I try is not working. ...
  • 91
4 votes
1 answer
41 views

ConTeXt urls in main font

I have a URL like this: \useURL[url1][https://example.com]\from[url1] (This is output from Pandoc.) I would like it to be in the main font for the document, not a mono font. With LaTeX and hyperref....
  • 2,688
1 vote
2 answers
42 views

ConTeXt: How to have a float across the top with some text below in left margin?

I used mikep's technique from ConTeXt: How can I have body text beside a bottom float caption in the margin? but now I want the floating image at the top, with the text in the left margin below. The ...
  • 351
1 vote
2 answers
62 views

ConTeXt: Troubles with postponing

My book has: full-page images and captions on some pages and body text flowing through the other pages. My document is divided into sections, each starting on a new page. I'm trying to place the ...
  • 351
2 votes
1 answer
96 views

How to position a figure with a colored page background on the opposite page of a section head?

After having tried pretty much every idea that I could think of in the last two days, I would like to ask for help here. In a nutshell, I would like to achieve the following in ConTeXt: Position an ...
  • 745
4 votes
2 answers
58 views

ConTeXt: Help with leftbottom layer preset

I have a layer that covers the left margin and the text area. The leftbottom preset places the content too high on the page. It is too high by twice the value of y in the layer (in \definelayer, y=20 ...
  • 351
2 votes
1 answer
49 views

How do I know I properly setup SciTE for ConTeXt?

I am trying to setup SciTE to have an handful GTK editor on Debian for ConTeXt. I think I correctly followed the steps however I don't see any change... Documentation says: while on linux you get: /...
  • 91
1 vote
0 answers
38 views

outdenting a bibliography (negative/hanging indent) in Context

I'm trying to get this outdent/negative effect for enumeration/list/bibliography in Context: first line is full width, and consecutive lines are indented. Thanks in advance Edit 1 Seems like a start ...
  • 55
1 vote
1 answer
65 views

How do I configure variable fonts in Context?

I would really like to use the light weight of a variable font I have (Bahnschrift). Is this feature currently working in Context. I found an example online to make it work but I can't get it to work ...
  • 237
2 votes
1 answer
66 views

reusable section templates and variables

I'm looking for a way to declare a section (a chapter for instance) like that: \startchapter[title={My first interview}][author={Jane Doe}, year={2022}] … \input knuth \stopchapter \startchapter[...
  • 55
2 votes
1 answer
107 views

Grid based layout for a title page

I'm trying to design a title page for an interview. I'd like to feature on the page the title, the interviewee, an introduction text… all on a column based layout. I tried several things: ...
  • 55
0 votes
0 answers
71 views

What is the best way to display arithmetic operations in ConTeXt?

I know the best way would be to use xlop however, even if the result above was optained using it, there is some issues with ConTeXt. Some examples: \opadd[voperator=bottom]{123}{456.2} returns Yes......
  • 1,141
2 votes
1 answer
84 views

Defining \maketitle in a ConTeXt-oriented way

I went on the wiki page for defining titles in ConTeXt, and I already have a "LaTeX-like" solution working (paragraph "In ConTeXt: A more reusable solution"). However, I also read ...
2 votes
1 answer
58 views

ConTeXt: Putting a float in the margin upsets page layout

My MWE produces the output shown below. On page 2, the body text ignores the layout for the page, and flows below the bottom of the frame, down to the footer. I expected the text to stop at the bottom ...
  • 351
5 votes
1 answer
142 views

ConTeXt: How do align my cows in the margin vertically?

In my MWE, I put 2 cows in the margin. Top cow: I understand why the cow juts above the margin. Can I move the cow down (while still using an \inmargin), so that the top of the cow is at the top of ...
  • 351
2 votes
1 answer
49 views

ConTeXt: Why are my start-stop frames offset to the right?

In my MWE, I place 4 frames on the layer in 4 different ways. The 2 frames from the start-stop versions of the command are offset about 1.5 mm to the right of the other 2 frames. Why? \showframe \...
  • 351
2 votes
1 answer
50 views

Context: how configure style of fields

I am learning how to use pdf's field with Context. Here the code: %\usesymbols [fontawesome] \setuppagenumbering[location=] \setupinteraction [state=start] %\setupbodyfont[utopia,10pt] \...
  • 51
3 votes
1 answer
81 views

ConTeXt: Getting the correct line breaks in a table of contents

I'm using the table of contents mikep described: ConTeXt: Can I exclude entries from a placelist table of contents?. I was inspired to style the sections in the table of contents by Max Chernoff's ...
  • 351
1 vote
4 answers
108 views

Context: a custom chapter title

I am trying to customize chapter title putting the text inside a frame with only the leftframe on. I am thinking at something like that: "1 | chapter". Any suggest will be very appreciate.
  • 51
2 votes
1 answer
81 views

Context: Grid layout, but not for headings, figures, tables etc

How can I have grid layout in Context, but it should not enforce strict grid typesetting for headings, figures, tables etc? Only paragraphs need to be always on the grid. How can I achieve that? ...
  • 23
2 votes
1 answer
42 views

ConTeXt: Can I exclude entries from a placelist table of contents?

I want the structure of my book and the table of contents to be: Introduction chapter Part the first First chapter Second chapter Part the second and so on I also want a so-called horizontal table ...
  • 351
2 votes
1 answer
59 views

Study materials for automatic impagination with Context?

Here is the thing, I am working with a lot of catalogs but we are doing it, in my opinion, the wrong way! It is a mix of ancient catalogs made in Photoshop and newer ones made wrongly in InDesign. In ...
  • 91
2 votes
1 answer
57 views

ConTeXt: How do I do calculations with /nextpage?

This works great \definelayout[\nextpage][new] to set the layout for the next page. How can I set the layout for the \nextpage+2 ? This didn't work \definelayout[\nextpage+2][new] I tried a \numexpr ...
  • 351
2 votes
1 answer
80 views

ConTeXt: How can I have body text beside a bottom float caption in the margin?

I changed mickep's answer at ConTeXt: Need help understanding \setupbackgrounds when layer is postponed to have full-width images across the margin + main text. I fiddled and got the caption to appear ...
  • 351
0 votes
1 answer
108 views

Tufte-style book with ConTeXt

Is there any tufte-style formatting in ConTeXt as a module? I have seen references to \usemodule[tufte] in some documents but I can't find how to use this module in ConTeXt garden site. I'm using ...
2 votes
1 answer
50 views

ConTeXt: Need help understanding \setupbackgrounds when layer is postponed

My goal is to insert a page into the body text with a different layout and with items in a layer. The MWE appears to work fine. See screenshot below. Question 1: \setupbackgrounds … has to be before \...
  • 351
0 votes
1 answer
33 views

ConTeXt: How do I have a box of 2-column text in a layer?

In my MWE, below, I want to have a frame, starting at the left margin, containing 2 columns of text. Instead, it has a column of the right width, but the text does not flow into the second column as I ...
  • 351
4 votes
1 answer
94 views

ConTexT \placefigure locations not working as I expect

I would like help to use ConTexT’s \placefigure. ConTexT seems to ignore some location options. How can I get it to use the options? I’m using ConText LMTX, the current version. I found this post from ...
  • 351
9 votes
2 answers
266 views

Typesetting text and commentaries, with reasonable page-breaking

In any system (I'm open to LaTeX, ConTeXt, plain TeX, OPmac, whatever works), I'd like to typeset four running streams of text—source text, commentary A, commentary B, commentary C—and break them into ...
5 votes
1 answer
81 views

ConTeXt: Macro within URLs

Background URLs are translated from Markdown into document variables that are meant to be typeset as clickable hyperlinks. Problem ConTeXt uses url() to typeset the URL verbatim. Since the URL is a ...
  • 11.3k
1 vote
1 answer
315 views

Using quarto and ConTeXt to generate PDF

I'm new to ConTeXt, I know some LaTeX as I have used it to produce some documents in the past. I'm using quarto to produce some documents and I want to fine tune the PDF by editing .tex output, and ...

1
2 3 4 5
36