From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: śrīrāma <citturs@gmail.com>, "Jeong Dal" <haksan@me.com>
Subject: Re: $\sin \theta$ behave differently in metafun
Date: Sat, 16 Apr 2022 10:26:54 +0530 [thread overview]
Message-ID: <4390910.LvFx2qVVIh@sreeramtplt> (raw)
In-Reply-To: <2C643FDC-8DF3-4956-A10F-AF44ACD1B6FE@me.com>
On 4/16/22 4:34 AM Jeong Dal via ntg-context wrote:
> I use $\sin \theta$ and $\cos \theta$ behave differently in text and in
metafun.
> It works well sometime before but it doesn’t in metafun now.
> What is wrong in my example?
>
> Thank you for reading.
> Best regards,
>
> Dalyoung
>
> Here is a MWE.
>
> \startbuffer[pointCircle]
> numeric u; u:=1cm;
> pair A,B,C;
> draw fullcircle scaled 4u;
> A := dir(25)*2u;
> label.top(textext("$P=(\cos\theta, \sin\theta)$"), A);
> B := dir(-25)*2u;
> label.bot(textext("$Q=(\cos(-\theta), \sin(-\theta))$"), B);
> C := (xpart A, 0); label.lrt(textext("$A$"), C);
> label(textext("$O$"), origin);
> \stopbuffer
> \starttext
> I'd like use $\sin$ and $\cos$ in the metafun. But it shows strange text
instead
> of $\sin$ and $\cos$.
>
> \processMPbuffer[pointCircle]
>
> \stoptext
Hi Hans and Mikael (and others on the list),
I can confirm that even with the newest LMTX [2022.04.15 20:20] the above might
actually be a bug. mfunctions inside MP strings are not properly rendred. A
tiny MWE:
\starttext
\startMPcode
draw textext("\m{\max_i x_i}");
\stopMPcode
\stoptext
Could trace it down to '\math_function_handle_label' [math-ini] but not sure
what MP is doing. Also looked into mp-mlib, mlib-pps but could not figure it
out. I request you to kindly look into it.
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-04-16 4:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3577.1649815752.1172.ntg-context@ntg.nl>
2022-04-15 23:04 ` Jeong Dal via ntg-context
2022-04-16 4:56 ` śrīrāma via ntg-context [this message]
2022-04-16 10:30 ` Bruce Horrocks via ntg-context
2022-04-16 11:01 ` śrīrāma via ntg-context
2022-04-16 11:32 ` Pablo Rodriguez 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=4390910.LvFx2qVVIh@sreeramtplt \
--to=ntg-context@ntg.nl \
--cc=citturs@gmail.com \
--cc=haksan@me.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).