ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Maggyero <maggyero@gmail.com>
To: ntg-context@ntg.nl
Subject: Reconciling unicode-math with LaTeX2e mathematics
Date: Thu, 3 Dec 2015 03:16:43 +0100	[thread overview]
Message-ID: <CAJ2CwZ3qSSWw2JpkUgd9G0NkwcFjEfO0aSAEkpTPMbB6fY3D+g@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2504 bytes --]

Hans Hagen wrote:
> you need to be more explicit about the problems you encounter (minimal
examples for instance)

To be more precise (please see the enclosed P.D.F. file), I would like the
same font possibilities in ConTeXt math mode as shown in the following
table from Will Robertson's talk at 41 min 40 s for LaTeX unicode-math
package:

https://youtu.be/FW9Cwh9sj5w?t=2500

In both LaTeX and ConTeXt, we have two kinds of fonts:
— a text font: multi-letter words;
— a math font: single letter words.

In math mode, using LaTeX, text fonts can use both
— text spacing: $\textit{abc ffi}$ gives abc ffi;
— math spacing: $\mathit{abc ffi}$ gives abcffi.

In math mode, using LaTeX, math fonts can use only math spacing: $abc ffi$
gives abcffi.
($abc ffi$ is equivalent to $\symit{abc ffi}$—\symxx commands were
introduced in the 2015 update of the unicode-math package by Will
Robertson, allowing upright, slanted, bold, etc. math fonts with \symup,
\symsl \symbf, etc., respectively.)

However, in math mode, using ConTeXt, text fonts can use only TEXT spacing
(no MATH spacing commands): $\text{\it abc ffi}$ gives abc ffi. So this is
the FEATURE that needs to be added. I suggest that you implement a new set
of commands called \textxx for this (text fonts with MATH spacing in math
mode—please see the enclosed P.D.F. file).

As far as math fonts are concerned using ConTeXt in math mode, it's okay:
$\it{abc ffi}$ gives abcffi. But you should note that in the source of
ConTeXt you (Hans) introduced \mathit (and \mathup & \mathtf, \mathsl,
\mathbf, etc.) as an equivalent of \it (\tf, \sl, \bf, etc., respectively)
for "A.M.S. LaTeX compatibility", though in A.M.S. LaTeX the \mathxx
commands are not MATH fonts but TEXT fonts with math spacing (as pointed
out by Will Robertson in the very first seconds from 41 min 40 s of his
talk in the link above) so it not compatible (but that's fine since the
name \mathxx in A.M.S. LaTeX was not very well chosen in the first place
but thereafter kept for backward compatibility, so that in ConTeXt we can
keep it used for MATH fonts instead and introduce \textxx for TEXT fonts
with math spacing, as suggested in the previous paragraph).

Please see the enclosed P.D.F. file that sums everything up to understand
visually what I mean with the missing feature I request (adding new \textxx
commands for text fonts with MATH spacing in math mode), and let me know
what you think.


Maggyero

[-- Attachment #1.2: Type: text/html, Size: 2939 bytes --]

[-- Attachment #2: math_mode_fonts.pdf --]
[-- Type: application/pdf, Size: 23844 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2015-12-03  2:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03  2:16 Maggyero [this message]
2015-12-03 12:33 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2015-12-03  2:22 Maggyero
2015-11-30 17:20 Maggyero
2015-11-30 17:44 ` Hans Hagen

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=CAJ2CwZ3qSSWw2JpkUgd9G0NkwcFjEfO0aSAEkpTPMbB6fY3D+g@mail.gmail.com \
    --to=maggyero@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).