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
4 votes
1 answer
32 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
  • 43
2 votes
1 answer
31 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
107 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
50 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
79 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
93 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
90 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
74 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
89 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
171 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
84 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
75 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
53 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
68 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
164 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
188 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
1 vote
1 answer
64 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
57 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
131 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
  • 11.9k
4 votes
1 answer
125 views

Horizontal lists with ConTeXt

What is the ConTeXt equivalent of \usepackage[inline]{enumitem}? See: How to make horizontal lists? I have read https://wiki.contextgarden.net/Command/_setupitemgroup without finding what I need.
user avatar
1 vote
1 answer
56 views

ConTeXt: Cross-reference from macro definition

Background Looking to allow user-defined cross-references and captions. The input XML resembles: <p> <a class="name" data-type="tab" name="ref"/> </p> ...
Dave Jarvis's user avatar
  • 11.9k
3 votes
2 answers
93 views

ConTeXt: Escape hash symbols for use with lpeg replacer

Background Looking to perform a text substitution on arbitrary strings. In the code snippet, the value #a.m. #p.m. value comes from a document. More specifically, the input is an XML document ...
Dave Jarvis's user avatar
  • 11.9k
0 votes
1 answer
42 views

ConTeXt: Remove whitespace between Chapters in Table of Context

I need to remove whitespace between Chapters in Table of Content, but keep the space between frontmatter and bodymatter. Can anyone enlighten me how to do this, please? I am writing book that only ...
Muhammad Rizqi Siregar's user avatar
0 votes
0 answers
107 views

Setuppagenumbering adds blank page if started on odd pagenumber

i'm new in this whole ConText topic and have a question: I want to generate a pdf. file and this is working fine, so far. I have a title page and a table of content. After this, i would like to start ...
KBH10's user avatar
  • 1
1 vote
5 answers
327 views

How do you use Chinese in LuaLaTeX

This is driving me nuts. I need to find a way to have use Chinese characters in LuaLaTeX with the KOMA-script document format, however all the options for typesetting Chinese either force me to use a ...
Adrik Ivanov's user avatar
2 votes
1 answer
82 views

moving conText commands into luacode environment

