ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Functionnames disappearing (sometimes)
@ 2021-06-18  9:44 Mikael Sundqvist
  2021-06-18 11:27 ` Mikael Sundqvist
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Sundqvist @ 2021-06-18  9:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

Hi,

I noticed something strange today. If I use computer modern unicode
(the concrete font) together with Neo Euler math then sometimes
function names (like \sin, \cos, \tan) disappear. Sometimes they show
(in non-displayed math and in fractions(?)).

Attached is a file showing the problem, together with the output and
the typescript file. I use the latest ConTeXt version and I have
cleared the cache, but no change. Maybe I'm overlooking something, but
what?

/Mikael

[-- Attachment #2: functions.pdf --]
[-- Type: application/pdf, Size: 9528 bytes --]

[-- Attachment #3: type-imp-concrete-euler.mkxl --]
[-- Type: application/octet-stream, Size: 3046 bytes --]

\loadtypescriptfile[texgyre]

\resetfontfallback  [concrete-euler-fix]
\definefontfallback[concrete-euler-fix][texgyrepagella-math] [0x022EE,0x022F0,0x022F1,0x02661,0x02220][force=yes]


\starttypescriptcollection[concrete-euler]

    %\definefontfeature[default-slanted-concrete][default][slant=.2]
    %\definefontfeature[none-slanted-concrete]   [none]   [slant=.2]

    \starttypescript [\s!serif] [concrete-euler-serif]
        \definefontsynonym [\s!Serif]           [\s!file:cmunorm]   [\s!features=\s!default]
        \definefontsynonym [\s!SerifItalic]     [\s!file:cmunoti]   [\s!features=\s!default]
        \definefontsynonym [\s!SerifSlanted]    [\s!file:cmunorm]   [\s!features=default-slanted-concrete]
        \definefontsynonym [\s!SerifBold]       [\s!file:cmunobx]   [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:cmunobi]   [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldSlanted][\s!file:cmunobx]   [\s!features=default-slanted-concrete]
    \stoptypescript

    \starttypescript [\s!sans] [concrete-euler-sans]
        \definefontsynonym [\s!Sans]            [\s!file:cmunss]    [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]      [\s!file:cmunsi]    [\s!features=\s!default]
        \definefontsynonym [\s!SansSlanted]     [\s!file:cmunss]    [\s!features=default-slanted-concrete]
        \definefontsynonym [\s!SansBold]        [\s!file:cmunsx]    [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic]  [\s!file:cmunso]    [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldSlanted] [\s!file:cmunsx]    [\s!features=default-slanted-concrete]
    \stoptypescript

    \starttypescript [\s!mono] [concrete-euler-mono]
        \definefontsynonym [\s!Mono]            [\s!file:cmuntt]    [\s!features=\s!none]
        \definefontsynonym [\s!MonoItalic]      [\s!file:cmunit]    [\s!features=\s!none]
        \definefontsynonym [\s!MonoSlanted]     [\s!file:cmunst]    [\s!features=\s!none]
        \definefontsynonym [\s!MonoBold]        [\s!file:cmuntb]    [\s!features=\s!none]
        \definefontsynonym [\s!MonoBoldItalic]  [\s!file:cmuntx]    [\s!features=\s!none]
        \definefontsynonym [\s!MonoBoldSlanted] [\s!file:cmuntb]    [\s!features=none-slanted-concrete]
    \stoptypescript

    \starttypescript [\s!math] [concrete-euler-math] [\s!name]
        \definefontsynonym[\s!MathRoman] [\s!file:euler.otf] [\s!features=\s!math\mathsizesuffix,\s!fallbacks=concrete-euler-fix]    
    \stoptypescript

    \starttypescript [concrete-euler]
        \definetypeface [concrete-euler] [\s!rm] [\s!serif] [concrete-euler-serif] [\s!default]
        \definetypeface [concrete-euler] [\s!ss] [\s!sans]  [concrete-euler-sans] [\s!default]
        \definetypeface [concrete-euler] [\s!tt] [\s!mono]  [concrete-euler-mono] [\s!default][rscale=1]
        \definetypeface [concrete-euler] [\s!mm] [\s!math]  [concrete-euler-math] [\s!default]
        \quittypescriptscanning
    \stoptypescript

\stoptypescriptcollection

[-- Attachment #4: functions.mkxl --]
[-- Type: application/octet-stream, Size: 286 bytes --]

\setupbodyfont[concrete-euler]

\setupmathematics[
functionstyle=normal,
]

\starttext
We have $\cos\alpha$, $\sin\alpha$, $\tan\alpha$,
\startformula
\cos\alpha=\frac{a}{c},\quad
\sin\alpha=\frac{b}{c},\quad
\tan\alpha=\frac{\sin\alpha}{\cos\alpha}=\frac{b}{a}.
\stopformula
\stoptext

[-- Attachment #5: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-20  8:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  9:44 Functionnames disappearing (sometimes) Mikael Sundqvist
2021-06-18 11:27 ` Mikael Sundqvist
2021-06-19 11:12   ` Hans Hagen
2021-06-19 20:01     ` Otared Kavian
2021-06-19 21:27       ` Hans Hagen
2021-06-20  8:57         ` Otared Kavian

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).