From: jfbu <jfbu@free.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: news3@nililand.de
Subject: Re: font features in math
Date: Mon, 2 May 2016 20:35:40 +0200 [thread overview]
Message-ID: <28D53263-C5F8-4DC3-9400-750C26E96A65@free.fr> (raw)
In-Reply-To: <F1F793F9-04B3-475E-87F4-01A4A3B7F224@free.fr>
Le 2 mai 2016 à 20:15, jfbu <jfbu@free.fr> a écrit :
>
>
>> \font\fixmath=\fontname\textfont\foo mode=base;
>> \textfont\foo=\fixmath
>
> I will use a better approach as this one does not work
> when the thing ends as "at 7.0pt" for example, but in principle
> I see I can do surgery on the \fontname and replace there
> mode=node if it exists with mode=base.
>
> I only have to figure out the best time to do that
> in a context (no pun intended) where people may change
> "\mathversion" (latex thing).
>
\begingroup
\catcode`N 12
\catcode`O 12
\catcode`D 12
\catcode`E 12
\lowercase{\gdef\FixMathFont@i #1=NODE;#2\relax #3}%
{\font\fixmath=#1=base;#2\relax\global#3\symmtoperatorfont=\fixmath}
\endgroup
\def\FixMathFont
{\setbox0\hbox{\MTeverymathoff$\relax$%
\expandafter\FixMathFont@i\fontname\textfont\symmtoperatorfont\relax\textfont
\expandafter\FixMathFont@i\fontname\scriptfont\symmtoperatorfont\relax\scriptfont
\expandafter\FixMathFont@i\fontname\scriptscriptfont\symmtoperatorfont\relax\scriptscriptfont}%
}
I only need to add the layer to do nothing if "=node" is not found, and
we are allset.
Jean-François
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-05-02 18:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-01 9:22 Ulrike Fischer
2016-05-01 9:45 ` Philipp Gesang
2016-05-01 10:53 ` Ulrike Fischer
2016-05-01 12:46 ` Hans Hagen
2016-05-02 16:47 ` Philipp Gesang
2016-05-02 17:51 ` jfbu
2016-05-02 18:15 ` jfbu
2016-05-02 18:35 ` jfbu [this message]
2016-05-03 9:11 ` NEW : ConTeXt documentation in French (Wikibook) Jean-Pierre Delange
2016-05-03 9:49 ` Otared Kavian
2016-05-02 22:13 ` font features in math Ulrike Fischer
2016-05-03 7:25 ` jfbu
2016-05-04 7:53 ` Hans Hagen
2016-05-04 8:38 ` Ulrike Fischer
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=28D53263-C5F8-4DC3-9400-750C26E96A65@free.fr \
--to=jfbu@free.fr \
--cc=news3@nililand.de \
--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).