Mikael Sundqvist mickep at gmail.com
Mon Mar 28 23:54:37 CEST 2022

On Mon, Mar 28, 2022 at 11:23 PM Otared Kavian <otared at gmail.com> wrote:
>
> Hi Hans,
>
> Thank you for the new upload and the improvements you mention about the handling of math stuff. Thanks also to Mikael for the follow up of these matters.
>
> I noticed that in math mode the command \cal does not work anymore and one has to use \mathcal.
> However in almost all of my documents I use Lucida Bright OT, and in some occasions I replace its calligraphic letters by the slots from Asana Math with the following definitions:
>
> \definefallbackfamily[myfont][math][Asana Math]
>         [range={uppercasescript,lowercasescript}]
>
> % lucida font
> \definefontfamily[myfont][serif][Lucida Bright OT]
> \definefontfamily[myfont][math][LucidaBrightMathOT]
> \definefontfamily[myfont][sans][LucidaSansOT]
> \definefontfamily[myfont][mono][LucidaSansTypewriterOT]
>
> \setupbodyfont[myfont,9pt]
>
> It seems that with the changes made recently the above definitions must be modified in order to have Asana Math show up.
>
> So, I am asking for help from Mikael in this regard…

Hi Otared,

At the moment I don't know how one can use the fallback system with
calligraphic/script fonts. Let me explain in a few sentences what we
changed. Now we have \mathcal and \mathscr. If the font has both a
chancery alphabet and a roundhand alphabet, the goodie file is coded
so that \mathcal points to chancery and \mathscr to roundhand. This is
the case for Lucida. So, maybe you could try to do
\setupbodyfont[lucidadk] and then try \mathscr out. Other fonts that
have both variants are stixtwo and xits. The rest have only either
chancery style or roundhand style, and there you will get what it has.

>
> Also, it would be nice to have a few explanations about the new stuff in math alignments.

I think the new math alignments are still work in progress. One thing
that happens will probably go unnoticed, and that is the spacing. Hans
is playing a lot with the new atoms, and right now he is playing(?)
with construction atoms, ghosts and fences. There is one new type of
alignments, called simplealignments. We can use them for example to
collect some equations with a brace (and give the collection one
number).

/Mikael

\definemathsimplealign[collecteqequations][
left={\startmathfenced[sesac]},
right=\stopmathfenced,
align={1:right,2:left},
]

\starttext
%\showmakeup[mathglue]
${\mathcal ABC}$ and ${\mathscr ABC}$

\placeformula
\startformula
\startcollecteqequations
\NC x \NC = r\sin\theta\cos\phi\NR
\NC y \NC = r\sin\theta\sin\phi \NR
\NC z \NC = r\cos\theta \NR
\stopcollecteqequations
\stopformula

\stoptext
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 220328-5.pdf
Type: application/pdf
Size: 9987 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220328/474b5f47/attachment.pdf>