Re: [NTG-context] annotated equations

2022-11-17 Thread Henning Hraban Ramm via ntg-context

Am 17.11.22 um 14:25 schrieb Hans Hagen via ntg-context:

On 11/17/2022 1:46 PM, Henning Hraban Ramm via ntg-context wrote:
Here’s an interesting example for annotated equations, done with 
LaTeX/TikZ:

https://mastodon.social/@sibin/109349703357749846


Marei told me this is nothing individual but from this package:
https://ctan.org/pkg/annotate-equations
It’s mostly TikZ and could also work with ConTeXt.

it's not like users are screaming for these 
features and there are no projects that drive them 


Of course. I don’t need it, hardly use formulae at all, but I found it 
interesting.


(who every time he sees something called 'mastodon' has to smile and 
remember reading 
https://eu.palmbeachdailynews.com/story/entertainment/2020/10/16/carl-hiaasen-writes-pythons-palm-beach-and-potus-new-book/3667047001/)


That’s funny, maybe there’s an intentional connection.

Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \autoinsertedspace fails following \nbsp under LMTX

2022-11-17 Thread Hans Hagen via ntg-context

On 11/17/2022 6:43 AM, Rik Kabel via ntg-context wrote:

ConTeXt  ver: 2022.11.14 22:58 LMTX on W11 x64

I have been testing the recently added \autoinsertedspace, and I found 
an odd failure.

fixed n next upload


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] annotated equations

2022-11-17 Thread Hans Hagen via ntg-context

On 11/17/2022 1:46 PM, Henning Hraban Ramm via ntg-context wrote:
Here’s an interesting example for annotated equations, done with 
LaTeX/TikZ:

https://mastodon.social/@sibin/109349703357749846

I guess something similar is possible with node anchors in 
ConTeXt/MetaPost?
Mikael and I played plenty with annotating formulas as part of all this 
math stuff (part of exploring interference with spacing which is 
something we don't want cq. bother users with); for inline, display and 
matrices


but as usual it's demand driven so it is pending 'documenting' and 
'interface improvements' ... it's not like users are screaming for these 
features and there are no projects that drive them so "yes, it's there, 
but you need to check the examples (in the source)"


the priorities are currently: math tweaks (+ fixing some fonts), new 
math manual, additional trickery, mixed with stimulating metafun


(attached a quick and dirty copy of one of our many todo docs)

Hans

(who every time he sees something called 'mastodon' has to smile and 
remember reading 
https://eu.palmbeachdailynews.com/story/entertainment/2020/10/16/carl-hiaasen-writes-pythons-palm-beach-and-potus-new-book/3667047001/) 



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


demo.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] annotated equations

2022-11-17 Thread Henning Hraban Ramm via ntg-context

Here’s an interesting example for annotated equations, done with LaTeX/TikZ:
https://mastodon.social/@sibin/109349703357749846

I guess something similar is possible with node anchors in ConTeXt/MetaPost?

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-17 Thread Werner Schmidt via ntg-context
Dear list,

issue is solved with the latest update of ConTeXt. 

Thanks to everyone for the release. 

ConTeXt is just awesome :) 

Best Werner



On November 14, 2022 10:27:38 AM UTC, Hans Hagen via ntg-context 
 wrote:
>On 11/12/2022 12:02 PM, Werner Schmidt via ntg-context wrote:
>> Dear list,
>> 
>> I like to use the Iosevka as mono typeface. It worked in the past, but sadly 
>> context crashes now with the following error.
>> 
>>  fatal error: /font-dsp-macro.lua:2336: attempt to index a nil value 
>> (local 'sequence')
>> 
>> Plese see MWE below.
>> 
>> Any ideas how debug / solve this issue?
>
>i'll intercept it
>
>Hans
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Xml filtering in Lua

2022-11-17 Thread Thomas A. Schmitz via ntg-context

> On 17. Nov 2022, at 11:04, Hans Hagen via ntg-context  
> wrote:
> 
> so, basically you collect data and use it later ... for huge datasets that 
> saves some time
> 
> if you have only chapters to process you can even decide to flush in that 
> function
> 
> Hans

I think this is exactly the approach I’m looking for: collecting everything in 
Lua tables and then retrieving and typesetting it later. I’m experimenting with 
it right now. I will have to define a proper lxml.command for every xml tag, I 
guess; otherwise, the xml gets serialized? I’ll play some more and will 
certainly be back with questions :-)

Thank you, as always, and all best

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Xml filtering in Lua

2022-11-17 Thread Hans Hagen via ntg-context

On 11/16/2022 8:56 PM, mf via ntg-context wrote:

This works:

local metadata = xml.filter (t, '../../topics/topic[@t:id=="' .. ch_id 
.. '"]')


also this:

local lpath = string.format('../../topics/topic[@t:id=="%s"]', ch_id)

local metadata = xml.filter (t, lpath)


It looks like xml.filter supports only 2 arguments (see lxml-tex.lua), 
and so it doesn't let you use string formatting patterns like the 
"context" command does.


You can write:

context('the value of @t:id is "%s"', ch_id)

but you can't write:

xml.filter (t, '../../topics/topic[@t:id=="%s"]', ch_id)

In Thomas example this is also an approach:

\startxmlsetups xml:document
\xmlfunction{#1} {document}
\xmlflush{#1}
\stopxmlsetups

with

\startluacode
local topics   = { }
local chapters = { }

function xml.functions.document(t)
for c in xml.collected(t,"/topics/topic") do
topics[c.at.t_id] = c
end
 -- for c in xml.collected(t,"/chapters/chapter") do
 -- chapters[c.at.ch_id] = c
 -- -- or flush here
 -- end
end

function xml.functions.chapter (t)
local ch_id = t.at.ch_id
local metadata = topics[ch_id]
lxml.command(t, ".", "xml:chapter:content")
context.par ()
context (ch_id)
context.par ()
end
\stopluacode

so, basically you collect data and use it later ... for huge datasets 
that saves some time


if you have only chapters to process you can even decide to flush in 
that function


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-17 Thread Fabrice Couvreur via ntg-context
Hi Bruce and Pablo,
I'm sorry for the late reply but I'm running out of time right now. Thanks
for trying to solve the problem. I think the problem comes from the
pyramid.png file.
Fabrice

Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
> > Hi Pablo,
> > Indeed but I posted these two files in a previous post.
>
> Hi Fabrice,
>
> the output from your ie_3.tex is too big for the list, so
> https://pdf.ousia.tk/ie_3.pdf contains it.
>
> I see no problem there, but I think that the output from
> https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come
> from a different source.
>
> BTW, I couldn’t find "ie_3.tex" in
> https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to
> be generated with messages previous to current date).
>
> If you sent the files before, it is fine to include a link to the
> relevant message in the list (such as the first link included in this
> message).
>
> BTW, it might be worth considering a GitHub or GitLab repository for not
> minimal samples. There files may be stored (and the whole repository
> might be deleted when not needed).
>
> I hope it helps,
>
> Pablo
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___