ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: śrīrāma <citturs@gmail.com>
Subject: Math functions not typeset inside MetaPost
Date: Tue, 19 Apr 2022 19:29:36 +0530	[thread overview]
Message-ID: <3169921.aeNJFYEL58@sreeramtplt> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2022-04-19 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 13:59 śrīrāma via ntg-context [this message]
2022-04-19 14:52 ` Mikael Sundqvist via ntg-context
2022-04-20  1:48   ` śrīrāma via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3169921.aeNJFYEL58@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).