* punctuation vs font switch
@ 2012-10-03 20:26 Andreas Mang
2012-10-03 21:30 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Mang @ 2012-10-03 20:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear all,
at the risk of being met with an incredulous shake of the head: I am using xits as math font and pagella as main font (for several reasons). Obviously, the punctuation (in particular "comma") does not match. Is there an easy and quick global fix!?
Your help is very much appreciated.
Cheers,
Andreas
% minimal example
\starttypescript [myface]
\definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
\definetypeface [\typescriptone] [ss] [sans] [helvetica] [default]
\definetypeface [\typescriptone] [tt] [mono] [modern] [default]
\definetypeface [\typescriptone] [mm] [math] [xits] [default]
\stoptypescript
\setupbodyfont[myface,11pt]
\starttext
$1{,}2$ 1,2 % difference
$1\text{,}2$ % not so nice work around and problematic since the font size does not change (superscript, subscript,...)
\stoptext
% stop minimal example
P.S. Clearly, this does not matter for formulas but its different for inline (in text) math expressions.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: punctuation vs font switch
2012-10-03 20:26 punctuation vs font switch Andreas Mang
@ 2012-10-03 21:30 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2012-10-03 21:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 3 Oct 2012, Andreas Mang wrote:
> Dear all,
>
> at the risk of being met with an incredulous shake of the head: I am using xits as math font and pagella as main font (for several reasons). Obviously, the punctuation (in particular "comma") does not match. Is there an easy and quick global fix!?
>
> Your help is very much appreciated.
>
> Cheers,
> Andreas
>
> % minimal example
> \starttypescript [myface]
> \definetypeface [\typescriptone] [rm] [serif] [pagella] [default]
> \definetypeface [\typescriptone] [ss] [sans] [helvetica] [default]
> \definetypeface [\typescriptone] [tt] [mono] [modern] [default]
> \definetypeface [\typescriptone] [mm] [math] [xits] [default]
> \stoptypescript
> \setupbodyfont[myface,11pt]
>
> \starttext
>
> $1{,}2$ 1,2 % difference
>
> $1\text{,}2$ % not so nice work around and problematic since the font size does not change (superscript, subscript,...)
(Untested), but I thought that \text should change the size of the text
font in superscripts and subscripts, otherwise it is a bug in the
implementation (wrt amsmath implementation)
> \stoptext
> % stop minimal example
This is something I'd be interested in as well, but for a different
reason. I like to use Pagella + Euler for math, but there are some symbols
missing in Euler (in particular, black board bold
(https://github.com/khaledhosny/euler-otf/issues/2), but other symbols as
well). As an emergency measure, it will be useful to pick these symbols
from a fallback font). So, an interface for something like this will be
useful (I believe that simplefonts does something similar for Asian
languages, but I am not sure if it can handle math fonts as well).
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-03 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 20:26 punctuation vs font switch Andreas Mang
2012-10-03 21:30 ` Aditya Mahajan
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).