ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Unwanted upright math in MkIV
       [not found] <mailman.148.1621783997.1130.ntg-context@ntg.nl>
@ 2021-05-23 16:26 ` Gavin
  2021-05-23 21:36   ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Gavin @ 2021-05-23 16:26 UTC (permalink / raw)
  To: ntg-context

Aditya,

> On Sun, 23 May 2021, Gavin wrote:
> 
>> Hello,
>> 
>> I’m using ConTeXt with MacOS. The current version of MkIV produces upright math rather than italic. MWE:
>> 
>> \starttext
>>    \m{f = \beta}
>> \stoptext
> 
> Works correctly here. What does context --version say?

My log file has this near the beginning:

...
This is LuaTeX, Version 1.13.0 (TeX Live 2021) 
…
system          > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: english/english
…

I am putting the entire log file below, since it isn’t terribly long. I hope that’s not bad etiquette. (I’m fairly new here.)

Thanks!
Gavin


> mtx-context     | redirect luametatex -> luatex: luatex --luaonly "/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context --luatex --autopdf GlyphExp.tex --redirected
> 
> resolvers       | formats | executing runner 'run luatex format': /Users/Gavin/context-osx-64/tex/texmf-osx-64/bin/luatex --jobname="GlyphExp" --fmt=/Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt --lua=/Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui cont-yes.mkiv --c:autopdf --c:currentrun=1 --c:engine="luatex" --c:fulljobname="./GlyphExp.tex" --c:input="./GlyphExp.tex" --c:kindofrun=1 --c:luatex --c:maxnofruns=9 --c:redirected --c:texmfbinpath="/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin"
> This is LuaTeX, Version 1.13.0 (TeX Live 2021) 
>  system commands enabled.
> open source     > level 1, order 1, name '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          > 
> system          > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: english/english
> system          > 
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'GlyphExp', input './GlyphExp', result 'GlyphExp'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/Users/Gavin/Desktop/GlyphExp/GlyphExp.tex'
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> backend         > xmp > using file '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 3, name '/Users/Gavin/Desktop/GlyphExp/GlyphExp.tex'
> close source    > level 1, order 3, name '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: /Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: <none>
> mkiv lua stats  > stored bytecode data: 457 modules (0.242 sec), 96 tables (0.015 sec), 553 chunks (0.257 sec)
> mkiv lua stats  > traced context: maxstack: 1424, freed: 0, unreachable: 1424
> mkiv lua stats  > cleaned up reserved nodes: 57 nodes, 9 lists of 442
> mkiv lua stats  > node memory usage: 11 attribute, 4 attribute_list, 1 glue, 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances (re)created, 38 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: internal: 132, file: 64, direct: 2, late: 0, function 507, total: 705 (705 per page)
> mkiv lua stats  > randomizer: resumed with value 0.58778292965144
> mkiv lua stats  > result saved in file: GlyphExp.pdf, compresslevel 3, objectcompresslevel 1
> mkiv lua stats  > loaded patterns: en::1, load time: 0.000
> mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.116, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.200 seconds 
> mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
> mkiv lua stats  > used engine: luatex version: 1.13, functionality level: 7420, banner: this is luatex, version 1.13.0 (tex live 2021)
> mkiv lua stats  > used hash slots: 46714 of 65536 + 250000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 106 MB, ctx: 106 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.545 seconds, 1 processed pages, 1 shipped pages, 1.835 pages/second
> mtx-context     | pdfview methods: auto default okular pdfxcview sumatra, current method: sumatra (directives_pdfview_method)
> pdfview         | command: wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC "GlyphExp.pdf" 1>/dev/null 2>/dev/null &
> mtx-context     | pdfview overhead: 0.004 seconds
> system          | total runtime: 0.865 seconds

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Unwanted upright math in MkIV
  2021-05-23 16:26 ` Unwanted upright math in MkIV Gavin
@ 2021-05-23 21:36   ` Hans Hagen
  2021-05-24 13:00     ` Gavin
  2021-05-26 15:14     ` Gavin
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2021-05-23 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Gavin

On 5/23/2021 6:26 PM, Gavin wrote:
> Aditya,
> 
>> On Sun, 23 May 2021, Gavin wrote:
>>
>>> Hello,
>>>
>>> I’m using ConTeXt with MacOS. The current version of MkIV produces upright math rather than italic. MWE:
>>>
>>> \starttext
>>>     \m{f = \beta}
>>> \stoptext
>>
>> Works correctly here. What does context --version say?
> 
> My log file has this near the beginning:
> 
> ...
> This is LuaTeX, Version 1.13.0 (TeX Live 2021)
> …
> system          > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: english/english
                                   ^^^^^^^^^^

math should work ok in fridays version (there was a hickup earlier that 
week because i moved some plugs to to another lua callback and forgot 
something)

> I am putting the entire log file below, since it isn’t terribly long. I hope that’s not bad etiquette. (I’m fairly new here.)
no problem, as long as one doesn't end a mail with 'please don't print 
it in order to save trees' and then adds tons of visual attachments 
(logos) that took energy to transport it's fine with me (also some text 
bytes in mail are neglectable to whatever gets sent around or is part of 
web pages)

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] 8+ messages in thread

* Re: Unwanted upright math in MkIV
  2021-05-23 21:36   ` Hans Hagen
