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
1
vote
1answer
29 views

Right to left column order in index for arabic with context

I have this MWE the problem I'm facing is columns order which I need RTL but it appear LTR I tried with \setupregister[align=r2l] and with \setupregister[style=\righttoleft] but it didn't succeed \...
0
votes
0answers
41 views

ConTeXt: Cross reference expansion and processing with Lua

I want to process cross-references in ConTeXt/LuaTeX, that is, to do some calculations in Lua with the page and line numbers returned by the \at and \inlinerange commands. But this does not work, as ...
5
votes
1answer
62 views

Setting up math fonts in ConTeXt

This is a basic question but I quite frankly don't really understand how fonts work in ConTeXt. I've looked at the ConTeXt Garden wiki but nothing really clicked, I guess. I'm trying out ConTeXt and ...
3
votes
2answers
63 views

automatic number formatting with ConTeXt

I would like to have calculated numbers automatically formatted, so that my pupils can easily read long numbers in my presentations. I figured out that setupunits combined with units, are quite ...
2
votes
1answer
43 views

What's the problem with \setupdirections in context ? (texlive 2019)

I have this MWE which was working fine on texlive 2018 but with texlive 2019 produce a reversed non connected letters you need to remove \setupdirections command to obtain a correct result. \...
5
votes
0answers
44 views

Is there a ConTeXt equivalent for biblatex crossref?

With biblatex I was using crossref to shorten my .bib files, as can be seen in this MWE \documentclass{article} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @...
1
vote
0answers
36 views

Typesetting part of a publication list [closed]

I found out that I can use \doplacepublicationindeed{Someone2016} to typeset a single publication ahead of time. I can’t figure out how to influence the way numbers are typeset: \def\publistnumber#1{...
1
vote
1answer
51 views

ConTeXt: Defining layout of specific pages

I would like to specify in advance that certain pages are to have different layouts, specifically, that the first page should have a bigger header than the rest of the pages pages. Based on the Wiki ...
0
votes
0answers
41 views

ConTeXt Mk IV : space between main text and footnotetext

I wanted to know if it was possible to change the space between main text and footnotetext (not footnote: i need footnotetext because it does not placing the corresponding symbol in the text). MWE \...
2
votes
0answers
43 views

ConTeXt: line numbering disappears in custom column layout

Line numbering disappears when called inside custom columns defined with defineparagraph. This works fine \defineparagraphs[Colonne][n=2] \starttext \startlinenumbering \input knuth \...
2
votes
2answers
47 views

How to add recursive rows to a table, until they reach the end of the page in ConTeXt?

I have a table in ConTeXt like this: \starttext \chapter{This is a title} \bTABLE \bTABLEhead \bTR \bTD a \eTD \bTD b \eTD \bTD c \eTD \eTR \eTABLEhead \bTABLEbody ...
1
vote
1answer
57 views

ConTeXt: help with footnote

I can't get the note number (not in the text but under the LaTeX footnoterule) inside the text cage: MWE \definepapersize[name][width=16.5cm,height=24cm,] %dimensioni pagina \setuppapersize[name] %...
4
votes
1answer
86 views

Strange behaviour of the btex..etex construct

I have the following code: \starttext \startMPpage def drawtest(expr i) = %i is not used here draw btex dummy etex shifted (0,0); draw btex foo etex shifted (1.5cm,0); draw btex bar ...
1
vote
0answers
108 views

How to typesetting traditional Arabic texts

I was researching how to typeset traditional Arabic texts in LaTeX and stumbled on this research article published on tug.org from back in 2006 (link). Does there exist a more modern/better approach, ...
2
votes
1answer
66 views

How to align text on baseline in MetaFun without using setMPtext?

I want to draw several pieces of text that should be aligned so I need to be able to place these texts according to their baseline. Looking at the MetaFun manual, pages 143-144, it is explained that ...
0
votes
0answers
40 views

AucTeX'sTeX-next-error not catching any errors in ConTeXt

AucTeX's TeX-next-error doesn't display any of the errors listed in the output buffer, only "No more errors". MWE: \starttext \Hello \stoptext % Local Variables: % ConTeXt-Mark-version: "IV" % End: ...
2
votes
0answers
25 views

ConTeXt fails to find SVGs on macOS when space is in directory path

