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

* Re: Functionnames disappearing (sometimes)
  2021-06-18  9:44 Functionnames disappearing (sometimes) Mikael Sundqvist
@ 2021-06-18 11:27 ` Mikael Sundqvist
  2021-06-19 11:12   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Sundqvist @ 2021-06-18 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

It seems that

\setupmathematics[
functionstyle=normal,
]

is the problematic one here (it is needed(?) in the Neo Euler case to
have function names set upright). The following file shows the problem
as well:

%%%
\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
%%%

I had a backup of the file I was working on, and the problem was not
present on june 13 (not sure I had a completely updated ConTeXt by
then).

/Mikael

On Fri, Jun 18, 2021 at 11:44 AM Mikael Sundqvist <mickep@gmail.com> wrote:
>
> 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
___________________________________________________________________________________
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

* Re: Functionnames disappearing (sometimes)
  2021-06-18 11:27 ` Mikael Sundqvist
@ 2021-06-19 11:12   ` Hans Hagen
  2021-06-19 20:01     ` Otared Kavian
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-06-19 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mikael Sundqvist

On 6/18/2021 1:27 PM, Mikael Sundqvist wrote:
> Hi,
> 
> It seems that
> 
> \setupmathematics[
> functionstyle=normal,
> ]
> 
> is the problematic one here (it is needed(?) in the Neo Euler case to
> have function names set upright). The following file shows the problem
> as well:
> 
> %%%
> \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
> %%%
> 
> I had a backup of the file I was working on, and the problem was not
> present on june 13 (not sure I had a completely updated ConTeXt by
> then).
fixed in next upload (later today)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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

* Re: Functionnames disappearing (sometimes)
  2021-06-19 11:12   ` Hans Hagen
@ 2021-06-19 20:01     ` Otared Kavian
  2021-06-19 21:27       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Otared Kavian @ 2021-06-19 20:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I don’t know whether the issue reported by Mikael S. is related to the following: since last week (I guess) some math sympbols are not shown either, such as \bigcap and \bigcup, even using version 2021.06.18 23:37. An example is:

\starttext
$A \cup B = X \cap Y$
\startformula
A \bigcup B = X \bigcap Y
\stopformula
\stoptext

Best regards: Otared

> On 19 Jun 2021, at 13:12, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 6/18/2021 1:27 PM, Mikael Sundqvist wrote:
>> Hi,
>> It seems that
>> \setupmathematics[
>> functionstyle=normal,
>> ]
>> is the problematic one here (it is needed(?) in the Neo Euler case to
>> have function names set upright). The following file shows the problem
>> as well:
>> %%%
>> \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
>> %%%
>> I had a backup of the file I was working on, and the problem was not
>> present on june 13 (not sure I had a completely updated ConTeXt by
>> then).
> fixed in next upload (later today)
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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

* Re: Functionnames disappearing (sometimes)
  2021-06-19 20:01     ` Otared Kavian
@ 2021-06-19 21:27       ` Hans Hagen
  2021-06-20  8:57         ` Otared Kavian
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-06-19 21:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Otared Kavian

On 6/19/2021 10:01 PM, Otared Kavian wrote:
> Hi,
> 
> I don’t know whether the issue reported by Mikael S. is related to the following: since last week (I guess) some math sympbols are not shown either, such as \bigcap and \bigcup, even using version 2021.06.18 23:37. An example is:
> 
> \starttext
> $A \cup B = X \cap Y$
> \startformula
> A \bigcup B = X \bigcap Y
> \stopformula
> \stoptext
it's a bug i introduced in the engine .. you can try a newer bin from:

https://dl.contextgarden.net/build/luametatex/


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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

* Re: Functionnames disappearing (sometimes)
  2021-06-19 21:27       ` Hans Hagen
@ 2021-06-20  8:57         ` Otared Kavian
  0 siblings, 0 replies; 6+ messages in thread
From: Otared Kavian @ 2021-06-20  8:57 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

Hi Hans,

Many thanks !
Yes the new engine fixes the issues.

Best regards: Otared

> On 19 Jun 2021, at 23:27, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 6/19/2021 10:01 PM, Otared Kavian wrote:
>> Hi,
>> I don’t know whether the issue reported by Mikael S. is related to the following: since last week (I guess) some math sympbols are not shown either, such as \bigcap and \bigcup, even using version 2021.06.18 23:37. An example is:
>> \starttext
>> $A \cup B = X \cap Y$
>> \startformula
>> A \bigcup B = X \bigcap Y
>> \stopformula
>> \stoptext
> it's a bug i introduced in the engine .. you can try a newer bin from:
> 
> https://dl.contextgarden.net/build/luametatex/
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------

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