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
2answers
67 views

makebox and framebox LaTeX equivalent in ConteXt

What is the equivalent to \makebox[s] and \framebox[s] stretching text in ConTeXt. For example : \makebox[5cm][s]{some contents}
0
votes
1answer
45 views

fill all left margin in Friggeri CV with ConTeXt

How to fill all the left margin under headspace in Friggeri example with let's say lightgray. The link : Implement Friggeri in ConTeXt I add this to \setupmarginblock : before={ \startframed[...
1
vote
1answer
57 views

Spurious space after command in ConTeXt

Is it possible to define a macro in ConTeXt which gobbles space after the argument? For example, given this input: \def\thing{\dosingleargument\dothing} \def\dothing[#1]{thing#1} \starttext \thing[...
2
votes
2answers
83 views

Implementing decorated footnotes in Context

I'm trying to implement a colored footnote style with Tikz in Context. After some fine tuning according to the specific font in use, I've gotten something like this: As one can see, the circle sizes ...
4
votes
1answer
143 views

Goodies for colored french accents

I save this font file as example : -- file pagella.lfg return { name = "pagella", comment = "Goodies that complement pagella.", colorschemes = { default = { ...
1
vote
1answer
100 views

Conversion from base 10 to another with ConTeXt

I took this code to produce this tex file. My question is : How to get the same result with ConTeXt? My MWE : \documentclass[border=1cm]{standalone} \usepackage{mathtools,amssymb} \usepackage{xcolor} ...
2
votes
1answer
81 views

Print as many images in a row as fit the page

I have a svg image for a tile in a board game. I want to print this 3 times so that I can print the page and cut out the tiles for my game. However, I cannot figure out how to print as many tiles next ...
5
votes
2answers
132 views

execute Python within ConTeXt

Is there any way to execute Python code in ConTeXt document ? In LaTeX we have pythontex. For example : \starttext \startpython print("text") \stoppython text \stoptext
0
votes
2answers
70 views

ConTeXt: Line numbering with background

I'm not sure how to combine line numbering with a background in a typing environment. Here's what I'm trying to achieve: Here's a minimal example of what I'm trying: \starttext \startbackground[frame=...
1
vote
1answer
116 views

Fading / gradient background color page in Context with tikz

I could put the following Tikz code on a single page: \tikz[remember picture,overlay] \shade[top color=green!30, bottom color=blue!30] (current page.north west) rectangle (current page.south east); ...
2
votes
1answer
81 views

How to get tabulate to expand vertically to fit larger text in ConTeXt?

I used the following text to create a tabulate environment: \definefont[bigfont][name:alegreyasansscextrabold at 50pt] \define[1]\maketextbig{{\bigfont #1}} \starttext \starttabulate[|p|p|p|] ...
1
vote
0answers
77 views

How to create a list in ConTeXt that shows the next item to the right in ConTeXt?

How to create a list in ConTeXt that shows the next item to the right in ConTeXt? \starttext \startitemize[n] \item Here is some text. \item Here is some more. \item Here ...
2
votes
2answers
118 views

Why is table of contents not showing incremented counter in headings in ConTeXt?

I setup a macro that very simply creates heading titles numbed "Puzzle 1", "Puzzle 2", etc. \newcount\a\newcount\counter \advance\a by 1 \define\puzzle{\chapter{Puzzle~\the\a}\...
0
votes
0answers
44 views

Why is this fallback font not loading in ConTeXt?

I used the following code to set the fallback font. My intention is that, whenever the Chinese text appears, it will switch to SourceHanSerifTC-Heavy.otf, otherwise it will use Garamond. however, it ...
3
votes
2answers
240 views

Convert numeric into a Roman Numeral inside a metafun loop

How can I automatically convert a number inside a metafun loop? I tried using MPvar but this doesn't work. \starttext \startMPpage for i=1 upto 10: label (i,(10i,0)); label ("\convertnumber{...
0
votes
0answers
55 views

externalfigure with file name in a command in ConTeXt

Is it possible to store an image file name in a command? The first \externalfigure works, the second one doesn't: \define\iii{img/ic ia super small.PNG} \setlayer[letterhead_front_page] % name of ...
1
vote
1answer
90 views

Remove header line in chapter opening (Context)

I'd like to remove only the header line, and only for chapter openings, but keeping the header at the chapter. I know its not usual. Is there any way to do it automatically? \setupheader [text] [...
2
votes
0answers
61 views

ConTeXt: Protrusion inside enumeration

I cannot get protrusion to work inside enumerations. I’m creating a presentation, and most of the content is inside an itemize environment. I have searched all over, in the wiki, the ’Fonts out of ...
3
votes
0answers
60 views

ConTeXt: Protrusion does not work with the \quotation macro

For some reason, protrusion is not applied when using the \quotation macro. See the following example: \setuppapersize[S3] \showframe \definefontfeature [default] [default] [protrusion=quality] \...
1
vote
1answer
41 views

ConTeXt fails to work on Fedora Silvervlue (“Fatal format file error; I'm stymied” followed by “unable to change to format path”)

On Fedora Silverblue, running in a toolbox, ConTeXt that previously worked well is now refusing to start. The first error looks like this: (Fatal format file error; I'm stymied)mtx-context | fatal ...
1
vote
1answer
91 views

ConTeXt: Can I print a PDF document with fillable forms?

When I try to print PDFs achieved with ConTeXt that have fillable forms, when I fill in the form, what I have filled in does not appear in the print. Is there any way to get that once filled they ...
1
vote
1answer
74 views

ConTeXt: Letterspacing in style alternative

I want to create a new style alternative, which would allow me to change the text and font (to uppercase bold in this example) while also increasing the letterspacing. However, trying to do this leads ...
1
vote
1answer
46 views

ConTeXt: Vertically align content inside section

I’m creating a presentation in ConTeXt. I want to set-up a header so that I don’t have to do something like this on every slide: \setuppapersize[S3] \starttext \starttitle[title=Title] \vfill ...
0
votes
1answer
41 views

ConTeXt: Remove vertical space before heading

I cannot eliminate the space before a heading. I’ve tried adding all variants of before=\nowhitespace, but I was unsuccessful. Minimal example: \showframe \setuppapersize[S33] \setuphead [title] [...
2
votes
2answers
100 views

How to iterate over items in a comma-separated list in ConTeXt?

I have a very simple list like this: cat, fish, dog, rabbit (this is is comma-separated, but it is fine if the data is stored in some other way, but it needs to allow for any number of items to be ...
2
votes
1answer
49 views

How to add code after every `\chapter` in ConTeXt, but not after TOC?

I used this code to place a macro that will appear immediately after every chapter title: \setuphead[chapter][after={\dropcontents}] This works, but is strangely also adding the macro after the TOC ...
2
votes
1answer
70 views

How to set drop case to a different font in ConTeXt?

I set my font in ConTeXt like this: \starttypescript[serif] [garamond] \definefontsynonym[Serif] [file:~/.fonts/11/EBGaramond12-Regular.otf] \...
2
votes
0answers
78 views

Change subscript font size in ConTeXt

In ConTeXt, is it possible to make subscript font larger (but not other parts) in math formulas? I'd be happier if it takes effect document-globally. I'm creating a document like this (my real example ...
2
votes
0answers
60 views

Offset a text block from the main grid by half the leading

In my attempt below I can almost achieve the correct offset if it were not for the descenders in the last line of the text block. Let's assume that the leading in the text block is identical to the ...
2
votes
2answers
61 views

Choice between two macros — \doifemptyelse — ConTeXT

I wanted to create a macro that outputs "A", and if "A" is empty, then output "B". This would be similar to Latex's: \ifdefempty{\@author}{\@authora}{\oorientador}. \...
0
votes
0answers
43 views

Can't use context, make luatex format, bad directory

I've installed context in standalone few day ago but I can't make it work. I'm using W10 Pro x64. When I run context.exe <path/to/my/file.tex>, it show many lines but it always end up by return ...
0
votes
0answers
79 views

Pens in metapost in ConTeXt stop working after clipping is used

There's a weird bug in ConTeXt ver. 2020.03.10: after a clipping mask is used, pens stop changing their thicknesses. \starttext \startMPcode picture p; p := image(draw (0, 0)--(1cm, 1cm) withpen ...
3
votes
1answer
127 views

Context Box Similar to tcolorbox

This is a question that is similar to this one. I wished to implement two features of tcolorbox: Box titles, with their respective list with placelistofXXX Ability to choose between rounded and ...
1
vote
0answers
71 views

Text frame background in ConTeXT

Is is possible to add an image/pattern background in a text frame in ConTeXT? What I had in mind was using: \startframedtext[background=mybackground] So that mybackground would be either defined by an ...
0
votes
1answer
82 views

Set transparency for named color directly (Context)

I know that I can define a new transparent color with RGB values, such as: \definecolor[transparentturquoise][r=.567,g=.800,b=.808,t=.5,a=1] %darkturquoise That's ok but it's somewhat inconvenient to ...
0
votes
1answer
81 views

Set up background for all pages / specific pages in Context

I'm trying to put a background image on all pages across a Context document, but adding repeat=yes to \definelayer and state=repeat to \setupbackgrounds doesn't seem to work. I'd also like to know ...
0
votes
1answer
85 views

How to write Arabic font (ttf) in ConTeXt?

I am new to ConTeXt.I want to use majalla.ttf located at "C:\Context\tex\texmf\fonts\truetype\public". I would like to use it without any modification. I have looked at https://wiki....
1
vote
0answers
98 views

Animate for ConTeXt

Is there an alternative of LaTeX's animate package for ConTeXt? A search here and on the web mostly yields (dated) alternatives using embedded movie players or javascript, which I would prefer to ...
5
votes
2answers
449 views

Can ConTeXt do what luaTeX does?

I am aware that ConTeXt is a macro package whereas luaTeX is an engine. As far as I know, luaTeX is a plain TeX + Lua as an embedded scripting language. Furthermore, ConTeXt can use Lua. My question ...
2
votes
0answers
74 views

Place a heading at the top of a page on the grid

In the following example the first heading should be placed on the second grid line while the space between "Heading" and "Subheading" should remain as is. Interestingly, the grid ...
1
vote
0answers
67 views

Extra blank line before heading not immediately preceded by another heading

What I would like to obtain is an extra blank line before a heading if this heading is not immediately preceded by another heading. This is what I have so far: \setuplayout[grid=yes] \showgrid \...
1
vote
1answer
173 views

Change background color of hyperlinks

Is there a way in ConTeXt to change background color of PDF hyperlinks? Edit: By hyperlinks, I mean external (via \useURL), internal (\goto) and footnote links. I can't easily change all those to ...
1
vote
0answers
121 views

ConTeXt: Is it possible to create a new structure level?

This question is probably stupid but it is okay, let's ask it anyway. I was wondering if it is possible (and simple), in ConTeXt, to create a whole new structure level "above" part (a sort ...
1
vote
1answer
170 views

ConTeXt Tikz and Psvectorian

How is it possible to insert a Ornaments with Tikz in ConTeXt Mk IV? For example, in the manual of ornaments package, at p. 12: \begin{tikzpicture} % to be changed in \starttikzpicture \foreach \a in {...
0
votes
0answers
40 views

Can someone explain ContextGarden's advanced document title solution? [duplicate]

I'm quite new to ConTeXt, and TeX in general and am hoping someone will be kind enough to explain the code in the advanced solution ContextGarden's guide on document titles to me. I understand the ...
1
vote
0answers
67 views

Fresh install of MacTeX 2020. Fatal error When typesetting minimal ConTeXt file [closed]

I just installed MacTeX on mac. created the code below code in TeXShop: \starttext minimal ConTeXt file \stoptext Selected "ConTeXt (LuaTeX)" from dropdown menu. Clicked on "Typeset&...
0
votes
0answers
31 views

invoking `\placelistofpublications` several times in a document

I want to give my lectures conclusion to students with a bibliography. For the sake of saving paper, I'd like to have two (or more) pieces of such text on a single page. Unfortunately, the second call ...
3
votes
0answers
62 views

How to prevent Lua-based macros from acting on nested macro names in ConTeXt?

I have two Lua functions that manipulate their arguments in different ways, and two new ConTeXt macros defined to let me use them. I tried to nest them together, but they seem to also be consuming and ...
1
vote
1answer
52 views

ConTeXt specifying font

I wanted to know how it was possible to use the numbers of another font. Let me explain. If I want to use the greek characters of a font that is not the main one, I can make a fontfallback for example,...
1
vote
0answers
120 views

How to make accessible pdfs with ConTeXt/LuaTeX and open-source tools

I recently watched this talk about PDF accessibility in LaTeX, and I was wondering how well it was supported by ConTeXt/LuaTeX. From what I've gathered, LuaTeX makes it easier by using UTF8 and TTF ...

1
2 3 4 5
37