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
3 votes
0 answers
37 views

Translate literal words for the \convertnumber command

I need to get a verbal form of simple numbers \mainlanguage[english] % english spanish - works % danish dutch - doesn't work \setupbodyfont[dejavu] \starttext The current ...
user avatar
2 votes
1 answer
27 views

Sequential chapter numbering by text

The structure of my document consists of parts and chapters. When a new part is added a chapter counter is reset and a chapter numbering starts from 1 again. \setuphead[part] [ page=no, ...
user avatar
1 vote
1 answer
50 views

ConTeXt: String substitution to include macro

Background A Markdown document uses certain strings that are to be typeset in a special way. In this case, we'd like to typeset a.m. and p.m. as small caps wherever that text appears in the source ...
user avatar
2 votes
1 answer
47 views

ConTeXt failed with units module

I update ConTeXt regularly. unfortunately units module does not work. \usemodule[units] \starttext 50 \Milli \Meter. \stoptext log file : resolvers | formats | executing runner 'run luametatex ...
user avatar
  • 1,404
1 vote
1 answer
38 views

Setup a distance between columns in tabulate for ConTeXt

I need to create a simple block showing recipe content. A tabulate seems as the easiest way to do that. Below is an example of what I mean \starttext \def\leaderfill{\leaders\hbox to 0.3em{\hss.\hss}\...
user avatar
1 vote
1 answer
53 views

ConTeXt: Syntax highlighting of source code within XHTML documents

Background Looking to apply syntax highlighting to source code snippets embedded within XHTML code elements, demarcated with a class attribute to indicate the language. Using: mtx-context | ...
user avatar
2 votes
1 answer
30 views

Context: Remove Blank Line Below Sub-Section

I'm learning how to use Context, and I'm having trouble creating a sub-section heading without a blank line underneath it. I'm using a baseline grid and want to continue to do so. Is there a way to ...
user avatar
1 vote
1 answer
45 views

ConTeXt - weird vertical alignment in multicolumn enumeration

When I type math in a multicolumn enumeration, there is a gap in vertical alignment if I use fractions or matrices. \startitemize[ columns, three] \item $\frac{x^2-4}{\sqrt{x}-\sqrt{2}}$ \item ...
user avatar
4 votes
1 answer
52 views

How can I pull a specific set of characters from another font in ConTeXt?

I'm using ConTeXt to typeset a long document, and I'm using the libertinus font. However, \mathcal{A} produces 𝒜 rather than a calligraphic 'A', like it does with other fonts. I can get a good ...
user avatar
  • 51
2 votes
2 answers
64 views

ConTeXt: Set up external figure for particular image type

Background A document has a mix of SVG and PNG images. Problem Changing the parameters for \setupexternalfigure affects both SVG and PNG images. Code Consider the following code: \setupexternalfigures[...
user avatar
1 vote
0 answers
62 views

TikZ equivalent cover background of METAFUN

I have this code % cover in METAFUN \startuseMPgraphic{cover} StartPage ; fill Page withcolor white ; pickup pencircle scaled 2mm ; path p ; p := tensecircle(1cm,.75cm,.15cm) xsized(PaperWidth-2cm) ; ...
user avatar
2 votes
1 answer
71 views

Defining a new section with ConTeXt

I'm very new to ConTeXt. How can I create my own "mini section", about the size of a paragraph but not as big as a part? I want the first word in this self-defined section to begin with a ...
user avatar
  • 21
0 votes
0 answers
44 views

ConTeXt with TeXworks

I just downloaded a recent distribution for ConTeXt. I also have TeXworks installed on my Windows laptop. Can anyone give me a step-by-step guide on how to set up the TeXworks editor to compile ...
user avatar
  • 21
1 vote
0 answers
71 views

Get page edges coordinates in Metapost and ConTeXt

I have written several macros for my projects using TikZ. Several of them need to be aware of the page edges and margins. For example, this is a small macros I have written to draw rectangles from the ...
user avatar
1 vote
1 answer
53 views

Pass text from console to context

I want pass text from console to context, like this echo "\starttext Hello, World! \stoptext" | context - but this does not work. It seems that context just could be invoked against a file (...
user avatar
0 votes
0 answers
33 views

Simplefonts module issue with texlive 2022 (context)

With old versions of texlive I had no problem with simplefonts module but after installing the new version (texlive 2022) errors appears when adding the module tex error > tex error on line ...
user avatar
  • 16.1k
4 votes
2 answers
117 views

ConTeXt: Text wrapping around images with complex outline

I'm a very beginner on ConTeXt, coming from Scribus and InDesign. I would like to know if is it possible to get a text flowing around an image with complex/winding border on ConTeXt as in the images ...
user avatar
1 vote
0 answers
56 views

Small caps italic as a separate font in LMTX

I have a font that has small caps and small caps italic as separate font files. What I have now: \starttypescript [sans] [dtl-documenta-sans-t] \definefontsynonym[Sans] [name:dtldocumentasanst][...
user avatar
  • 529
3 votes
0 answers
85 views

Grid layout offset adjustment and non-uniform columns in LMTX

I'm trying to emulate the style of Jean-Luc Doumont's presentation. Here is his slide, with a grid overlay (please open in a new window of image viewer as the gridlines are hard to see on tex....
user avatar
  • 529
8 votes
3 answers
338 views

Adding Column Rules in ConTeXt's columnsets / pagecolumns

This is my first time playing with ConText and, while I'd like to think I have some decent programming experience, TeX code is something I've never worked with before (and am sufficiently intimidated ...
user avatar
  • 81
4 votes
1 answer
172 views

ConTeXt: How to change parts and chapters pages background color with MetaFun?

I am trying to reproduce something like this for parts and chapters with MetaFun: Placing the content on the page is simple so I am trying to get the colored background. However I do not know how to ...
user avatar
  • 495
26 votes
1 answer
4k views

Why are ConTeXt and LaTeX two different typesetting systems instead of joining forces?

I've spent quite a bit of time over the last few days getting up to speed with current developments in the TeX world. Like all of us here I sometimes get frustrated with the clunky and outdated nature ...
user avatar
  • 1,424
0 votes
1 answer
54 views

Filling up a whole page with dummy text using m-ipsum module

Warning, I'm crossposting from the ConTeXt mailing list I am trying to fill up an entire page with dummy text using m-ipsum. Unfortunately, it looks like m-ipsum only allows up to 12 lines, if I ...
user avatar
  • 1,424
0 votes
0 answers
71 views

Is there a ConTeΧt text editor and compiler on ipad? Do TeΧ editors work for ConTeΧt?

Is there a way to write in ConTeΧt on ipad and compile it (see a pdf preview of the code)? It’s not ok to use just a text editor, because it doesn’t give you the preview. I found some apps that let ...
user avatar
1 vote
1 answer
61 views

ConTeXt: Full text justification using \definefont

Background Looking to make speech bubbles autofit the text using ConTeXt LMTX. Problem The right padding on the framed text changes depending on whether the macro for \definefont is used. In the ...
user avatar
3 votes
1 answer
63 views

ConTeXt: Additional arguments in enumeration or block

I'm trying to convert my exercise / test sheets from LaTeX to ConTeXt and a lot of features are already included, thus it is far less work than I expected. Especially the block system in combination ...
user avatar
  • 53
0 votes
0 answers
38 views

Command line based spellcheckers for ConTeXt files on Windows

Note: I'm crossposting from the mailing list and Reddit I'm currently using ConTeXt on a windows machine. I'd like to incorporate some sort of automated spell-checking in my workflow. I've seen that ...
user avatar
  • 1,424
2 votes
1 answer
97 views

ConTeXt: Equivalent to \linewidth

I'm thinking about switching from LaTeX to ConTeXt. I'm using LaTeX extensively to create teaching materials with an extended version of xsim. There are a lot of things I would need to port, one of ...
user avatar
  • 53
0 votes
1 answer
55 views

Breaking url into multiple lines results in broken link in rendered PDF

In a previous question, and with @Aditya's help I was able to break up URLs into multiple lines in my bibliography source file and still get the link to work. Now, I would like to do the same in my ...
user avatar
  • 1,424
1 vote
1 answer
45 views

Clickable link for simple PDF document using ConTeXt

I would like to get a clickable link in my PDF using ConTeXt. Here's what I have tried so far: \setupinteraction [state=start] \starttext \useURL [myUrl] [www.google.com] \goto{link}[myUrl] \...
user avatar
  • 1,424
3 votes
1 answer
124 views

ConTeXt: Typeset emojis and regular text

Background Using LMTX to typeset an XML document that has been converted from Markdown. Users may type emojis directly into the document without using TeX macros. Problem The emojis don't appear when ...
user avatar
0 votes
1 answer
70 views

line continuation in .bib file URL for cleaner bibliography code

Original question Suppose I have the following in a bibliography file: @misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, journal={{ProofWiki}}, year={2021}, ...
user avatar
  • 1,424
0 votes
1 answer
47 views

Getting a simple bibliography to work in ConTeXt

I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far: test.tex \usebtxdataset[bibliography.bib] \starttext \startbodymatter See \cite[proofwiki] \...
user avatar
  • 1,424
0 votes
1 answer
64 views

mathcal generates error in ConTeXt

I've already asked this in the ConTeXt mailing list but I also drop it in here because I'm more likely to get a quick response: I am using pandoc to covert a file called test.tex from LaTeX to ConTeXt....
user avatar
  • 1,424
1 vote
1 answer
93 views

How to add background color to the typing environment? [duplicate]

How can I add background to verbatim code blocks without adding extra vertical space? I am writing in Pandocs markdown, then converting to .tex with pandoc.exe -t context, then to PDF with context.exe....
user avatar
  • 11
0 votes
1 answer
64 views

ConTeXt: Limit number of words

Background Every chapter title contains multiple words, but only the first two words are to be used elsewhere (e.g., page header). Problem I'm looking for a general word splitting solution that can ...
user avatar
0 votes
0 answers
78 views

Adjusting position of horizontal line in fraction

My inline fractions are typeset as below but to my eyes the line is a bit too low? Is it possible to raise the line y position a bit?
user avatar
  • 101
1 vote
1 answer
97 views

How to remove all line spacing in ConTeXt

I am trying to remove all spacing between lines (be it from paragraphs, lineheight or line spacing) with setupinterlinespace, but I am not quite successful: The left illustrates the default, the ...
user avatar
  • 125
2 votes
1 answer
81 views

Dynamically defining metafun positional variables with \structurelistuservariable in ConTeXt

Following on from this question, I am now trying to achieve the same effect (drawing with metafun in the TOC, from the section number to the edge of the page) using positional overlays instead. ...
user avatar
  • 65
4 votes
1 answer
117 views

Drawing from a framed overlay to the page edge in ConTeXt and Metafun

Using ConTeXt for typesetting and metafun to draw, I would like to create a custom colored overlay for my table of contents. I want to fill a colored rectangle for certain TOC entries that stretches ...
user avatar
  • 65
4 votes
1 answer
144 views

Generate PDF/A with ConTeXt

I'm trying to generate valid PDF/A via ConTeXt, but the verapdf validator is reporting an error. My input document is \setupinteraction [title={TITLE}, author={AUTHOR}] % attempt to generate PDF/...
user avatar
  • 616
0 votes
1 answer
59 views

How can \externalfigure[] load a filename based on section markings?

I'm working on a somewhat complex layout that uses ConTeXt's layers to lay out headers and footers with text and border graphics. I am trying to reuse my layer definitions by making them responsive to ...
user avatar
3 votes
1 answer
118 views

ConTeXt: Dynamic document metadata variables

Background Looking to convert XHTML metadata into document variables. Code The parts include: XHTML metadata -- includes user-defined metadata XML setups -- applies XML filters Metadata setups -- ...
user avatar
1 vote
0 answers
64 views

\thanks inside author in section - context

I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki here and here. However, one thing that bugs me is that any note ...
user avatar
0 votes
1 answer
121 views

Remove extra space from image context converted from svg to pdf

I have a Context text with a svg image. As expected, Context converts the image to pdf and includes it, but leaves a lot of empty room in the exported pdf. How do I get rid of this empty space? mcve....
user avatar
  • 195
3 votes
1 answer
406 views

Minimal Testing Environment For LuaMetaTeX

The new LuaMetaTeX typesetting engine praises itself as being "lean and mean", but the ConTeXt package that it comes shipped with is actually pretty obese (around 270 MiB when installed). To ...
user avatar
  • 49
1 vote
1 answer
57 views

Dot after author name in Chicago style - Context

How do I put a dot after the author (first) name in the bibliography? \startbuffer [bib] @article{fulano, author = "Fulano de Tal", title = "Um título chamativo", journal =...
user avatar
0 votes
0 answers
70 views

ConTeXt module like xlop package in latex

Is it possible to do arithmetic operations like xlop package in latex with context ? \documentclass{article} \usepackage{xcolor} \usepackage{xlop} \opset{% columnwidth=1.5em,% operandstyle.1.1=\...
user avatar
  • 1,404
0 votes
1 answer
88 views

Arabic Fallback Font in Context

My goal is to write small chuncks of Arabic/Hebrew text (words, paragraphs) within a Latin-alphabet language. I've been trying to set an Arabic fallback font using various examples from here, but so ...
user avatar
7 votes
0 answers
137 views

How to set BibTeX to display Chicago style in ConTeXt?

I heard that ConTeXt was updated to include Chicago style, so I tried this code: \setuppapersize[A4] \startbuffer [bib] @Book{ball1996, author = {Ball, Larry}, title = {Desert lawmen: the high ...
user avatar
  • 12.5k

1
2 3 4 5
40