I'm trying to make a PDF of a tex document that references some external SVGs and JPGs. This is the command I am using: context --nonstopmode --batchmode --path=styles main.tex This command creates ...
0
votes
1answer
51 views

Multiple fonts in single metapost page-sized figure

I have a MetaPost figure created in ConTeXt as follows: \starttext \startMPpage draw textext("Foo") shifted (2cm,2cm) ; draw textext("Bar") shifted (5cm,5cm) ; % just to show my figure is ...
4
votes
1answer
66 views

How to print tomorrow's date in ConTeXt?

I often have to display the date in ConTeXt, but not for today, as displayed with \date, but for the next day. How to print tomorrow's date instead? E.g. August 7, 2019
4
votes
0answers
73 views

ConTeXt: Cross References to Column Numbers

In a two-column layout, I need to create references returning the line and column numbers of the target referred to. As there does not seem to exist a column counter, the column numbers displayed in ...
5
votes
1answer
62 views

In ConTeXt, why are my float elements 'overlapping' between columns?

Here is an extract of a document I produced. On the right column, the red background stops for the height the left column table, even though it should not. If I remove the table on the left, then the ...
2
votes
0answers
41 views

How to make a verbatim framed text centered on page?

I use this definition make a box with verbatim text inside. \definetyping[inline][ numbering=file, bodyfont=small, lines=yes, indentnext=auto, before={ ...
1
vote
2answers
82 views

How to create a symbol from a tikz figure in ConTeXt?

I have succesfully drawn a symbol (number in a pentagon) using a TikZ figure with the following code: this is a very very very very very very very very very long text before symbol% \starttikzpicture ...
2
votes
0answers
59 views

ConTeXt: How to have line numbering in a two column layout for one column only?

I am trying to recreate a layout for some dictionary with ConTeXt. It is a two column layout with line numbering between the columns, that is, there is only one numbering for both columns. How can I ...
3
votes
0answers
49 views

ConTeXt: How to remove vertical space before top section headings in columns?

It has gotten that far that I have made a shopping list with ConTeXt… However, there remains one æsthetic problem: There is some unwanted vertical space above those section headings which are located ...
4
votes
2answers
81 views

Equivalent of cancelto in ConTeXt

Is there any equivalent of \cancelto in ConTeXt? I want to cancel math expression with an arrow as in "goes to zero".
4
votes
1answer
78 views

ConTeXt: Number and caption for subfigures (combination)

The ConTeXt way of creating subfigures is using a combination. They seem to support either captions or numbering, but not both. Let's consider the following example: \useMPlibrary[dum] \...
2
votes
1answer
40 views

ConTeXt: Introduce columnsets around chapters

Background The following screen shot shows four uneven columns, which is the desired result: Problem The beforesection and aftersection options to the setuphead command don't seem to have any ...
3
votes
1answer
72 views

synctex not working with ConTeXt MkIV on macOS

I can't get synctex working with ConTeXt MkIV. A .synctex file is generated, but I don't get any syncing in either TeXShop or in Texpad. MkII works. Here are the details: I'm typesetting the simplest ...
3
votes
0answers
53 views

ConTeXt: Automatically insert a command under certain conditions

This is a follow-up to https://tex.stackexchange.com/a/499481/124577. That answer works great (manually as well as automated), but the author noted in terms of automatization "don't use it". So, ...
3
votes
2answers
99 views

ConTeXt: empty line in enumeration

Consider the following MWE: \setuplayout[backspace=5cm] \defineenumeration[example][text=Example,alternative=inmargin] \starttext \startexample One line before \startitemize \item Test \...
3
votes
1answer
50 views

ConTeXt: Allow all floating extreme tables to split across pages

Background Using Pandoc to generate tables that are sourced from an R Markdown document. Problem Pandoc does not have a way to override the code generated for a Markdown table. As such, there does ...
0
votes
0answers
51 views

What are to differences pros/cons for Latex, Luatex, Context, etc? [duplicate]

I have used Latex several times for small papers and thesis' for University. So I know a bit about how to create formulars, tables and stuff. However, I still consider myself a newbie, who barely ...
4
votes
1answer
73 views

Upright parentheses in italic text in ConTeXt

Is there a nice way to automatically turn all parentheses in italic text upright in ConTeXt? In particular i'm interested in a solution which would work with EB Garamond. My current workaround is to ...
2
votes
1answer
48 views

ConTeXt: Left aligned margin content

I'm trying to get my margin content (flush)left aligned, but contrary to all examples and documentation I can find, this does not work: \setuplayout[backspace=6cm,leftmargin=4cm,width=14cm] \...
3
votes
1answer
34 views

How to count how many times a heading appears in a ConTeXt document?

I have a book containing hundreds of activities for teachers. Each activity is designated with \section{Activity title}. \section is never used for anything else. I need some way to count how many ...
3
votes
1answer
54 views

ConTeXt: Heading text surrounded by lines

I'd like to replicate this heading style in ConTeXt: The closest I've come is surrounding a centered text with \thinrules but those are at the baseline of the text instead of horizontally centered ...
0
votes
3answers
103 views

How to create 2 different PDF with the same Context tex source

Is it possible to make 2 (or more) PDF with the same source in Context ? For example, I want to write a booklet with some algorithmics exercise, and a booklet with the solution wrote in Python (and ...
1
vote
1answer
76 views

How to use fontawesome 5 with context?

I have installed mactex-no-gui and it contains context and fontawesome5. > sudo tlmgr install fontawesome5 Password: tlmgr: package repository http://www.pirbot.com/...
3
votes
2answers
78 views

What's wrong with \ifcase in my command?

I'm pretty new user of ConTeXt, for writing my courses. I've wrote a command to generate a titlepage. I want to pass some optionnal parameters. %#1 is used for cover color, %#2 is used for changing ...
2
votes
0answers
33 views

How to automatically search and assign a macro around items from a list in ConTeXt? [duplicate]

Suppose I have a document like this, in ConTeXt: \define[1]\mymacro{{\it #1}} \starttext This is some text. There are some key words in this text, but I need the code to automatically find ...
2
votes
2answers
100 views

How to classify and print only certain items from a register in ConTeXt?

I created many registers in my document like this, which lets me store vocabulary words, using \definevocabulary{word} and then call the list later with \placeregister[vocabulary]: \defineregister[...
0
votes
0answers
48 views

How to write Bangla and Arabic in ConTeXt?

Can anyone give me an example to get the following output using ConTeXt? One can copy and paste relevant text in their ConTeXt: \parindent 0pt \begin{document} এটা কিভাবে হবে? \\ \arab{مَا ...
2
votes
1answer
50 views

ConTeXt: Getting listofpublications to respect current narrower margins

It seems like placing a bibliography using \placelistofpublications does not respect the current margins set by \startnarrower. I can't seem to find the appropriate variable to insert into the margins ...
1
vote
1answer
59 views

ConTeXt: Line numbers in different margins in doublesided document

I'm numbering my lines in a double-sided ConTeXt Mkiv document like so: \usemodule[ipsum] \setuppagenumbering[alternative=doublesided] \starttext \startlinenumbering \ipsum \ipsum \ipsum \ipsum \...
1
vote
1answer
52 views

ConTeXt Standalone install with modules flag fails on Mac OS

I am trying to install ConTeXt Standalone on MacOS (Mojave, 10.14.5) using the instructions at Context Garden's Mac install page. Everything goes fine until the last big step. When I use sh ./first-...
3
votes
1answer
80 views

ConTeXt: How to suppress indentation after setup

Let's say I have a setuo foo, and I always want to suppress indentation for the next paragraph? Is there a way to achieve this? \startsetups foo FOO \stopsetups \setupindenting[yes,medium,next] ...
0
votes
0answers
35 views

Allow page break for many aligned equations (ConTeXt) [duplicate]

When there are many aligned equations so that they cannot fit the rest of the current page, page break is not allowed, and they always start at a new page, giving a lot of blank lines. How to allow ...
7
votes
1answer
106 views

Cannot “remember picture” with TikZ in ConTeXt

In an attempt to connect two inline nodes as I used to in LaTeX, I wrote the following code: \usemodule[tikz] \starttext \starttikzpicture[remember picture] \node (A) {Node 1}; \stoptikzpicture ...
3
votes
0answers
114 views

ConTeXt XML: Produce PDF and cleaned up XML

I have an XML file with some elements that should be typeset right-to-left. I use ConTeXt directives to change the typesetting direction. But our web viewer does not seem to like those injections. Is ...