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
0
votes
1answer
16 views

Why is my table of contents not appearing with recursive content in ConTeXt?

I am working on a textbook that has a repeated structure for 40 chapters. I set up the TeX file to use \dorecurse to provide that structure, then it uses \input to enter in the data into each section ...
2
votes
2answers
57 views

Simplifying luatex expression in ConTeXt

I use lua in ConTeXt as described here. I have this code which simply prints $a x + b = 5$ where a and b substituted \startitemize[a, columns] \startluacode context.startitem() context.startimath()...
1
vote
1answer
46 views

Columns in Context not aligned

I switched from LaTeX to ConTeXt and I am pulling my hair creating a simple column. When I use a minimal setup like this: \setuppapersize[A4] \starttext \startcolumns[n=3] \input knuth \stopcolumns \...
2
votes
1answer
88 views

ConTeXt t-vim module : add custom keywords

I am using the t-vim module to create Python code blocks. It is generally working well, but I'd like to add some specific behavior to represent console output. For example, in the following code : \...
0
votes
1answer
84 views

ConTeXt : vimtyping and fine setup

I am trying to draw MP backgrounds around Python codes ; I want to automatically call some macros before/after the \startpython/\stoppython pair, so I define another environment to setup/clean. I ...
1
vote
0answers
36 views

Convert a Wiki to the ConTeX book [closed]

I am looking to see if a ConTeX book/document can be generated from an existing Wiki site.
0
votes
0answers
46 views

How to use ConTeXt for HTML book?

I see that there is a question asked about using ConTeXt and a css file to generate HTML files. Converting ConTeXt document to HTML But is there a standard way, or an example, to create an online HTML ...
1
vote
0answers
35 views

ConTeXt: Initial cap with short paragraph

