[NTG-context] Re: ligatures and inputtranslation

2025-08-15 Thread Wolfgang Schuster
Am 15.08.2025 um 21:02 schrieb Rik Kabel: On 2025-08-15 14:49, Michael Guravage wrote: Hi, I have a document that uses the doves type font in its two variants, one for titles, and one for text. I would like to replace several character combinations with ligatures. The same letter

[NTG-context] Re: ligatures and inputtranslation

2025-08-15 Thread Rik Kabel
On 2025-08-15 14:49, Michael Guravage wrote: Hi, I have a document that uses the doves type font in its two variants, one for titles, and one for text. I would like to replace several character combinations with ligatures. The same letter combinations have their own Unicode ligatures in

[NTG-context] ligatures and inputtranslation

2025-08-15 Thread Michael Guravage
Hi, I have a document that uses the doves type font in its two variants, one for titles, and one for text. I would like to replace several character combinations with ligatures. The same letter combinations have their own Unicode ligatures in each font variant. With \replaceword I could replace

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Henning Hraban Ramm
s not supposed to work in any other lua, metapost or tex setup. To some extend tikz is an exception but that was written to work everywhere and has so many interfaces that in provides its own generic code for that. If something is written with e.g. latex in mind you can just forget about it: diff

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Hans Hagen via ntg-context
apost or tex setup. To some extend tikz is an exception but that was written to work everywhere and has so many interfaces that in provides its own generic code for that. If something is written with e.g. latex in mind you can just forget about it: different eco systems, audience, design, mi

[NTG-context] Re: Notes at end of book

2025-08-13 Thread Denis Maier via ntg-context
> Hi all, > > I'd like some advise on the best way to approach the result I want. I'm typesetting a > book; the source is in xml, every chapter in its own file. > I want my notes to appear in their own chapter at the end of the book; the reference > (in the margin) sh

[NTG-context] Notes at end of book

2025-08-13 Thread Thomas A. Schmitz
Hi all, I'd like some advise on the best way to approach the result I want. I'm typesetting a book; the source is in xml, every chapter in its own file. I want my notes to appear in their own chapter at the end of the book; the reference (in the margin) should be to the page number

[NTG-context] Re: References to elements in hidden blocks

2025-08-12 Thread Hans Hagen via ntg-context
omega]         First exercise.         We use \in{theorem}[thm:lambda] \stopexercise \endexercise \stoptext * When compiling this example with mode=all, we see that the theorem gets its number (1) and the reference in the exercise is right.  When compiling with mode=exercise, the refe

[NTG-context] References to elements in hidden blocks

2025-08-12 Thread Yves Debongnie
ambda] \stopexercise \endexercise \stoptext * When compiling this example with mode=all, we see that the theorem gets its number (1) and the reference in the exercise is right. When compiling with mode=exercise, the reference in the exercise displays ?? instead of 1. Obviously, this is be

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-10 Thread Hans Hagen via ntg-context
ectly in MP but easily run out of memory tokens when the drawing is complex enough. is there a way to define a function to draw a particular line passing its coords and pen and color? do_line(path, pen, color) where path is a list of x,y points? 8<--- \usecolors[crayola] \startMPpag

[NTG-context] [ constructing poly lines in metafun using lua ]

2025-08-09 Thread vm via ntg-context
when the drawing is complex enough. is there a way to define a function to draw a particular line passing its coords and pen and color? do_line(path, pen, color) where path is a list of x,y points? 8<--- \usecolors[crayola] \startMPpage[offset=5mm] path p; pen q[]; q[1] := pencircle

[NTG-context] Re: Preserving Stanza Integrity

2025-08-07 Thread Michael Guravage
n /Automatically Centering Verse/ > > from the wiki's verse page <https://wiki.contextgarden.net/Text_blocks/ > > Environments/Verse>. I understand that, to discern its longest line, a > > poem has to be considered in its entirety. My question is, is there a > >

[NTG-context] Re: Preserving Stanza Integrity

2025-08-07 Thread Wolfgang Schuster
Am 06.08.2025 um 19:51 schrieb Michael Guravage: Hi, I'm using code from the last example on /Automatically Centering Verse/ from the wiki's verse page <https://wiki.contextgarden.net/Text_blocks/ Environments/Verse>. I understand that, to discern its longest line, a