@ 2021-05-24 13:00     ` Gavin
  2021-05-26 15:14     ` Gavin
  1 sibling, 0 replies; 8+ messages in thread
From: Gavin @ 2021-05-24 13:00 UTC (permalink / raw)
  To: ntg-context

On May 23, 2021, at 3:36 PM, Hans Hagen <j.hagen@xs4all.nl> wrote:
> On 5/23/2021 6:26 PM, Gavin wrote:
>> Aditya,
>>> On Sun, 23 May 2021, Gavin wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I’m using ConTeXt with MacOS. The current version of MkIV produces upright math rather than italic. MWE:
>>>> 
>>>> \starttext
>>>>    \m{f = \beta}
>>>> \stoptext
>>> 
>>> Works correctly here. What does context --version say?
>> My log file has this near the beginning:
>> ...
>> This is LuaTeX, Version 1.13.0 (TeX Live 2021)
>> …
>> system          > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: english/english
>                                  ^^^^^^^^^^
> math should work ok in fridays version 

It looks like I have Friday’s version. Just to be sure, I reinstalled from scratch by downloading the MacOS X86 file from the install page and running install.sh. I still get upright math, but only with MkIV.

I also added \setupbodyfont […] to try different fonts, thinking that maybe a font was messed up, but I get upright math in every font I try.

Finally, I went to the command line, used

	context --luatex GlyphExp.tex

and opened in a different previewer (Apple Preview) in case TexShop was misbehaving. Still upright math.

Any other ideas? This isn’t urgent. I can just wait for the next update if that might help.

Gavin
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Unwanted upright math in MkIV
  2021-05-23 21:36   ` Hans Hagen
  2021-05-24 13:00     ` Gavin
@ 2021-05-26 15:14     ` Gavin
  2021-05-26 15:46       ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Gavin @ 2021-05-26 15:14 UTC (permalink / raw)
  To: ntg-context

I have more information on my upright math problem, but still no fix. Here is my new MWE:

\starttext
\showotfcomposition{bodyfont}{}{a=b \m{a=b}}
\stoptext

I may not be using this debugging command correctly, but it is returning useful information. The result is correct and the same in TeX Live 2021 MkIV and in the most recent LMTX. Notice that glyphs selected for “a” and “b” are different in the text and math:

LuaTeX, Version 1.13.2 (TeX Live 2021) 
ConTeXt  ver: 2021.03.05 19:11 MKIV  fmt: 2021.5.11
> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]

ConTeXt  ver: 2021.05.25 18:03 LMTX  fmt: 2021.5.25
> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]

However, it is wrong in the most recent MkIV. The glyphs for “a” and “b” are the same in the text and math, even though the switch to math is recognized. (This switch is also evident in the pdf output. There is no space around the “=“ in the text, but it is correct for the math.)

LuaTeX, Version 1.13.0 (TeX Live 2021) 
ConTeXt  ver: 2021.05.25 18:03 MKIV  fmt: 2021.5.25
> a=ba=b U+61:a U+3D:= U+62:b [glue][math] U+61:a [kern][glue] U+3D:= [glue] U+62:b [math]

What could cause MkIV to select upright glyphs when it knows it is typesetting math? One difference is the version of LuaTeX. Could this need to be updated?

Gavin

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Unwanted upright math in MkIV
  2021-05-26 15:14     ` Gavin
@ 2021-05-26 15:46       ` Hans Hagen
  2021-05-26 16:07         ` Fixed: " Gavin
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2021-05-26 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Gavin

On 5/26/2021 5:14 PM, Gavin wrote:
> I have more information on my upright math problem, but still no fix. Here is my new MWE:
> 
> \starttext
> \showotfcomposition{bodyfont}{}{a=b \m{a=b}}
> \stoptext
> 
> I may not be using this debugging command correctly, but it is returning useful information. The result is correct and the same in TeX Live 2021 MkIV and in the most recent LMTX. Notice that glyphs selected for “a” and “b” are different in the text and math:
> 
> LuaTeX, Version 1.13.2 (TeX Live 2021)
> ConTeXt  ver: 2021.03.05 19:11 MKIV  fmt: 2021.5.11
>> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]
> 
> ConTeXt  ver: 2021.05.25 18:03 LMTX  fmt: 2021.5.25
>> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]
> 
> However, it is wrong in the most recent MkIV. The glyphs for “a” and “b” are the same in the text and math, even though the switch to math is recognized. (This switch is also evident in the pdf output. There is no space around the “=“ in the text, but it is correct for the math.)
> 
> LuaTeX, Version 1.13.0 (TeX Live 2021)
> ConTeXt  ver: 2021.05.25 18:03 MKIV  fmt: 2021.5.25
>> a=ba=b U+61:a U+3D:= U+62:b [glue][math] U+61:a [kern][glue] U+3D:= [glue] U+62:b [math]
> 
> What could cause MkIV to select upright glyphs when it knows it is typesetting math? One difference is the version of LuaTeX. Could this need to be updated?
todays upload should be ok (when i adapted some lmtx code i also did 
that in mkiv which should not happen)