Background Using \placeinitial to make a chapter's first paragraph's first letter slightly larger. Code Consider: \setupinitial[n=2, style=\tfd, location=text] \setuphead[chapter][after={\placeinitial}...
3
votes
0answers
89 views

How to display something different, if already displayed recently, or previously, in ConTeXt?

I am working on a document that needs to use the Chicago-Turabian style, but last I checked, only APA and one other style were supported by ConTeXt. I created the following work-in-progress which gets ...
4
votes
2answers
273 views

ConTeXt LMTX: Offset on page titles with MetaPost

I want to do some silly Metapost stuff with chapter titles, so set a command to begin with: \setuphead[chapter][command=\ChapterTitle] And on that custom command I threw the following to pass both ...
1
vote
0answers
53 views

Reference with environment name context

I can't figure out how to do somethng like this automatically in ConTeXt: Example 1 shows that... Usually, I'd use hyperref package from latex and use autorefname after I have defined my prefixes and ...
1
vote
2answers
101 views

Sum variables and process sign expressions in ConTeXt

I try to generate random exercises: \setvariables[parametres][a=-4, b=2, c=4] \starttext Solve: \startformula \getvariable{parametres}{c} x + (\getvariable{parametres}{a}+2) x = 5 \stopformula \...
3
votes
1answer
54 views

How to create a page reference to another separate document in ConTeXt?

My question is similar to this, but for ConTeXt. I have multiple documents, that are to be bundled as a set (e.g. textbook, workbook, teachers' guide). I frequently need to make a cross-reference to ...
4
votes
2answers
230 views

How to setup ConTeXt to place a blank line between paragraphs?

In ConTeXt, if I have code like this, it just displays the three lines, with no blank space between: \starttext This is a paragraph. This is another paragraph. This is yet another ...
2
votes
1answer
66 views

How to display specific fields from BibTeX in ConTeXt?

Assuming one provides the reference, e.g. \cite{historynow1765}, how can I get ConTeXt to display specific fields for that reference, such as the title, publish date, publish location, author's full ...
0
votes
0answers
63 views

space after proof environment name not right in ConTeXt

I defined a general environment using setupenumerations. Then I defined an example and proof environments that inherited from it. The proof isn't supposed to be a numbered and setting number=no in the ...
1
vote
1answer
39 views

In-line math affecting space after head text of enumeration environment in ConTexT

Sorry if it seems basic but I just switched over from LaTeX. It seems the in-line math affects the spacing after the enumeration environment head named 'Example'. How do I offset this? \...
0
votes
1answer
53 views

Description number as Section.Number

I have this description: \defineenumeration [exercici] [alternative=serried,text={Exercici},stopper={.\space},width=fit] I want to put something like this Exercici 1.1. Bla when I type: \...
0
votes
0answers
66 views

Chemical Package in ConTeXt broken?

I'm using context version 2020.01.30 14:13 The context garden wiki example \usemodule[chemic] \startformula \chemical{2H_2,+,O_2,->,2H_2O} \stopformula yields and taking it apart: \startformula \...
1
vote
1answer
147 views

QR code in ConTeXt

In LaTeX there is a the qrcode package. Is there any way to create a qrcode in ConTeXt? Something like this: \qr[1in]{Your text to be QR encoded here}
1
vote
1answer
47 views

How to write - with diaresis in ConTeXt

I would like to know how to place a diaresis above a minus or hyphen: \"{a} would give ä but how to get the equivalent of \"{–} as needed for typing german language-learner texts?
1
vote
1answer
69 views

Context Metadata pdf

After visiting this question this question I was wondering where I could find all the fields, to be able to edit the pdf metadata generated with ConTeXt
0
votes
0answers
50 views

ConText specifying footnote

I wanted to know: is there a way to specify whether the current note should be paragraphed or not? MWE Serried Footnotes \setupnotation [footnote] [alternative=serried, width=broad, distance=.5em,...
2
votes
2answers
113 views

ConTeXt and OldStandard font

my first post here. I need your help. When I use LaTeX (pdfLaTeX), without problems or errors, I can load \usepackage{OldStandard}. So, I can use smallcaps. Now when I use ConTeXt (LuaTeX) and type \...
0
votes
0answers
54 views

When is it necessary to run ConTeXt multiple times?

I am developing a server-side app for rendering PDF-documents for end users with ConTeXt with LMTX engine. Speed and throughput are essential to my task. I found that using --once option for compiling ...
2
votes
1answer
75 views

ConTeXt: Add exterior padding to framedtext

Background Looking to adjust the exterior padding of a METAPOST graphic used as the background for a framedtext. ConTeXt version 2021.05.15. SSCCE Pilfered from the mailing list: \startuseMPgraphic{...
1
vote
1answer
56 views

ConTeXt: Typeset XML attribute containing newlines

Background A user can provide their address information in a text area, separating lines by pressing Enter. An XML document is generated, which replaces the new line character with \n, such as in the ...
1
vote
1answer
69 views

ConTeXt: Disable emdash

Background Some manuscript submission guidelines prefer em dashes to remain typeset as --- rather than —. Problem Setting features=none for the document's body font does not appear to affect the tlig ...
1
vote
1answer
73 views

ConTeXt: Increase word spacing in titles

How can I increase word spacing? Preferably, I’d like them to be of a constant size, as I need it to improve legibility in uppercase titles (when increasing the kerning, the words are too close ...
0
votes
1answer
112 views

List of calling modes in ConTeXt document

I need something in document like this \listcallingmodes which return the list of calling modes, that is, if I run context --mode=mode1,mode2 file.tex in file.tex: \starttext \startmode[a1] This is ...
2
votes
1answer
106 views

Switch to absolute font size in ConTeXt

Is there a preferred/supported way to switch the current font size to an absolute value in ConTEXt? The wiki page Font Switching and reference manual describe commands such as \tfb and \tfx which ...
2
votes
1answer
88 views

ConTeXt: Removing whitespace in itemize in footnote

I’d like to include a list inside a footnote, but without the default whitespace. It doesn’t respect document-wide settings. I tried overriding it with [nowhite] directly inside the footnote, but that ...
0
votes
0answers
30 views

ConTeXt doesn't generate any pdf output [duplicate]

I'm using TeXlive 2020. I've organized my project files as: sb-mathematics c_chapter-01.tex c_chapter-02.tex prd_mathematics.tex env_studentbook.tex project_studentbook.tex Compiling the ...
0
votes
1answer
70 views

Why I get [[ outputfile missing with filter module

Why I get this error : [[output file missing \setuppapersize[A4][A4] \usemodule[filter] \defineexternalfilter [python] [ filtercommand={python \externalfilterinputfile \space > \...
2
votes
1answer
75 views

ConTeXt: Format blockquotes according to punctuation rules

Background Format multi-paragraph quotation with typical English punctuation: quotation marks at the beginning of each paragraph and a single closing quotation mark at the end of the last paragraph. ...
2
votes
1answer
91 views

Shadowbox with ConTeXt

How to get the same result of \shadowbox in LaTeX with ConTeXt ? %\usepackage{fancybox} \shadowbox{text} This is my atttempt to use Metapost, this my MWE : \setupcolors[state=start] \usecolors[...
3
votes
1answer
68 views

ConTeXt: Conditionally apply table footer to XHTML document

Background Style an XHTML table footer for the last row, provided a tfoot element isn't already present. Code Given: \startbuffer[document] <table> <thead> <tr><th>Item</th&...
1
vote
0answers
34 views

Understanding string constant \s! in ConTeXt typescript files [duplicate]

I'm trying to write my own typescript, and was advised to look at the ones provided in the ConTeXt distribution. They contain lines such as the following: \definefontsynonym [\s!Serif] [\s!name:...
1
vote
1answer
109 views

ConTeXt: Mix XHTML and TeX commands

Background A document, having inline math statements, is being written in Markdown. The document is converted to XHTML for subsequent processing using ConTeXt. Problem The XHTML contains XML elements ...
1
vote
0answers
61 views

ConTeXt : using \MPtext in different textbackgrounds [duplicate]

I am trying to change my theorem environment, and I played a little with MetaPost (that I don't know well, being more of a TiKz user). I ended with this layout (which I really like) with the help of ...
1
vote
0answers
122 views

ConTeXt and document class

Is there a way I can use document class within a ConTeXt project? I want to produce a project which includes products that I want to "inherit" the beamer class definitions. Minimal Example: \...
0
votes
0answers
93 views

Can I daemonize LaTeX or ConTeXt for performance boost?

I need to make a web service that would generate a lot of PDFs one per request under (somewhat) high load. I was told by my college that if I set up LaTeX or ConTeXt as a daemon it will stop taking ...
0
votes
1answer
100 views

Custom part, chapter, and section headings with ConTeXt

Consider this example: \definepagebreak [saut] [yes,header=empty] \setuphead[part][page=saut,numberstyle= ,numbercommand={\uppercase},placehead=yes, alternative=middle,align=middle, before=\...
3
votes
1answer
77 views

ConTeXt : background VS textbackground

I was wondering why the background environment is announced to be deprecated (example here), and to should I use instead to create a background including floats, for example in this MWE. Thank you in ...
1
vote
1answer
76 views

How to set paddings in ConTeXt

I can't find a way to set left/right/top/bottom paddings in ConTeXt. I have a table. I expect there should be a way to set some space between the cell content and its borders. How do I set a space ...
2
votes
1answer
53 views

Excess newline in grouped table cells in ConTeXt TABLE

I have a table in ConTeXt. It has fixed width. The first row has some grouping. And I get strange extra newline in there. I can tell the text perfectly fits yet there is this extra space. Here is my ...
0
votes
1answer
53 views

Giving a formula a specific name in ConTeXt

I would like to name a equation with a specific name ; for example, something like ($A_1$) ; I tried this structure from the wiki : \startformula \let\doplaceformulanumber\empty c^2 = a^2 + b^2 \...
2
votes
1answer
67 views

In ConTeXt, how can I avoid \underbar also underlining a following dash?

In this code: \starttext \underbar{foo}-bar \stoptext ConTeXt also underlines the dash after foo instead of just underlining foo. How can I fix that?
1
vote
1answer
52 views

ConTeXt: External SVG images using XML setups

Background Include an external SVG image from an HTML img element, using ConTeXt LMTX. Code Here's main.tex: \startbuffer[document] <body><img src="circle.svg"/></body> \...
1
vote
1answer
93 views

ConTeXt: Markdown Annotations to Environments

Background A tool chain currently uses Pandoc and a Lua filter to generate generic ConTeXt environments. My text editor produces XHTML documents that honour Pandoc's extended fenced div syntax. ...

1
2 3 4 5
38