Skip to main content

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
35 views

\mathbb{\gamma} and \mathbb{\pi} are swapped in ConTeXt

In ConTeXt, \mathbb{\gamma} outputs a pi symbol, while \mathbb{\pi} outputs a gamma. This seems to be a ConTeXt issue, not font-related. What should I do? \startTEXpage[offset=5pt] \m{\mathbb{\gamma\...
Inverted Pastry's user avatar
5 votes
1 answer
264 views

What has become of the m-ch-en package?

I have a not so old document (5 years) that had lots of chemical formulas written with the m-ch-en package. It doesn't compile anymore because the m-ch-en.sty file can't be found. CTAN seems not to ...
Alain Bertrand's user avatar
1 vote
1 answer
38 views

Setting placehead=empty still inserts the inter-paragraph whitespace

Consider the following code: \setupwhitespace[big] \setuppapersize[S4] \definehead[MyHead][subsection][page=yes,placehead=empty] \setupheadertexts[] \setupheadertexts[MyHead][\userpagenumber] \...
Ruifeng Xie's user avatar
2 votes
1 answer
57 views

How can I modify mathfunction textstyle?

One can define a new mathfunctions with \definemathfunction[name][opts] However, I haven't found a way to change the style of the attached text. Suppose I want to define a new mathfunction called ...
q6tDCWto's user avatar
  • 169
2 votes
1 answer
68 views

Conditional layouts based on page number & total of pages in ConTeXt

I've been writing a small module where only the first page shows the header and only the last one shows the footer (and if the document has only one page it shows both), so for example when it has ...
acidrums4's user avatar
  • 438
3 votes
1 answer
76 views

ConTeXt: excessive line spacing with columns and mathalignment

\starttext \subject{without columns} \startformula \startmathalignment[n=3] \NC a \NC = b+c \NC = d+e \NR \NC a \NC = b+c \NC = d+e \NR \NC a \NC = b+c \NC = d+e \NR \...
q6tDCWto's user avatar
  • 169
2 votes
0 answers
63 views

Draw a multi-page leftframe (with e.g. \defineframedtext)

In ConTeXt, I want to typeset an "excurses" description with a colored left frame. It spans about multiple pages and contains footnotes. I, however, did not get it to work properly. Here is ...
gerion's user avatar
  • 237
3 votes
1 answer
111 views

Hooking into ConTeXt's shipout routine

I read somewhere on this stack that \installshipoutmethod{myshipoutmethod}{ \commandOne \commandTwo ... \commandN \invokepagehandler{normal} } \setuppaper[method=myshipoutmethod] ...
Harry's user avatar
  • 101
2 votes
0 answers
77 views

Running the first Context program

After some effort I managed to install Context on my Windows 11 laptop. I am trying to compile the Doc01.tex program: \setuppapersize[A6] \starttext \startsection[title={Testing ConTeXt}] This is my ...
Tomy's user avatar
  • 21
7 votes
2 answers
182 views

MetaPost: Get text width in a narrower environment

Background Using MetaPost, I'd like to account for a \framed environment being nested inside of a \startnarrower environment. When outside the narrower environment, the MetaPost code renders as ...
Dave Jarvis's user avatar
  • 12.4k
0 votes
2 answers
86 views

TeX/Context format of sections and subsections

In the documentation of context I like how sections and subsections display. Notice : the text (section head) has some color there are an underline with some color and thickness the section and ...
Moez K's user avatar
  • 125
7 votes
1 answer
247 views

How to invoke italic correction in ConTeXt LMTX?

Yesterday, I started diving into ConTeXt LMTX and I am already noticing a behavior I did not expect when it comes to italic correction. What is even more frustrating is that I am not able to find any ...
Vladimir's user avatar
  • 909
1 vote
1 answer
134 views

(ConTeXt) Github ConTeXT Garden presentation example github link is extremely confusing, can I get help on how to understand it or another template?

So what I tried doing as a complete novice to ConTeXt was try to figure out how to make document, i come from LaTeX where I am also a novice and I was able to make an AI generated (not entirely but it ...
Ferrius Undermine's user avatar
2 votes
2 answers
61 views

ConTeXt: First use and subsequent use of acronym

I am trying to use acronym in ConTeXt that differs between first-time use and subsequent use. First time use should be in full, e.g., USB (Universal Serial Bus), but subsequent use will simply be USB. ...
Muhammad Rizqi Siregar's user avatar
2 votes
1 answer
49 views

ConTeXt: Rotating table sideways

I am trying to rotate my table. I am using \startplacetable, but when I appended [90] to \startplacetable[90], it did not rotate and changed my caption instead. Here is the (non-working) MWE. \...
Muhammad Rizqi Siregar's user avatar
2 votes
2 answers
135 views

ConTeXt: Cannot use Charter and other fonts for math

I want to typeset mostly text with about four math formulae in Bitstream Charter font. Here is the MWE: \definefontfamily[mainface][rm][charter] \definefontfamily[mainface][ss][DejaVuSans] \...
Muhammad Rizqi Siregar's user avatar
1 vote
2 answers
114 views

ConTeXt won't find my fonts

I would like to use my own local fonts in my ConTeXt documents. They are stored in /usr/local/share/fonts/ like so: ├── cooper │   ├── Cooper-BlackItalic.otf │   ├── ... ├── Vollkorn │   ├── Vollkorn-...
impresso's user avatar
2 votes
2 answers
71 views

Page Layout with Image in the bottom

This is a layout question similar to Position an image on a page Obvious solution did not work \useMPlibrary[dum] \showframe \starttext \setuplayout[bottomthird] [bottom=0pt, bottomdistance=0pt, ...
EvgeniySharapov's user avatar
2 votes
1 answer
87 views

Position an image on a page

Currently I have a following page \useMPlibrary[dum] \showframe \tracingall \starttext % layer for the whole page \definelayer[picbg] % name of the layer [x=0mm, y=0mm, % from upper ...
EvgeniySharapov's user avatar
1 vote
1 answer
77 views

Placing images and environment side by side

I am working on a document using ConTeXt that need to have page layout similar to the picture The pictures illustrate steps that are provided in the itemized environment. How could be approach it? I ...
EvgeniySharapov's user avatar
2 votes
1 answer
85 views

formatting numbers in ConTeXt

I don't know if this question is asked before. If so please show me the link. With LaTeX, siunitx do the job. I type \num{12545} the result is 12 545. How to do the same thing with ConTeXt?
Aviroum's user avatar
  • 1,556
2 votes
1 answer
110 views

How to properly input mp files in MetaFun?

In my ConTeXt project I have a long .mp file that I want to divide into several sub-files and make it library-like. For that purpose I load the initial file with \startMPinclusions input path/to/...
q6tDCWto's user avatar
  • 169
1 vote
1 answer
60 views

Adding a blank space after the end of an item in ConTeXt

How do you define an equivalent of an item in ConTeXt and then add specific vertical space after typing it? In general how to apply a commmand after \item ,\sym etc? For example i have this MWE: \def\...
seyal's user avatar
  • 67
4 votes
1 answer
94 views

ConTeXt: Use Figure and initial in the same parapraph

I would like to get placing both an intial and a figure in a paragraph working. I am using the following MWE in this question: \mainlanguage[de] \useMPlibrary[dum] \setupinitial[n=2] \starttext \...
guemax's user avatar
  • 170
1 vote
1 answer
102 views

Redefining special commands in ConTeXt

i want to use itemgroup for typesetting side by side poems, this MWE works well: \defineitemgroup[myPoem] \starttext \startitemgroup[myPoem][horizontal,two] \startitem first sentence \stopitem\...
seyal's user avatar
  • 67
0 votes
0 answers
119 views

ConTeXT : unable to run it

I am new to ConTeXt (but user of LaTeX). Whatever IDE I use, I get the error message : ..."formats/luametatex/cont-en.fmt' failed with bad 'version id' data". My current version of ConTeXT ...
Jean-Louis Brabant's user avatar
5 votes
1 answer
154 views

ConTeXt equivalent for \textcommabelow (e.g. a t-comma)

In LaTeX, writing a t-comma (not to be confused with a t-cedilla) can be written using \textcommabelow{t}. What is the correct way for entering a t-comma using ConTeXt? Unfortunately, the official ...
guemax's user avatar
  • 170
0 votes
1 answer
81 views

The Theatre Ticket [closed]

\begin{tikzpicture}[scale=0.8] \draw[->] (0,0) -- (10,0) node[right] {Quantity}; \draw[->] (0,0) -- (0,10) node[above] {Price}; \draw (2,8) -- (8,2) node[midway,below] {Demand Curve}; \draw (1,9)...
October's user avatar
1 vote
1 answer
52 views

How to make hyphen not be left aligned in ConTeXt in Vietnamese?

I have a weird issue regarding hyphen. When I write using hyphens in Vietnamese, the hyphen sometimes is left-aligned. Changing fonts replaces the hyphens that are error but not remove them completely....
Adrik Ivanov's user avatar
2 votes
2 answers
150 views

Lua socket errors when trying to compile basic ConTeXt documents

Note: I am not entirely sure whether this question is appropriate for the TeX Stack Exchange as this seems to be an issue with my TeX Live installation. But I suppose that the people here would ...
Runxi Yu's user avatar
0 votes
2 answers
116 views

How to add some vertical space in ConTeXt

In LaTeX, I used this: Some text\\[1pt] Some more text. In ConTeXt, I cannot find a way to do the same thing. Somebody suggested using a blank, but then the second line is indented for me, and starts ...
Arkadiy Ageyev's user avatar
4 votes
1 answer
77 views

ConTeXt: Switching font for both \title and \subject

I am trying to change the font for two levels of headings, \title and subject in ConTeXt. Although the code for changing the font for titles is not different from the one for changing the font for ...
guemax's user avatar
  • 170
2 votes
1 answer
54 views

ConTeXt: How do I achieve an expection to the styling in an \environment?

DISCLAIMER: I'm newbie to ConTeXt. I started learning yesterday by spending a 3 hour train ride reading the Not So Short Introduction by Joaquín Ataz-López. I am also not a student or doing this in an ...
meh's user avatar
  • 131
4 votes
2 answers
129 views

How to make headings use lining figures but leave the main text alone?

I have this problem, I know how to specify a font feature. But I don't know how to limit it to only the header portion of the document. Here is the code: \definefontfamily [brill] [rm] [Brill] \...
Adrik Ivanov's user avatar
4 votes
2 answers
67 views

ConTeXt: Escape percent sign in \type command inside a tabulate

I'm quite new to ConTeXt and am using \type{...} inside a cell of a tabulate table. I would like to print a % percent sign, but cannot manage to do so. Using the plain percent sign causes error which ...
Achim's user avatar
  • 185
0 votes
1 answer
101 views

How to make Brill use lining figures in ConTeXt?

There's another question but it uses regular LaTeX instead of ConTeXt. I've tried but idk how to make this font have lining numerals. I checked via an online website to see that it is possible. \...
Adrik Ivanov's user avatar
1 vote
0 answers
117 views

How to compile with context without having to re-type the filename in the prompt?

I would like typeset files with ConTeXt to streamline a document production pipeline, but the context script does not work as advertised in the Not So Short Introduction to Context. It leaves me ...
Alloxxa.DF's user avatar
6 votes
0 answers
109 views

Show appendix as "Appendix A" instead of "Chapter A" in references

Here's a ConTeXt document that uses Aditya's solution to "Cleveref-like command in ConTeXt": \definereferenceformat[cref][label=*] \setuplabeltext[chapter=Chapter~,appendix=Appendix~] \...
Ram's user avatar
  • 61
2 votes
1 answer
164 views

How to show reference's page in internal links

I'm using ConTeXt as a PDF engine with Pandoc, to convert from Markdown to PDF. I use pandoc-crossref to process internal cross references, for example "as seen in section 2.1". Is there a ...
Josí Neto's user avatar
3 votes
1 answer
105 views

Cross-referencing Issue in ConTeXt

Perhaps this is a silly question, but I’m learning to use ConTeXt and I haven’t been able to get \reference, \goto, \in, and \at to work as I want. The problem is that, when I have a \reference and ...
Jonathan C's user avatar
0 votes
1 answer
229 views

Error Context (latex)

Good morning, I have the following problem on 3 different computers: Compiling a preamble in TexWorks (Ver.0.6.8) using the ConTeXt(LuaTex) library, encounter the following error: The control sequence ...
Fabio De Reggi's user avatar
2 votes
1 answer
94 views

Error with ConTeXt and pgfplots 3d

I have an old document I'm trying to recompile, and a 3d plot doesn't work anymore. I reduced it to the following MWE : \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=1.18} \starttext \...
A. Licari-Guillaume's user avatar
1 vote
2 answers
88 views

ConTeXt: Simple project structure does not open component file

I have a very simple ConTeXt project structure as shown, based off of the 2013 manual: /main.tex \startproject main \environment layout \product handbook \stopproject /layout.tex \startenvironment ...
hjk321's user avatar
  • 21
2 votes
1 answer
86 views

ConTeXt: use chapter headings in a column set

I recently started to use the column sets \startcolumnset[TwoColumns] in a document. But in combination with chapter headings. I failed to restrict the start of the column lines below to the second ...
Marco Mayer's user avatar
1 vote
1 answer
82 views

ConTeXt: Placing images with consistent height on grid

While creating a layout for a brochure, I started to think about placing images on a page with a consistent height. I've got a bunch of 15x10cm images ready as PDF files. In a DTP application I would ...
Marco Mayer's user avatar
3 votes
1 answer
194 views

Circuitikz and transformer core in ConTeXt

I discover that circuitikz is available in ConTeXt, and since it is way more complete than the circuits.ee.IEC tikz library, I am considering switching to it. However, I can't display a transformer ...
A. Licari-Guillaume's user avatar
3 votes
2 answers
201 views

Circuitikz and perpendicular coordinates in ConTeXt

I have a compilation error when I try to use perpendicular coordinates in circuitikz with ConTeXt : \usemodule[tikz] \usemodule[circuitikz] \ctikzset{current=european, voltage=european, resistor=...
A. Licari-Guillaume's user avatar
2 votes
1 answer
78 views

Footnote distance from bodytext in ConTeXt

I removed the footnote line separator using this: \unexpanded\def\mehrule{\blackrule[length=0pt,color=black,height=0pt,depth=0pt]} But the whitespace between footnote block and text block appeared to ...
Muhammad Rizqi Siregar's user avatar
0 votes
1 answer
74 views

Minimal working example for ppchtex

I want to use ppchtex in Latex. In the file https://tug.org/pracjourn/2010-1/braslau/braslau.pdf there is the following minimal example: \documentclass{article} \usepackage{m-ch-en} \begin{document} \...
Alain Bertrand's user avatar
3 votes
1 answer
139 views

ConTeXt: Conditional check of text with dollar symbols

Background An XML document contains TeX elements in inline- and paragraph forms: <p>Inline: <tex>$E=mc^3$</tex></p> <p><tex>$$E=mc^2$$</tex></p> I'd ...
Dave Jarvis's user avatar
  • 12.4k

1
2 3 4 5
37