[NTG-context] Preserving Stanza Integrity

2025-08-06 Thread Michael Guravage
Hi, I'm using code from the last example on *Automatically Centering Verse* from the wiki's verse page <https://wiki.contextgarden.net/Text_blocks/Environments/Verse>. I understand that, to discern its longest line, a poem has to be considered in its entirety. My question is, i

[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Hans Hagen via ntg-context
ut that time penalty is then known anc accepted by the user, as logn as we don't get blamed for it (but as you mentioned, one should be aware of side effects, unicode, backend, color, whatever) It's a generic programming layer for TeX, much like pgfkeys/pgfmath (the non-graphics parts of T

[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Max Chernoff via ntg-context
Boosting that code > (by looking at it i might spot some) is not on my agenda. Most of the Markdown module is written in Lua; only the TeX interface parts use expl3. I suspect that the easiest option would be to simply rewrite the TeX interface for ConTeXt using Lua. I actually tried doing thi

[NTG-context] Re: export and tagging

2025-07-26 Thread Hans Hagen via ntg-context
out whether the math is deemed to be accessible. The MATHML appears fine, and I can also see the spelled-out text in the HTML. I am wondering whether it is possible to have an accessible text-only HTML export from Context that replaces every image with its alternative text and every math e

[NTG-context] Re: endnote

2025-07-26 Thread Wolfgang Schuster
layout of the note entry and the counter settings. What I don't  unterstand is: why do I need \definenote [one] \definenote [two] [one] to "correct" the order? In the following example I create to independant note types each with its own counter and note block. begin exam

[NTG-context] Re: Patch to use ls-R files with TeX Live

2025-07-25 Thread Hans Hagen via ntg-context
On 7/25/2025 5:03 AM, Max Chernoff via ntg-context wrote: Hi Hans, TeX Live contains ~31 times as many files as the ConTeXt distribution, so running "mtxrun --generate" is relatively slow. However, TeX Live already generates a filename index for all its files, so if we use that

[NTG-context] Patch to use ls-R files with TeX Live

2025-07-24 Thread Max Chernoff via ntg-context
Hi Hans, TeX Live contains ~31 times as many files as the ConTeXt distribution, so running "mtxrun --generate" is relatively slow. However, TeX Live already generates a filename index for all its files, so if we use that instead of traversing the filesystem, "mtxrun --generate&qu

[NTG-context] Re: Margin text?

2025-07-24 Thread Ursula Hermann
margin text? While I don’t really understand your question: – A thumb index usually depends on the part or chapter (here it’s the part, obviously) and stays the same within that section. – Its setup should probably be triggered by \setuphead or maybe \setupheader, but there’s nothing ready-made and

[NTG-context] Re: Margin text?

2025-07-24 Thread Henning Hraban Ramm
within that section. – Its setup should probably be triggered by \setuphead or maybe \setupheader, but there’s nothing ready-made and there are several approaches possible. – The colored area must “bleed” over the edge of the paper (usually 2–3 mm), i.e. you must use the second parameter of

[NTG-context] Re: language in tagging and export

2025-07-14 Thread Hans Hagen via ntg-context
can remember, ConTeXt differs from ISO 639 with ancient Greek. What ConTeXt considers `agr` is `grc` for ISO 639. As for other languages, which is the file that has the complete list of languages and its tagging values? % as he will check how viewers 'speak' - yesterday i Well, I

[NTG-context] Re: language in tagging and export

2025-07-14 Thread Jim
far as I can remember, ConTeXt differs from ISO 639 with ancient Greek. > What ConTeXt considers `agr` is `grc` for ISO 639. > As for other languages, which is the file that has the complete list of > languages and its tagging values? >> % as he will check how viewers 'speak&#

[NTG-context] Re: language in tagging and export

2025-07-14 Thread Hans Hagen via ntg-context
Greek. What ConTeXt considers `agr` is `grc` for ISO 639. As for other languages, which is the file that has the complete list of languages and its tagging values? That file never made it to a stable so it's on my machine but in the meantiem we can use llg files (language goodies) so w

[NTG-context] Re: language in tagging and export

2025-07-14 Thread Pablo Rodriguez via ntg-context
grc` for ISO 639. As for other languages, which is the file that has the complete list of languages and its tagging values? > % as he will check how viewers 'speak' - yesterday i Well, I can check that indirectly (not by Acrobat reading it aloud, but with https://ngpdf.com). Linux do

[NTG-context] Re: weird issue with latest win64 binaries

2025-07-14 Thread Pablo Rodriguez via ntg-context
On 7/13/25 00:32, Bruce Horrocks wrote: >> On 11 Jul 2025, at 15:42, Pablo Rodriguez via ntg-context wrote: >> […] >> I knew, but I was downloading a Win64 distribution (with its binaries) >> on a Linux64 OS (afaIk, `$HOME` is a Unix variable, `%USERPROFILE%` in >> Wi

[NTG-context] Re: weird issue with latest win64 binaries

2025-07-12 Thread Bruce Horrocks
which isn’t downloaded >>> to `bin/` or to `tex/texmf-win64/bin`). >> >> mtxrun.exe comes from the .zip file you download from the installers >> page on the Contextgarden website. > Many thanks for your help, Bruce. > > I knew, but I was downloading a Win64 d

[NTG-context] Re: weird issue with latest win64 binaries

2025-07-11 Thread Pablo Rodriguez via ntg-context
rom the .zip file you download from the installers > page on the Contextgarden website. Many thanks for your help, Bruce. I knew, but I was downloading a Win64 distribution (with its binaries) on a Linux64 OS (afaIk, `$HOME` is a Unix variable, `%USERPROFILE%` in Windows). This was the r

[NTG-context] Re: testing tagging for UA-2

2025-07-08 Thread Hans Hagen via ntg-context
most articles and text books actually are just that). But what if we start nesting, and do typographically interesting things. Say you have somethign that tags as label but it has an image in it. Or a (nested) link which has its own restrictions. If accessibility is really important one s

[NTG-context] Re: success and a query

2025-07-05 Thread jbf
Thanks for the explanations to Hraban, Wolfgang, Hans... Julian On 5/7/25 16:28, Henning Hraban Ramm wrote: Am 05.07.25 um 00:36 schrieb jbf: There is a new warning in the log file that I have not seen before (nothing to do with the above). Could someone explain its significance to me? I

[NTG-context] Re: success and a query

2025-07-05 Thread Hans Hagen via ntg-context
les > setting output intent to 'Coated FOGRA39 (ISO 12647-2:2004)' with id 'FOGRA39' for entry 1 Thank you! There is a new warning in the log file that I have not seen before (nothing to do with the above). Could someone explain its significance to me? I assume I don&#

[NTG-context] Re: success and a query

2025-07-04 Thread Wolfgang Schuster
FOGRA39 (ISO 12647-2:2004)' with id 'FOGRA39' for entry 1 Thank you! There is a new warning in the log file that I have not seen before (nothing to do with the above). Could someone explain its significance to me? I assume I don't really need to bother about it but I'

[NTG-context] Re: success and a query

2025-07-04 Thread Henning Hraban Ramm
Am 05.07.25 um 00:36 schrieb jbf: There is a new warning in the log file that I have not seen before (nothing to do with the above). Could someone explain its significance to me? I assume I don't really need to bother about it but I'd like to understand it. csname overload

[NTG-context] success and a query

2025-07-04 Thread jbf
th id 'FOGRA39' for entry 1 Thank you! There is a new warning in the log file that I have not seen before (nothing to do with the above). Could someone explain its significance to me? I assume I don't really need to bother about it but I'd like to understand it. csnam

[NTG-context] Re: VSCode support

2025-06-30 Thread David Roderick
mind. Is there a repo for this extension online? What is its URL? From, David Roderick On Sat, 28 Jun 2025, 18:34 Hraban Ramm, wrote: > Another thing: I don’t know how the tasks from "tasks/context.json" are > supposed to work. They don’t appear under "Run Task" (Ct

[NTG-context] To Any Software Users: Collective Identity and Software-Based Creative Practitioners

2025-06-24 Thread Riviera Taylor via ntg-context
d collaborative practices as a remedy against the deleterious effects that software can have on individuals. This stance is fleshed out in response to the apparent contradiction between the ideals of software on the one hand, and its susceptibility to offensive applications and violent appropriation on

[NTG-context] Re: SlideTitle font in Simpleslide module

2025-06-22 Thread Wolfgang Schuster
is the current maintainer of the simpleslides module. True, and after taking over and trying to enhance it I recognized that it doesn’t fit my needs and also works a bit against ConTeXt, e.g. with its own font mechanism. I didn’t touch it since 2023-04. See “Using different fonts” in https

[NTG-context] Re: SlideTitle font in Simpleslide module

2025-06-22 Thread Henning Hraban Ramm
. True, and after taking over and trying to enhance it I recognized that it doesn’t fit my needs and also works a bit against ConTeXt, e.g. with its own font mechanism. I didn’t touch it since 2023-04. See “Using different fonts” in https://codeberg.org/fiee/context-simpleslides – but that’s

[NTG-context] Re: Processing time

2025-06-20 Thread John Was
kerville in > > particular (though after just a few days I can't claim any expertise in > > reading ConTexT log files). But it does seem to want to survey the > > entire database of fonts, whether or not I need them. > > > > I don't know if it would help to ca

[NTG-context] Re: Processing time

2025-06-20 Thread John Was
expertise in reading ConTexT log files). But it does seem to want to survey the entire database of fonts, whether or not I need them. I don't know if it would help to call a font specifically from its file location, which I have occasionally had to do for exotic sorts that are rarely requir

[NTG-context] Re: Processing time

2025-06-20 Thread Wolfgang Schuster
y searching for Baskerville in particular (though after just a few days I can't claim any expertise in reading ConTexT log files).  But it does seem to want to survey the entire database of fonts, whether or not I need them. I don't know if it would help to call a font specifically from it

[NTG-context] Re: Processing time

2025-06-20 Thread John Was
/ua-2' > > backend > profiles > forcing pdf version 2.0, compression level > > 3, object compression level 3 > > backend > profiles > permitted colorspaces: rgb 'yes', cmyk 'yes' > > colors > defining > s

[NTG-context] Re: Processing time

2025-06-20 Thread Wolfgang Schuster
rue', spot 'true' transparencies  > support > transparency is supported viewerlayers    > viewerlayers are not supported backend         > xmp > using file 'C:/texlive/2025/texmf-dist/tex/ context/base/mkiv/lpdf-pua.xml' open source     > level 2, order 4, nam

[NTG-context] Re: Predefined output intents:

2025-06-15 Thread jbf
tatement, just Coated FOGRA39. I do not know why the log then tells me 'omitting reference to...',  but perhaps this is not a problem. Hi Julian, I think that omiting means that ConTeXt isn’t embedding the profile (because its file cannot be found). Or maybe the problem was that I

[NTG-context] Re: Predefined output intents:

2025-06-15 Thread Pablo Rodriguez via ntg-context
mitting reference to...',  but perhaps > this is not a problem. Hi Julian, I think that omiting means that ConTeXt isn’t embedding the profile (because its file cannot be found). > Or maybe the problem was that I thought I did not also need to include > (ISO 1267-2:2004). I though

[NTG-context] Re: Predefined output intents:

2025-06-15 Thread jbf
not give you the exact intent line in my code. I have now set them up as you have indicated in your example, with the log file result that I have shown you in no. 1 above. It would seem to have resolved my problem, other than the fact that I don't understand the implications when its sa

[NTG-context] Re: New user here!

2025-06-14 Thread Wolfgang Schuster
me the same control (surprisingly, in ConText it seems to halt on encountering \newinsert - another TeX primitive that I often use for other purposes but which must have a differently named equivalent in Context). Context is like latex a macro package with its own interface and support for f

[NTG-context] Re: line breaks within *section title

2025-06-14 Thread Damien Thiriet via ntg-context
ce are the same because \setupbodyfont loads the file on its own. Good to know. Thanks! Damien ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.n

[NTG-context] Re: line breaks within *section title

2025-06-14 Thread Wolfgang Schuster
are the same because \setupbodyfont loads the file on its own. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.n

[NTG-context] Re: \time pendant to \currenttime

2025-06-10 Thread Benjamin Buchmuller
gt; In fact, I'm trying to typeset durations like "3:30 min" which is not >> exactly a "time" either, but neither \unit{3:30 minute} nor a math formula >> achieve the expected rendering. Of course, one could just type it plainly, >> but maybe this

[NTG-context] Re: \time pendant to \currenttime

2025-06-10 Thread Hans Hagen
to keep in mind that \time is also a primitive (do users actually use that one?) so we need to remain compatible with its usage as number, think: \time1234 % sets the time \time[] % typesets the time \the\time % typesets the number intercepting h and m also has to involve overflow how about s

[NTG-context] Re: Why does \setvalue not work inside \startbodymatter?

2025-05-19 Thread Wolfgang Schuster
\setvalue was not showing up as \getvalue. I put it in lots of pllaces, but in the main part of the document, it wasn't working. Its like it was never set. After a lot of testing, I discovered if \setvalue is set inside \startbodymatter, its value stays unset. But I can set it in the front m

[NTG-context] Re: How to scale a TABLE to \textwidth?

2025-05-19 Thread Wolfgang Schuster
Am 19.05.2025 um 17:47 schrieb Joel via ntg-context: I have a large table that spans multiple pages long. Its just about 1" too wide on the page, so I tried using various means to scale it just a little, such that it fits the page width. For example, I tried this way, by wrapping it i

[NTG-context] How to scale a TABLE to \textwidth?

2025-05-19 Thread Joel via ntg-context
I have a large table that spans multiple pages long. Its just about 1" too wide on the page, so I tried using various means to scale it just a little, such that it fits the page width. For example, I tried this way, by wrapping it inside \scale, but that ends up instead of splitting a

[NTG-context] Re: Why does \setvalue not work inside \startbodymatter?

2025-05-18 Thread Hans Hagen via ntg-context
was not showing up as \getvalue. I put it in lots of pllaces, but in the main part of the document, it wasn't working. Its like it was never set. After a lot of testing, I discovered if \setvalue is set inside \startbodymatter, its value stays unset. But I can set it in the front m

[NTG-context] Why does \setvalue not work inside \startbodymatter?

2025-05-18 Thread Joel via ntg-context
, but in the main part of the document, it wasn't working. Its like it was never set. After a lot of testing, I discovered if \setvalue is set inside \startbodymatter, its value stays unset. But I can set it in the front matter, backmatter, anywhere else. Here is my minimum working example,

[NTG-context] Re: Enumerations: How to place an itemized list's index above an item's contents?

2025-05-14 Thread Bruce Horrocks
> On 14 May 2025, at 09:15, Michael Guravage > wrote: > > Greetings, > > I have 365 short poems; one for each day of the year. I thought I'd wrap each > month in an enumeration and use the item numbers as titles. My MWE raises > several questions: > >

[NTG-context] Enumerations: How to place an itemized list's index above an item's contents?

2025-05-14 Thread Michael Guravage
Greetings, I have 365 short poems; one for each day of the year. I thought I'd wrap each month in an enumeration and use the item numbers as titles. My MWE raises several questions: How do I center an index above its item? How do I keep an index and its item together? How do I keep an i

[NTG-context] Spaces around vertical and horizontal lines inside matrix

2025-05-06 Thread Андрей
Hello! This is my first thread here. I typed the stiffness matrix of a beam in its local coordinates. My code: \startpmatrix    %--- 1    \NC \cfrac{SE}{L}    \NC 0    \NC 0    \NC 0    \NC 0    \NC 0    \VL    \NC -\cfrac{SE}{L}    \NC 0    \NC 0    \NC

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Matthias Weber
text in Acrobat. > > I think that alternate texts are primarily intended to be read aloud. > > In fact, the older PDF specification (the only one publicly avaiblable) > describes them as (third row from > https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.p

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Pablo Rodriguez via ntg-context
robat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=567): An alternate description of the structure element and its children in human-readable form, which is useful when extracting the document’s contents in support of accessibility to users with disabilities or for other purposes. Displaying the a

[NTG-context] Re: Rotating and scaling images to fit a page

2025-04-24 Thread Fabrice L
Hi, > Le 24 avr. 2025 à 04:28, Michael Guravage a > écrit : > > Greetings, > > I have many images, all with different aspect ratios, that I would like to > collect in a document. Each image should be rotated and scaled to fit its > page. My MWE uses an image'

[NTG-context] Rotating and scaling images to fit a page

2025-04-24 Thread Michael Guravage
Greetings, I have many images, all with different aspect ratios, that I would like to collect in a document. Each image should be rotated and scaled to fit its page. My MWE uses an image's width and height to discern whether it's wide, tall, or square. This works, but I feel I'm

[NTG-context] Re: Why is this code not creating "Ibid" style entries?

2025-04-18 Thread Hans Hagen via ntg-context
uot;. I did this by at the end of the macro, setting \setvalue{previousmymacro}{#1}, then checking if that value is the same the next time hte macro is called. So its just checking, if #1 is same as last time the macro was called, then use Ibid. Something though isn't working as expected.

[NTG-context] Why is this code not creating "Ibid" style entries?

2025-04-17 Thread Joel via ntg-context
{previousmymacro}{#1}, then checking if that value is the same the next time hte macro is called. So its just checking, if #1 is same as last time the macro was called, then use Ibid. Something though isn't working as expected. Why isn't this displaying Ibid. when it should for repeated

[NTG-context] Re: combining natural tables and itemize with \its

2025-04-14 Thread Henning Hraban Ramm
Am 14.04.25 um 21:36 schrieb Wolfgang Schuster: Use the text option for itemize. \startitemize[medcircle,text][items=10,width=10em,distance=1em] Thank you! Hraban ___ If your question is of interest to others as

[NTG-context] Re: combining natural tables and itemize with \its

2025-04-14 Thread Wolfgang Schuster
Am 14.04.2025 um 21:23 schrieb Henning Hraban Ramm: Hi, I’d like to have a kind of questionnaire in a table and thought it would make sense to use \its. While there’s an integration of tabulate and itemize, I can’t get it working with a natural table. Is this possible at all? \starttext

[NTG-context] combining natural tables and itemize with \its

2025-04-14 Thread Henning Hraban Ramm
Hi, I’d like to have a kind of questionnaire in a table and thought it would make sense to use \its. While there’s an integration of tabulate and itemize, I can’t get it working with a natural table. Is this possible at all? \starttext % simple itemize works: \startitemize[6,nowhite

[NTG-context] Thesis in ConTeXt

2025-04-10 Thread Gerion Entrup
ly tedious and error-prone task when you do it multiple times. Thus, a colleague of mine develops versuchung [3] and dataref [4]. The first one is a Python library to output measurement data in a defined format and the latter is a LaTeX/PGF library to embed that data referenced by its key in

[NTG-context] Re: Alternate text for images?

2025-04-07 Thread Hans Hagen
n issues Making them accessible means machine readable, which comes with its own problems I loathe. indeed; the problem is that like many specific pdf features it is big business ... so conflicting interests (there are also software vendors out there who claim that they can make existing d

[NTG-context] Re: Alternate text for images?

2025-04-03 Thread Matthias Weber
my students — or make them accessible — or move/find another job (a serious alternative indeed) Making them accessible means machine readable, which comes with its own problems I loathe. For me this means that all equatiions need to be somehow machine readable (I haven’t yet tried whether the

[NTG-context] Re: nested context/lua calls

2025-04-03 Thread Mohammad Hossein Bateni
- > > \def\MakeSomething#1{...} > > > > \startluacode > > function WorkWithSomething(data,MakeSomethingOutput) > >-- we wanted to use some computation on data to obtain input to > > MakeSomething > >-- then call MakeSome

[NTG-context] Re: nested context/lua calls

2025-03-30 Thread Wolfgang Schuster
all MakeSomething to obtain its result end \stopluacode \ctxlua{WorkWithSomething(some_data, "\MakeSomething{replicate processing on data to obtain input to this macro}")} - Is there a more elegant solution? Ideally I want a way to start a TeX process und

[NTG-context] Re: nested context/lua calls

2025-03-30 Thread Mohammad Hossein Bateni
way to start a TeX process under Lua, and > > process the macros there before I get to the next line of Lua code. > > One option is to use "publications.prerollcmdstring", which fully and > completely expands its arguments (it typesets the arguments in a box and >

[NTG-context] Re: expansion and doifelse

2025-03-30 Thread Mohammad Hossein Bateni
- > > \starttext > > \def\A{a} > > %\def\A{b} > > \ctxlua{LuaA("\doifelse{\A}{a}{ey}{bee}")} > > \stoptext > > --- > > > > I put \expanded and \expandafter here and there, but couldn't get

[NTG-context] Re: nested context/lua calls

2025-03-29 Thread Max Chernoff via ntg-context
is to use "publications.prerollcmdstring", which fully and completely expands its arguments (it typesets the arguments in a box and then parses the box's glyphs). Another option is to use "context.stepwise", which lets you interleave TeX and Lua execution. Demonstration: \define[1]\MakeSom

[NTG-context] expansion and doifelse

2025-03-29 Thread Mohammad Hossein Bateni
o \doifelse scanning its input? If yes, how can we handle this? Thanks, Mohammad ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.n

[NTG-context] nested context/lua calls

2025-03-29 Thread Mohammad Hossein Bateni
hing on the TeX side: - \def\MakeSomething#1{...} \startluacode function WorkWithSomething(data,MakeSomethingOutput) -- we wanted to use some computation on data to obtain input to MakeSomething -- then call MakeSomething to obtain its result end \stopluacode \ctxlua{WorkWit

[NTG-context] mathmatrix: Aligning row baseline to text baseline

2025-03-27 Thread Kirill Davidov
space, worse the misalignment. Is it possible to align the baselines? I've been spoiled by LaTeX's `tabularray` package — it has an undocumented value for its `baseline` key. Setting it to `M` does exactly what I want. This MWE demonstrates the misalignment with a double line spaci

[NTG-context] Re: Problem with: 0.222 222 222_3

2025-03-25 Thread Pablo Rodriguez via ntg-context
On 3/25/25 17:45, Wolfgang Schuster wrote: > [...] > 1. Math mode has its own rules regarding spaces. Hi Wolfgang, I thought "spaceinbetween" was a valid spacing option (at least, it seems to wo

[NTG-context] Re: Problem with: 0.222 222 222_3

2025-03-25 Thread Wolfgang Schuster
[thermes, 8pt] \starttext \startformula x_1 = 0.222 222 222_3 \stopformula \stoptext I want to have \startformula x_1= 0.222 222 222 x_1=0.222 222 222 \stopformula , but not \startformula a=b a=b \stopformula Many thanks for your help and tips. 1. Math mode has its own rules regarding spaces

[NTG-context] Re: How to span an image across two pages with a caption?

2025-03-21 Thread jbf
, but it isn't flexible, in that my document might have 20 more such images, and this way that its defined means a lot of redundant code used: %%% Full-Page Graphics \unprotect \useexternalfigure [railroad] [P1976-48-33b] [   width=2\paperwidth,   height=\paperheight, ] \newcount\railc

[NTG-context] How to span an image across two pages with a caption?

2025-03-21 Thread Joel via ntg-context
in that my document might have 20 more such images, and this way that its defined means a lot of redundant code used: %%% Full-Page Graphics \unprotect \useexternalfigure [railroad] [P1976-48-33b] [   width=2\paperwidth,   height=\paperheight, ] \newcount\railcount \def\pickhalfrail_cmd{%     \setupcl

[NTG-context] Re: Can context automatically italicize foreign words?

2025-03-20 Thread Rik Kabel
via ntg-context wrote: Its common convention to italicize words that are of a different language. I've tried marking these words, but then when they also appear in the glossary and index, they are not appearing in the correct placement--somehow the italicized words appear under the "s&q

[NTG-context] Re: Can context automatically italicize foreign words?

2025-03-20 Thread jbf
At least for the Index, Joel, here is how I achieved that: \defineprocessor[special][style=italic] And then by way of an example in the text referring to a newspaper: \index{special->Age, The} {\em The  Age} of 31 July 2018 Julian On 21/3/25 03:28, Joel via ntg-context wrote: Its com

[NTG-context] Re: Can context automatically italicize foreign words?

2025-03-20 Thread Henning Hraban Ramm
Am 20.03.25 um 17:28 schrieb Joel via ntg-context: Its common convention to italicize words that are of a different language. I've tried marking these words, but then when they also appear in the glossary and index, they are not appearing in the correct placement--somehow the italicized

[NTG-context] Can context automatically italicize foreign words?

2025-03-20 Thread Joel via ntg-context
Its common convention to italicize words that are of a different language. I've tried marking these words, but then when they also appear in the glossary and index, they are not appearing in the correct placement--somehow the italicized words appear under the "s" category, no mat

[NTG-context] Re: How to return 'setupalign' to default behavior after setting?

2025-03-06 Thread Denis Maier via ntg-context
:     My copyeditor asked me to adjust parts of the document to fit this: \setupalign[verytolerant, nothyphenated] \setupnotation[footnote][align={hyphenated, normal}] It is causing problems in other areas of the document, where its no so needed though. Is

[NTG-context] Re: How to return 'setupalign' to default behavior after setting?

2025-03-06 Thread Mikael Sundqvist
areas of the document, where its no so needed > though. Is there a way to tell these commands to "go back to the default"? > > like \setupalign[default] > \setupnotation[default] > > --Joel Maybe \setupalign[reset]? /Mikael __

[NTG-context] How to return 'setupalign' to default behavior after setting?

2025-03-06 Thread Joel via ntg-context
My copyeditor asked me to adjust parts of the document to fit this: \setupalign[verytolerant, nothyphenated] \setupnotation[footnote][align={hyphenated, normal}] It is causing problems in other areas of the document, where its no so needed though. Is there a way to tell these commands to &qu

[NTG-context] How to prevent \reference[myrefA]{myrefA} from creating vertical emptiness?

2025-03-05 Thread Joel via ntg-context
I call a sidebar. I've put \reference[myrefA]{myrefA} near it, so a cross-reference will say "See the sidebar on p. 2". The problem is, its creating a strange vertical space. If I put it anywhere in front of  \sidebarA, it makes a gap above the sidebar. And if I put it anywhere

[NTG-context] Re: Strange display of math when enabling export xml/html/xhtml

2025-03-05 Thread Christoph Hintermüller via ntg-context
eed to pick up the export thread (we have been > testing with his lecture notes and math book last year). The problem > is > that once again mathml in viewers is changing, that there are > differences between viewers, that we need to play safe but have to > figure out how. Indeed

[NTG-context] Re: how to reset and switch fallbackfont?

2025-03-03 Thread Wolfgang Schuster
Am 03.03.2025 um 05:35 schrieb autumnus: I want to set different fallbackfonts for the main font in the same document. I think your guess is correct. Once the fallbacks is set, the mainfont will be bound to the font. Even if I switch to other typescripts, as long as its style(rm,ss etc) does

[NTG-context] Re: how to reset and switch fallbackfont?

2025-03-02 Thread autumnus
I want to set different fallbackfonts for the main font in the same document. I think your guess is correct. Once the fallbacks is set, the mainfont will be bound to the font. Even if I switch to other typescripts, as long as its style(rm,ss etc) does not change, it will still use the previous

[NTG-context] Fwd: lug-boards] BachoTeX 2025: registrations

2025-02-26 Thread Taco Hoekwater
and/or GUST; > 4. there is also a field where you can (provisionally) offer a presentation > (see https://bachotex.gust.org.pl/2025/auth_en.html). > > > From the Program Committee: Exposing pupils to TeX will decide its future. > Come for new ideas and bring such with you! >

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Arthur Rosendahl
On Mon, Feb 17, 2025 at 04:22:11PM +0100, Pablo Rodriguez via ntg-context wrote: >>> I do get ἅπαν-τα, even with its hyphenation exception commented out. >> >> That’s probably because of \lefthyphenmin: if (as I would except), its >> value is two, you won’t get the h

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Pablo Rodriguez via ntg-context
main problem I’m seeing. >> I do get ἅπαν-τα, even with its hyphenation exception commented out. > > That’s probably because of \lefthyphenmin: if (as I would except), its > value is two, you won’t get the hyphenation ἅ-. Try setting it to one > and see what happens. Sorry

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Arthur Rosendahl
On Mon, Feb 17, 2025 at 03:43:52PM +0100, Pablo Rodriguez via ntg-context wrote: > The same happens with ἄπαντα: ἄπα­­-ντα for \agr and ἄπα­­ν-τα for \es > (with added agr patterns). That’s clearly wrong. > I do get ἅπαν-τα, even with its hyphenation exception commented out. That’s

[NTG-context] Re: issue with agr loaded patterns

2025-02-17 Thread Pablo Rodriguez via ntg-context
enationpattern[agr][2ν1τ] \setuplanguage[es][patterns={es, agr}] \mainlanguage[agr] \starttext \startTEXpage[offset=1em] \hyphenatedword{πράγματα}\\ {\es\hyphenatedword{πράγματα}}\\ \hyphenatedword{ἅπαντα}\\ {\es\hyphenatedword{ἅπαντα}}\\ \stopTEXpage \stopte

  1   2   3   4   5   6   7   8   9   10   >