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
0answers
51 views

How to swap section labels and section numbers in ConTeXt

Is there a way to achieve the following in ConTeXt? 1. Part. A part 1. Chapter. A chapter 1.1 Section. A section etc. I've tried manually putting \currentstructurelabel inside a command so ...
2
votes
1answer
35 views

Define customized conversion set in ConTeXt based on Lua command

According to ConTeXt Garden (https://wiki.contextgarden.net/Command/defineconversion) a custom conversion can be define using a list. Example: \defineconversion[inventory][<3,!,\math{\therefore},?]...
6
votes
1answer
92 views

ConTeXt: How to make color derivation acts like LaTeX xcolor package

Trying to use color derivation as define here, I fail to get any closer to what xcolor provides. For exemple, this is what I get in LaTeX with xcolor: \documentclass{minimal} \usepackage{tcolorbox} ...
0
votes
0answers
52 views

Music sheets with context

How to include music produced by lilypond in context document (not like image)? latex can do that with musixTeX, lyluatex,abc. Any advice ?
3
votes
1answer
41 views

ConTeXt to HTML conversion for multiple math-heavy documents

My primary goal is to convert my extremely math-heavy writings in ConTeXt to HTML so that I can put them up on the internet. I followed this answer by @Marco, but all my mathematics comes up as plain ...
1
vote
0answers
42 views

how to specify different imposition schemes per-page

I found this \installpagearrangement 1*4*reversed {\dosetuparrangement{2}{2}{4}{3}{3}% X,Y,Total,hcutmarks,vcutmarks \pusharrangedpageFOURSINGLESIDEDFOLDEDREVERSED\poparrangedpagesTWO\...
1
vote
1answer
40 views

How to set default directory for \copypages and \insertpages?

I'm using two macros to insert some PDFs to my document: \copypages and \insertpages. Is there a way to specify a default directory to these macros to search for files? By info from ConTeXt wiki for ...
3
votes
0answers
101 views

Move to ConTeXt or clean up existing LaTeX?

Having used TeX StackExchange for quite some time now as a very helpful and comprehensive source only as a reader I finally have to reach out actively to the community for advice: I have a quite big ...
2
votes
1answer
65 views

ConTeXt: Fontawesome symbols with MetaFun

I am trying unsuccessfully to pass fontawesome symbols as variable to MetaFun. I tried things like, passing the symbol directly through the variable \usesymbols [fontawesome] \startuniqueMPgraphic{...
4
votes
1answer
101 views

Blank page added after pagecolumns in ConTeXt

This question arose in the comments in Ragged-bottom footnotes in ConTeXt; I have since reported the issue to the ConTeXt mailing list, but I have not heard anything back so far, so I decided I should ...
3
votes
1answer
51 views

ConTeXt: Issue with marginboxes and doublesided

Playing around with this post I tried to use framed boxes on a doublesided document but there is a strange issue. Why left boxes are not centered in (outer)margin like right ones ? Here is a minimal ...
2
votes
1answer
34 views

ConTeXt: Removing whitespace between letter sections in register table

I am trying to format a register table such that there are no "indicators" for each letter section and no whitespace between letter sections. Here is my MWE: \defineregister [cases] \setupregister [...
2
votes
1answer
42 views

Using ConTeXt, how do I keep paragraph breaks inside a layer inside a setups?

I'm attempting to create a letterhead that includes the recipient's name, the date, and the page in the margin of every page. Here is my attempt: \setupbodyfont[12pt] \definelayer[restpagemargin]% ...
3
votes
1answer
52 views

ConTeXt: how to set different interlinelinespace for \framed text?

I'm working with a document that has many framed objects (to be more specific, they live on a different layer - that is, they are specified with \setlayerframed macro). I use the combination of \...
2
votes
1answer
57 views

Blanks before redefined heads not obeying grid in ConTeXt

The following MWE in ConTeXt shows that if space is inserted before a chapter heading at the top of a page, it moves the contents of that page off the grid. Without the second argument to setuphead, ...
3
votes
1answer
61 views

ConTeXt: Replace tokens in document title option

Background Macros are autogenerated for a book's title and author name. The title can sometimes include TeX-specific tokens, such as ~ and ldots{}. Problem When setting the document properties, the ...
4
votes
1answer
145 views

Unicode normalization and Hebrew in ConTeXt

I am typesetting a document in Hebrew that includes pointing (e.g., vowels, shin and sin dots, dagesh, etc.) using ConTeXt. The Hebrew text that I want to typeset has been normalized into Unicode's ...
0
votes
1answer
42 views

Right-to-left pagecolumns and markings in ConTeXt

I am trying to typeset a two-column text in a right-to-left language using ConTeXt. Because I want footnotes in this text to be set ragged-bottom, I am using pagecolumns instead of standard columns (...
2
votes
1answer
77 views

ConTeXt: Dynamically define macro using before/after options

Background Code generates a book's title and author within start/stop environments. I'd like to redefine the content from those environments as a macro that can be reused elsewhere. For example: \...
3
votes
1answer
58 views

ConTeXt: Proper way to place enumerations in margins

Is there a proper way to place and center enumerations in (outer)margin that \defineenumeration[MyEnumeration][...] \inmargin{ \startMyEnumeration ... \stopMyEnumeration } or \...
2
votes
2answers
84 views

ConTeXt: How to force text to fit in a MetaFun box?

How to make text fit in a MetaFun box with specific width ? For now I have \startuseMPgraphic{MPBoxFrame} % Useful values numeric w, h, o, b ; w := 4.5cm ; h := OverlayHeight ; o := ...
5
votes
1answer
122 views

Questions about fancyboxes in ConTeXt with MetaFun

I'm trying to reproduce something like that with MetaFun: For now with these links, I managed to get that: \definecolor[darkblue][r=20,g=30,b=50] \startuseMPgraphic{MPTheoremFrame} % Useful ...
3
votes
1answer
75 views

ConTeXt: Override global project value within a product

Background Looking to understand the definitive relationship between projects, products, environments, and components. Minimum Working Example Here's the directory structure showing the problem: ...
1
vote
0answers
64 views

Fancy colored boxes in ConTeXt MKIV [duplicate]

Can someone explain how to create fancy boxes like this in ConTeXt MKIV and probably with MetaFun? According to @JairoADelRio link and MetaFun manual it is easy to change title text, to round and to ...
4
votes
1answer
105 views

Ragged-bottom footnotes in ConTeXt

I'm trying to typeset two-column text with two-column footnotes in a grid-based layout in ConTeXt. Setting all of this up is easy with ConTeXt, and in general, the footnotes are placed where I expect ...
4
votes
1answer
57 views

Non-breaking \hspace in ConTeXt

The only non-breakable space command in ConTeXt that I know of is the tilde (~) command, but I'd like to have finer control over how long the non-breaking space will be. In LaTeX, I could accomplish ...
1
vote
2answers
54 views

How to get ConTeXt to display page numbers with chapters in both TOC and footers?

I would like page number appear in both the Table of Contents, and page footers, just like in old Manuals from Digital Equipment Corporation. That is Chapter#--Page#, where pages restart at 1 with ...
2
votes
1answer
65 views

ConTeXt: Remove spacing before tabulation

In my document, I have inter-paragraph spacing on. However, I haven’t found a way to stop it from inserting a space before a tabulation. \setupwhitespace[line] \setuptabulation[before=] \starttext ...
2
votes
1answer
114 views

Why does this example from the MetaFun manual not work?

[Question also asked on the ConTeXt mailing list but no answer yet so it's probably complicated enough to get an answer, hence repeated here] I would like to use the result of transparent() straight ...
3
votes
1answer
72 views

Load .so library in LuaTeX

I want to use some C .so libraries for LuaTeX (LuaLaTeX and ConTeXt), as limath. To be more specific, I want to do something like %\documentclass{article} % LuaLaTeX %\usepackage{luacode} % LuaLaTeX ...
1
vote
1answer
46 views

Change vim-t background color

do you have any idea how to change code snippet's background color? I'm using vim-t (\definevimtyping..) and context. In vim documentation I found only how to change background color of highlighted ...
3
votes
1answer
50 views

vim-t line split not working

I'm using context on my mac machine. I'm trying to wrap lines automatically using lines=split when defining vim typing, but it's not working. This is how I define vim typing at the very top of my ....
2
votes
1answer
148 views

How to use tikzducks on Plain TeX / ConTeXt?

Is it possible to use/port tikzducks in Plain TeX or ConTeXt? As far as I know, tikzducks.sty has some LaTeX-isms as \begin .. \end environments, so it doesn't work outside LaTeX.
2
votes
2answers
76 views

Trouble getting curly braces printed from METAPOST code generated by ConTeXt Lua (with minimal example)

[Question also asked on the ConTeXt mailing list, I'll post a solution from either in the other] The following minimal example illustrates my problem. I need to typeset a generic string (which is read ...
0
votes
2answers
90 views

Framed in Vertical Mode

How can I create a ConTeXt framed environment such that \ifvmode is true? \startframed[...] \ifvmode Vertical mode! \else Horizontal mode! \fi \stopframed edit I was ...
1
vote
1answer
81 views

Buffer inside (b)Table

\starttext \bTABLE \bTR \bTD% \startbuffer[mytest] \input knuth \stopbuffer[mytest] \eTD \eTR% \eTABLE% \stoptext tex error > tex error on line 10 in file ...tex: ! Undefined ...
2
votes
1answer
73 views

TeX Conditional in Lua

Why can I use \startluacode context.mymacro("\noexpand\\iftrue") \stopluacode But not \startluacode context.mymacro([[\noexpand\iftrue]]) \stopluacode Or not \startluacode context.mymacro([[\...
1
vote
1answer
75 views

Assign Box Register in Lua

I would like to implement the following in Lua, for various reasons. Recursion in a macro language is bad idea - the definition below exceeds the input stack size. I want to avoid TeX for a bisection ...
0
votes
1answer
56 views

ConTeXt Nested Frames: inner offset shrinks frames

\starttext \framed[strut=no,offset=0pt,rulethickness=1pt]{% \framed [align=normal, width=200pt, height=50pt, offset=0pt, frame=off, rulethickness=0pt]{% \blackrule[...
1
vote
2answers
153 views

Get Height/Width of Parent Box

In cases when input text to be typeset is separate from the structured template, can the input determine the height and width of its containing box? An example input. Question marks (?) to be ...
0
votes
0answers
44 views

ConTeXt - How to replicate this LaTeX tcolourbox title box placement with frame? [duplicate]

Desired effect: Just to clarify - this is LATEX code, asking for a replication with CONTEXT code. Did you understand that? Please leave comments if you didn't get that. MWE (LaTeX): \documentclass{...
1
vote
1answer
61 views

Serried in ConTeXt heads

I want to know how to use something similar to alternative=serried in ConTeXt heads, like sections or even chapters, e.g. 1. This is a section.- This is a nice text example. There's another line. ...
2
votes
1answer
46 views

Difference between xtable and embeddedxtable

I was trying to put an xtable inside a macro, and ran into a bunch of problems, which are documented in other questions. The workaround seems to be to use embeddedxtable instead. This appears to ...
4
votes
0answers
55 views

Can I use Gregorio with ConTeXt?

I've been typesetting documents in LaTeX using Gregorio to set Gregorian chant notation. Now I'm trying out ConTeXt, and want to use it with Gregorio. I think this should be possible, because Gregorio ...
3
votes
1answer
113 views

ConTeXt: Capitalize first word of first line within \startlines

Background Looking to reproduce the following text layout (ignore the slight curve to the text, it's a magazine scan of a Robert Frost's Fire and Ice, first published in 1920): The first letter is ...
1
vote
1answer
67 views

Execute commands after section

How to execute code after or at the end of a section (or subsection, chapter, etc.)? I'm looking for a more elegant solution than this: \definehead[mysectionImpl][section] \let\startmysection\...
0
votes
2answers
64 views

TeX Gyre Termes on Linux Mint 19.3

I installed context and pandoc on clean Linux Mint 19.3. When I run mtxrun --script font --list termes I get: identifier familyname fontname filename subfont ...
2
votes
1answer
61 views

ConTeXt - escape percent sign in externalfigure

This fails during typesetting: {\externalfigure[https://images-na.ssl-images-amazon.com/images/I/41rVft84o%2BL._SX384_BO1,204,203,200_.jpg][book]}{} This typesets, but the image doesn't display (it ...
3
votes
2answers
71 views

ConTeXt: Precisely arrange pieces of text on a page in rows and columns

I want to print some labels on label paper and therefore have to align pieces of text at very precise locations on the page. I'll have to measure the actual numbers again but it's something like 27 ...
3
votes
0answers
93 views

Vertical typesetting in ConTeXt MkIV?

I am new to ConTeXt, and would like to ask if vertical typography, such as with Japanese or traditional Chinese, is available. It seems to be alluded to several times in the documentation as well as ...

1
2 3 4 5
36