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
6 votes
1 answer
212 views
+500

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
  • 61
4 votes
1 answer
143 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
  • 451
25 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,372
0 votes
1 answer
45 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,372
0 votes
0 answers
48 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
45 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
  • 10.9k
3 votes
0 answers
48 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
32 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,372
2 votes
1 answer
73 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
51 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,372
1 vote
1 answer
37 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,372
3 votes
1 answer
68 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
  • 10.9k
0 votes
1 answer
68 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,372
0 votes
1 answer
46 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,372
0 votes
1 answer
51 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,372
1 vote
1 answer
82 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
59 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
  • 10.9k
0 votes
0 answers
74 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
73 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
63 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
92 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
3 votes
1 answer
127 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
  • 571
0 votes
1 answer
56 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
101 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
  • 10.9k
1 vote
0 answers
57 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
72 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
343 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
66 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,382
0 votes
1 answer
76 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
134 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.4k
1 vote
0 answers
46 views

What citation styles are currently supported by ConTeXt?

I'm not sure where to find the latest details, as the manuals and Wiki sometimes contains heavily outdated information. What are the currently supported citation styles that can be used in ConTeXt? ...
user avatar
  • 12.4k
0 votes
0 answers
30 views

How to stop \cite[url] from printing (empty) in ConTeXt?

I have a document in ConTeXt that must use Chicago-Turabian style citations, but as I last checked, only APA is supported. As such, I'm creating my own custom macros that renders the citations in ...
user avatar
  • 12.4k
2 votes
0 answers
124 views

Context: Hanging (outdented) figure caption

I want to recreate a caption similar to the following: Figure 1. Here is my caption text that wraps underneath the figure label. And here a typeset example: I've seen this answer: Is it possible ...
user avatar
3 votes
2 answers
91 views

French footnotes with ConTeXt

How to get french footnotes style : number in baseline with dot in ConTeXt ? my footnote \mainlanguage[fr] \setuppapersize[A4] \starttext This text requires an explanation \footnote{some text}. \...
user avatar
  • 1,382
2 votes
1 answer
156 views

How to create a time line in plain TeX or ConTeXt?

I need to create a time line like this: <----*----*----*--------*----> 1991 1992 1993 1995 It will sometimes skip numbers, e.g. it could go from 1993 to 1995 without having a mark at ...
user avatar
  • 12.4k
0 votes
0 answers
87 views

Trouble installing ConTeXt on windows machine

I was able to download and extract the context installation from this page thanks to @daleif's comment provided in this question. I then extracted the archive in C:\context and ran install.bat and ...
user avatar
  • 1,372
0 votes
0 answers
47 views

Installing ConTeXt on windows machine

I would like to install ConTeXt MKIV on my windows machine. I tried to follow the seemingly official docs for this here, but it looks like all the links to the windows x64 zip files are broken. Is ...
user avatar
  • 1,372
2 votes
1 answer
63 views

hrule in footer, alignment

This is probably some basic stuff, but I can't find the proper way to align a simple \hrule on the right side of the page, above the page number. \starttext \setuppagenumbering[location={footer,right}...
user avatar
  • 33
0 votes
2 answers
90 views

Why and how ulem package disable linebreaking and stretching encountering brace and macro replacement

Descriptions of my questions So, I am doing some hacking which requires me to use ulem package. I found on page 5 of the documentation of this package (dated 2019/11/18) that One important ...
user avatar
0 votes
1 answer
109 views

How can I use Lua's string.len() inside a metapost function?

I am designing pseudo-crosswords for my pupils exercices with the following macro: \startMPinclusions % could'nt achieve using the word string length as a first parameter vardef MotMystere (expr ...
user avatar
  • 2,952
0 votes
0 answers
62 views

How to write short title chapter option in toc

In LaTeX, we can use short chapter title in table of contents or in header like this : \chapter[short title]{My very long long long title} How can we achieve that in ConTeXt ?
user avatar
  • 1,382
1 vote
1 answer
78 views

How to make uppercase roman letters upright in ConTeXt?

Using \setupmathematics[ucgreek=normal], one can force uppercase Greek letter to be upright. How to do the same with Latin letters? The words ucroman and uclatin do not appear on the ConTeXt wiki.
user avatar
0 votes
1 answer
61 views

ConTeXt: \someline breaks kerning rules of font

I found out that \someline (for getting a reference to the line number) breaks the kerning of the font. For example, I want to adjust the kerning between the characters "," and "1",...
user avatar
  • 1
1 vote
1 answer
96 views

ConTeXt: \placeinitial to account for quotation mark

Background In novels, a lettrine is typically a letter. When writing prose, sometimes chapters begin with an opening quotation mark. Problem The quotation mark is stylized, rather than the first ...
user avatar
  • 10.9k
2 votes
1 answer
153 views

Devanagari forms in ConTeXt using Shobhika font

I have encountered a strange problem using the Devanagari font Shobhika in ConTeXt, where the rakaara forms are not formed properly in some glyphs. Here is a sample document I am using to demonstrate ...
user avatar
3 votes
1 answer
97 views

How can I mix a CJK font and other font in ConTeXt?

In XeTex or LuaTex, we can switch sans fonts between CJK and English automatically. How can we do a similar thing in ConText? \setmainfont[]{Optima} \setsansfont[]{Optima} \ifXeTeX \usepackage{xeCJK}...
user avatar
2 votes
2 answers
112 views

Using sans as a default font in ConTeXt Metapost

When using metapost in ConTeXt, I would like to have all my labels in sans by default. Which option can configure it and which environment should I use to pass it (MPinclusions?) I am aware of this ...
user avatar
  • 2,952
1 vote
1 answer
67 views

Not restart section numbering after each part in ConTeXt

I just want to follow section numbers from the previous section. In the example text: \starttext \part{First part} \section{1st section} \part{Second part} \section{2nd section} \stoptext ...
user avatar
2 votes
2 answers
109 views

ConTeXt: How to keep title and table of contents on the same page

How can I tell ConTeXt not to insert a page break before \completecontent? I'm trying to keep A title on the same page as the table of contents: \starttext \startfrontmatter A title \...
user avatar
  • 1,994

1
2 3 4 5
40