I am trying to figure out how to move some context commands inside a Lua environment. (I am trying to create a document where most of the content is created dynamically from data pulled from an ...
user3034958's user avatar
1 vote
1 answer
199 views

ConTeXt: Adding a page border with two lines

Recently I've tried to add a simple double page border to a document in ConTeXt (with mtx-context version: 2023.09.26 18:19). E.g. more formal cover pages or documents might use something like that. ...
Marco Mayer's user avatar
6 votes
2 answers
410 views

How is using Lua in a Context document different or easier than using Lua in Lualatex document?

I was reading that context is written mainly using Lua internally. So I was wondering if this means using Lua in a Context document will be much simpler than using Lua in LuaLatex? I assumes the ...
Nasser's user avatar
  • 20.2k
3 votes
1 answer
152 views

converting context to HTML problem. TL 2023. Strange characters show up

I am learning context a little, so I can compare its output to HTML with tex4ht. I know very little about context. I found the most simple example in this answer ConTeXt to HTML conversion for ...
Nasser's user avatar
  • 20.2k
2 votes
1 answer
117 views

How to align multiline math equations in ConTeXt when they are inline?

Since \eqalign no longer works in ConTeXt, I'm trying to replace it with \startalign/\stopalign as described here. It works just fine in display mode, but it doesn't seem to be designed to work in ...
Sergey Slyusarev's user avatar
3 votes
1 answer
111 views

How to specify own equation numbers in context? Compared to align* in Latex?

How can I reproduce this in context? I am using TL 2023 \documentclass[12pt,notitlepage]{article} \usepackage{amsmath} \begin{document} \begin{align*} \sin x &= \int_{0}^\infty \cos x \,dx \tag{...
Nasser's user avatar
  • 20.2k
6 votes
1 answer
241 views

What is the status of long equation automatic breaking in context?

I was reading another breqn problem. Extra letters show up in title with cprotect package And the answer says: In an upcoming version ConTeXt MKIV will introduce automatic linebreaking for formulas ...
Nasser's user avatar
  • 20.2k
3 votes
3 answers
142 views

ConTeXt failed with remember picture

I want to compile this example : \setuppapersize[A4] \usemodule[tikz] \usetikzlibrary[calc,positioning] \usemodule[fullpage][style={cm,empty}] \setupfullpage [margin=0cm] \usecolors[crayola] \...
Aviroum's user avatar
  • 1,514
1 vote
1 answer
154 views

Math Alignment Environments ConTeXt

My original question was a bit broader than this one but I was told it was hard to understand so I'm rewriting it to be more concrete. Let's say I've got the following code \starttabulate[|l|l|] \...
Harry's user avatar
  • 41
2 votes
2 answers
99 views

How do I create a linked reference to a page that is an arbitrary number of pages after a specific label?

I am typesetting a ConTeXt document that contains an addendum of included PDFs (using \copypages). I've added labels to the first page of each included PDF in the addendum using \reference. I would ...
J. King's user avatar
  • 369
2 votes
1 answer
77 views

How can I include an underline in a ConTeXt \setuphead

I am currently using: \setuphead[section] [style=\tfb\bf, color=titlegrey, align=right] How can this be modified to include an underline (or underbar)?
jftuga's user avatar
  • 123
3 votes
1 answer
118 views

ConTeXt : strange behavior in pagella-with-euler

I would like to use the pre-defined font combination pagella-with-euler. However some math glyph (apprently linked with \displaystyle ?) behave strangely, as you can see on this MWE : \setupbodyfont[...
A. Licari-Guillaume's user avatar
1 vote
1 answer
86 views

ConTeXt : combine fonts

I would like to create a font that uses palatino (or pagella) for the text but euler for the math. If I understand correctly the documentation, it should be achievable with typefaces, but I can't get ...
A. Licari-Guillaume's user avatar
1 vote
0 answers
253 views

Middle point in ConTeXt

In French, we sometimes use the middle point "·" as a way to write gender-neutral names (in the same spirit as the use of they/them pronouns in English), e.g : "Bonjour à tou·te·s"....
A. Licari-Guillaume's user avatar
0 votes
0 answers
213 views

Problem with \eqalign in newer versions of ConTeXt

After updating to ConTeXt ver: 2023.05.05 (LuaTeX) I encountered the following problem: \eqalign doesn't seem to work anymore. MWE: \starttext $\eqalign{ a &= b\cr b &= c\cr }$ \stoptext ...
Sergey Slyusarev's user avatar
3 votes
1 answer
123 views

Chicago style in ConTeXt: Firstname and Lastname for second and subsequent authors, and dot after the last author name

The title should sum up my questions: Does ConTeXt have a "proper" Chicago style now? If it does not, please tell me how I can make the second and subsequent authors in the following MWE ...
Muhammad Rizqi Siregar's user avatar
2 votes
1 answer
106 views

ConTeXt: Pass text value into text background graphic

Background Looking to draw dynamically-derived text as a "legend" for a paragraph that spans multiple pages. Version: 2023.07.18 22:07 Problem The text doesn't appear where desired. Code ...
Dave Jarvis's user avatar
  • 11.9k
0 votes
1 answer
217 views

ConTeXt: Round corner for fieldset with title

Background I'm looking to stylize an HTML fieldset-like environment to would allow consecutive "concurrent" sections to appear in the document. Using version 2023.07.18 22:07. Output Example ...
Dave Jarvis's user avatar
  • 11.9k
1 vote
1 answer
84 views

Caption for tabulate

I am using tabulate to make a table that spans a few pages, but I need to place a caption over that table. Putting it inside \startplacetable and \stopplacetable makes it float, which is not wanted. I ...
Muhammad Rizqi Siregar's user avatar
2 votes
1 answer
123 views

From LuaLaTeX unicode-math to ConTeXt typescript

In LuaLaTeX I have this code (Please correct me if I have written something inappropriate.) \usepackage{fontspec} \usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math} \...
juanuni's user avatar
  • 2,007
1 vote
1 answer
81 views

ConTeXt: Align \frame in margin header to get vertical rule in top margin

In ConTeXt I'm looking to make this LaTeX kaobook header. I used \showframe to appreciate the layout elements and what happened to them while changing their dimensions: \showframe \setuppapersize[A4]...
juanuni's user avatar
  • 2,007
5 votes
1 answer
308 views

How to use Helvetica with Euler Math in ConTeXt?

I want to typeset my ConTeXt document in Helvetica 11pt with Euler Math for mathematics. The following seems to work \setupbodyfont[heros,11pt] but I am not sure how to deal with Euler fonts.
user avatar
1 vote
0 answers
259 views

Does anybody know why contextgarden.net is down? [closed]

Since a few days contextgarden.net as well as the context mailing list is not available and seems to be down. Does anyone know what's going on there?
horro's user avatar
  • 171
2 votes
0 answers
214 views

How to use math fonts correctly in ConTeXt

I am using the ConTeXt engine in Texlive 2023 to typeset my article. When I use the XITS Math font, apparently the superscripts of the summation symbols are misaligned, similar to that When I use the ...
青山漫步's user avatar
1 vote
1 answer
77 views

Context non equal space after itemize label in RTL document

Why in this example spaces after ) of inline itemize environment are not equal, and how to fix this? \setuppapersize[A4] \mainlanguage[arabic] \setupdirections[bidi=global,method=one] \setupalign[r2l] ...
Salim Bou's user avatar
  • 17k

1
2 3 4 5
37