-----------------------------------------------------------------
                                           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] 8+ messages in thread

* Fixed:  Unwanted upright math in MkIV
  2021-05-26 15:46       ` Hans Hagen
@ 2021-05-26 16:07         ` Gavin
  0 siblings, 0 replies; 8+ messages in thread
From: Gavin @ 2021-05-26 16:07 UTC (permalink / raw)
  To: ntg-context

On May 26, 2021, at 9:46 AM, Hans Hagen <j.hagen@xs4all.nl> wrote:
> On 5/26/2021 5:14 PM, Gavin wrote:
>> I have more information on my upright math problem, but still no fix. Here is my new MWE:
>> \starttext
>> \showotfcomposition{bodyfont}{}{a=b \m{a=b}}
>> \stoptext
>> I may not be using this debugging command correctly, but it is returning useful information. The result is correct and the same in TeX Live 2021 MkIV and in the most recent LMTX. Notice that glyphs selected for “a” and “b” are different in the text and math:
>> LuaTeX, Version 1.13.2 (TeX Live 2021)
>> ConTeXt  ver: 2021.03.05 19:11 MKIV  fmt: 2021.5.11
>>> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]
>> ConTeXt  ver: 2021.05.25 18:03 LMTX  fmt: 2021.5.25
>>> a=b 𝑎 = 𝑏 U+61:a U+3D:= U+62:b [glue][math] U+1D44E:𝑎 [glue] U+3D:= [glue] U+1D44F:𝑏 [math]
>> However, it is wrong in the most recent MkIV. The glyphs for “a” and “b” are the same in the text and math, even though the switch to math is recognized. (This switch is also evident in the pdf output. There is no space around the “=“ in the text, but it is correct for the math.)
>> LuaTeX, Version 1.13.0 (TeX Live 2021)
>> ConTeXt  ver: 2021.05.25 18:03 MKIV  fmt: 2021.5.25
>>> a=ba=b U+61:a U+3D:= U+62:b [glue][math] U+61:a [kern][glue] U+3D:= [glue] U+62:b [math]
>> What could cause MkIV to select upright glyphs when it knows it is typesetting math? One difference is the version of LuaTeX. Could this need to be updated?
> todays upload should be ok (when i adapted some lmtx code i also did that in mkiv which should not happen)

Today’s version works great. Thanks!

-Gavin

___________________________________________________________________________________
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] 8+ messages in thread

* Re: Unwanted upright math in MkIV
  2021-05-23 13:07 Gavin
@ 2021-05-23 14:26 ` Aditya Mahajan
  0 siblings, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2021-05-23 14:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

On Sun, 23 May 2021, Gavin wrote:

> Hello,
> 
> I’m using ConTeXt with MacOS. The current version of MkIV produces upright math rather than italic. MWE:
> 
> \starttext
>     \m{f = \beta}
> \stoptext

Works correctly here. What does context --version say?

Aditya

[-- Attachment #2: 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] 8+ messages in thread

* Unwanted upright math in MkIV
@ 2021-05-23 13:07 Gavin
  2021-05-23 14:26 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Gavin @ 2021-05-23 13:07 UTC (permalink / raw)
  To: ntg-context

Hello,

I’m using ConTeXt with MacOS. The current version of MkIV produces upright math rather than italic. MWE:

\starttext
    \m{f = \beta}
\stoptext

The above example produces italic math TeXLive 2021 ConTeXt and in the current, LMTX. Looks like a bug to me, but maybe I am doing something wrong. I am running ConTeXt from TexShop using this engine:

#!/bin/zsh
export PATH=/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin:$PATH
~/context-osx-64/tex/texmf-osx-64/bin/context --luatex --autopdf "$1”

Thanks!
Gavin
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2021-05-26 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.148.1621783997.1130.ntg-context@ntg.nl>
2021-05-23 16:26 ` Unwanted upright math in MkIV Gavin
2021-05-23 21:36   ` Hans Hagen
2021-05-24 13:00     ` Gavin
2021-05-26 15:14     ` Gavin
2021-05-26 15:46       ` Hans Hagen
2021-05-26 16:07         ` Fixed: " Gavin
2021-05-23 13:07 Gavin
2021-05-23 14:26 ` 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).