[NTG-context] button

2024-09-16 Thread Hans van der Meer via ntg-context
\button is defined to jump to a given reference. However, I would like to place a button that can execute a macro to be defined by myself. Thus for example pushing the button \executebutton{text}{macro} will execute that macro. Is this available somewhere in ConTeXT? If not, can it be provided i

[NTG-context] Re: button

2024-09-16 Thread Henning Hraban Ramm
Am 16.09.24 um 11:41 schrieb Hans van der Meer via ntg-context: \button is defined to jump to a given reference. However, I would like to place a button that can execute a macro to be defined by myself. Thus for example pushing the button \executebutton{text}{macro} will execute that macro. Is

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Bruce Horrocks
> On 15 Sep 2024, at 22:11, Florent Michel wrote: > > Thanks Bruce for your very helpful reply! > > The reason for my question was indeed consistency, e.g. ensuring figure > captions stay up to date with what the figures show when changing parameters. > Thinking more about it, the second so

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Henning Hraban Ramm
Am 16.09.24 um 12:59 schrieb Bruce Horrocks: On 15 Sep 2024, at 22:11, Florent Michel wrote: Thanks Bruce for your very helpful reply! The reason for my question was indeed consistency, e.g. ensuring figure captions stay up to date with what the figures show when changing parameters. Thin

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Bruce Horrocks
On 16 Sep 2024, at 12:15, Henning Hraban Ramm wrote: > > Am 16.09.24 um 12:59 schrieb Bruce Horrocks: >>> On 15 Sep 2024, at 22:11, Florent Michel wrote: >>> >>> Thanks Bruce for your very helpful reply! >>> >>> The reason for my question was indeed consistency, e.g. ensuring figure >>> capti

[NTG-context] Re: Margins using 2UP imposition schema

2024-09-16 Thread Willi Egger
Angel, I used a lot of impositioning in the past. If you want to have small white space at the outer edge, then do not use width=fit. Control the inner whitespace with backspace=… Then calculate the width of the textarea you want and set this value in width=... There is no need to use cutspac

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Florent Michel
Thanks again Bruce! I had not thought about the possibility of parsing comments in the tex file from an external tool, but that sounds like a very good option. I like the fact that it would allow the tex file to contain all the information needed to keep track of what is represented without having

[NTG-context] syntax highlighting: pandoc uses Kate

2024-09-16 Thread Henning Hraban Ramm
Hi, since we recently discussed editor support and syntax highlighting: Pandoc can use definitions from Kate[1] for syntax highlighting in a code block via "--syntax-definition". There’s also ConTeXt support (MkIV/LMTX): https://kate-editor.org/syntax/data/syntax/context.xml Apparently, it c

[NTG-context] OT: fractal serif

2024-09-16 Thread Henning Hraban Ramm
Here’s an idea for a variable font axis: "serif fractal iterations" Source: https://mastodon.social/@Agar/113146403367955424 ;)___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] (ConTeXt LMTX 2.11.05) how do I make it so that sections, descriptions, and itemizations have just a space between some of the text that they produce

2024-09-16 Thread Felix
\setuppapersize[letter][letter] \setupalign[normal] \setuplayout[ backspace=0.5in, topspace=0.0in, header=.5in, % No headers footer=.5in, % Space for the footer width=middle, height=middle, ] \definefontfeature[timesfeatures][default][ trep=yes, % Enables single and d

[NTG-context] Re: (ConTeXt LMTX 2.11.05) how do I make it so that sections, descriptions, and itemizations have just a space between some of the text that they produce

2024-09-16 Thread Wolfgang Schuster
Felix schrieb am 16.09.2024 um 16:24: [...] This code shows how I am getting the default spacing between the words from itemize, description, and the spacing between the roman numeral and the section title. I tried figuring out how to get the spacing for all of these to be set to a single spa

[NTG-context] Same font for metafun as document

2024-09-16 Thread Shiv Shankar Dayal
Suppose I use dejavu fonts for the main document then how can I have metafun use the same fonts for labelling. All the metafun code is inline. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to othe

[NTG-context] Re: Same font for metafun as document

2024-09-16 Thread Henning Hraban Ramm
Am 17.09.24 um 08:05 schrieb Shiv Shankar Dayal: Suppose I use dejavu fonts for the main document then how can I have metafun use the same fonts for labelling. All the metafun code is inline. MetaFun usually uses the main font. If it doesn’t, check if you set it up before you create your graph

[NTG-context] Re: Same font for metafun as document

2024-09-16 Thread Shiv Shankar Dayal
Yes, you are correct. I got confused with the font shapes and did not look close enough. Thanks a bunch. On Tue, Sep 17, 2024 at 11:45 AM Henning Hraban Ramm wrote: > > Am 17.09.24 um 08:05 schrieb Shiv Shankar Dayal: > > Suppose I use dejavu fonts for the main document then how can I have > > m