ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math functions not typeset inside MetaPost
@ 2022-04-19 13:59 śrīrāma via ntg-context
  2022-04-19 14:52 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: śrīrāma via ntg-context @ 2022-04-19 13:59 UTC (permalink / raw)
  To: ntg-context; +Cc: śrīrāma

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

Hi Hans,

[I am sending this again since the previous mails regarding were sent during 
the weekend].

I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try 
to use math functions inside MetaPost strings, the function is not typeset 
correctly. Please consider the following MWE:

  \starttext
    \startMPcode
    draw textext("\m{\max_i x_i}");
    \stopMPcode
  \stoptext

which produces the output attached here as an image. Instead of the mfunction 
maxᵢ xᵢ 
some form of the string mathfunctionhandlelabel is typeset.

I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and 
mlib-pps but could not figure out what is going wrong. I wonder if there is a 
backslash missing somewhere. I am a little worried since I use MetaFun in 
conjunction with maths and could not figure out what the issue is.

Please see the original post by Dalyoung here:
  https://mailman.ntg.nl/pipermail/ntg-context/2022/105462.html

Please advise.

Thank you,
  Sreeram

[-- Attachment #2: mp-math.png --]
[-- Type: image/png, Size: 6365 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Math functions not typeset inside MetaPost
  2022-04-19 13:59 Math functions not typeset inside MetaPost śrīrāma via ntg-context
@ 2022-04-19 14:52 ` Mikael Sundqvist via ntg-context
  2022-04-20  1:48   ` śrīrāma via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-04-19 14:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

On Tue, Apr 19, 2022 at 3:59 PM śrīrāma via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Hi Hans,
>
> [I am sending this again since the previous mails regarding were sent during
> the weekend].
>
> I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try
> to use math functions inside MetaPost strings, the function is not typeset
> correctly. Please consider the following MWE:
>
>   \starttext
>     \startMPcode
>     draw textext("\m{\max_i x_i}");
>     \stopMPcode
>   \stoptext
>
> which produces the output attached here as an image. Instead of the mfunction
> maxᵢ xᵢ
> some form of the string mathfunctionhandlelabel is typeset.
>
> I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and
> mlib-pps but could not figure out what is going wrong. I wonder if there is a
> backslash missing somewhere. I am a little worried since I use MetaFun in
> conjunction with maths and could not figure out what the issue is.
>
> Please see the original post by Dalyoung here:
>   https://mailman.ntg.nl/pipermail/ntg-context/2022/105462.html
>
> Please advise.
>
> Thank you,
>   Sreeram___________________________________________________________________________________

Thanks, this will be fixed in the next upload (that will take place
soon as far as I've heard).

Best regards, Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Math functions not typeset inside MetaPost
  2022-04-19 14:52 ` Mikael Sundqvist via ntg-context
@ 2022-04-20  1:48   ` śrīrāma via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: śrīrāma via ntg-context @ 2022-04-20  1:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mikael Sundqvist; +Cc: śrīrāma

On 4/19/22 8:22 PM Mikael Sundqvist via ntg-context wrote:
> Thanks, this will be fixed in the next upload (that will take place
> soon as far as I've heard).

Thanks very much for the quick reply. Yes: it is fixed in the latest upload 
just now.

Thanks,
  Sreeram


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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-20  1:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 13:59 Math functions not typeset inside MetaPost śrīrāma via ntg-context
2022-04-19 14:52 ` Mikael Sundqvist via ntg-context
2022-04-20  1:48   ` śrīrāma via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).