Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
Dear Michael and Otared, After updating ConTeXt to the latest version(2013.01.02.) and run the sample code.
\starttext $\hbar$ \stoptext
But I also got empty page. If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared. I also use Mac OSX mountain lion 64bit, luatex beta 0.74. In the log file, I found the message "Missing character:…" %%%%%%%%% … fonts > typescripts > unknown: library 'loc' (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} … … Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular! backend > xmp > using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' … %%%%%%%%% I think that Otared doesn't have this kind of message. Do you have any idea to fix this? Thank you. Best regards, Dalyoung
Dear Michael and Dalyoung,
In order to test again and reproduce the problem you encounter I removed my texmf-cache and typeset the example: here is what I observe.
--- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with a bar in the top third of the vertical part of the letter
--- without \enablemode[lmmath] the \hbar appears and is a roman « h » with a bar in the top third of the vertical part of the letter
Your error message seems to indicate some character in texgyretermesmath-regular is not found and points to the file
mkiv-base.map
is this file present on your context tree? On my installation the file exists but there is no mention of texgyretermesmath-regular…
So I am clueless about the issue because all three of us we have updated to
LuaTeX, Version beta-0.74.0-2012122517 (rev 4541),
ConTeXt ver: 2013.01.02 18:19 MKIV
on Mac OS X Mountain Lion.
Best regards: OK
On 3 janv. 2013, at 15:26, Jeong Dal
Dear Michael and Otared,
After updating ConTeXt to the latest version(2013.01.02.) and run the sample code.
\starttext $\hbar$ \stoptext
But I also got empty page.
If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared.
I also use Mac OSX mountain lion 64bit, luatex beta 0.74.
In the log file, I found the message "Missing character:…"
%%%%%%%%% … fonts > typescripts > unknown: library 'loc' (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} … … Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular! backend > xmp > using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' … %%%%%%%%%
I think that Otared doesn't have this kind of message.
Do you have any idea to fix this?
Thank you.
Best regards,
Dalyoung ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 1/4/2013 7:51 AM, Otared Kavian wrote:
Dear Michael and Dalyoung,
In order to test again and reproduce the problem you encounter I removed my texmf-cache and typeset the example: here is what I observe.
--- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with a bar in the top third of the vertical part of the letter
--- without \enablemode[lmmath] the \hbar appears and is a roman « h » with a bar in the top third of the vertical part of the letter
Your error message seems to indicate some character in texgyretermesmath-regular is not found and points to the file mkiv-base.map is this file present on your context tree? On my installation the file exists but there is no mention of texgyretermesmath-regular…
So I am clueless about the issue because all three of us we have updated to LuaTeX, Version beta-0.74.0-2012122517 (rev 4541), ConTeXt ver: 2013.01.02 18:19 MKIV on Mac OS X Mountain Lion.
Best regards: OK
On 3 janv. 2013, at 15:26, Jeong Dal
wrote: Dear Michael and Otared,
After updating ConTeXt to the latest version(2013.01.02.) and run the sample code.
\starttext $\hbar$ \stoptext
But I also got empty page.
If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared.
I also use Mac OSX mountain lion 64bit, luatex beta 0.74.
In the log file, I found the message "Missing character:…"
%%%%%%%%% … fonts > typescripts > unknown: library 'loc' (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} … … Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular! backend > xmp > using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' … %%%%%%%%%
I think that Otared doesn't have this kind of message.
Do you have any idea to fix this?
It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts. I don't know the reason. Is it a often used math / physics symbol? If so, it probably should end up in the math fonts. (I could load a merged copy of the math font with a regular one but rather not.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote:
It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts.
\hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant. Regards, Khaled
Hi all, thanks for your responses. @Hans: yes, hbar is extremely common in quantum physics, in fact I'd go as far to say as ubiquitous. It might be considered strange that the glyph doesn't exist, but it's actually defined in TeX as a ligature: \def\hbar{{\mathchar'26\mkern-9muh} I tried defining this but it doesn't work: I still get nothing. As it happens, \hslash seems to work fine, and in my opinion is a suitable substitute so I will just \def\hbar\hslash (although actually that didn't work, I had to do \def\hbar{\hslash} for some reason or I got an error in some tikz code I wrote). Michael -- Michael Murphy murphy.md@gmail.com On Saturday, 5 January 2013 at 04:49, Khaled Hosny wrote:
On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote:
It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts.
\hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant.
Regards, Khaled ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Well actually the last remark makes sense: I should have done
\let\hbar\hslash
On 8 January 2013 19:37, Michael Murphy
Hi all,
thanks for your responses.
@Hans: yes, hbar is extremely common in quantum physics, in fact I'd go as far to say as ubiquitous. It might be considered strange that the glyph doesn't exist, but it's actually defined in TeX as a ligature:
\def\hbar{{\mathchar'26\mkern-9muh}
I tried defining this but it doesn't work: I still get nothing.
As it happens, \hslash seems to work fine, and in my opinion is a suitable substitute so I will just
\def\hbar\hslash
(although actually that didn't work, I had to do \def\hbar{\hslash} for some reason or I got an error in some tikz code I wrote).
Michael
-- Michael Murphy murphy.md@gmail.com
On Saturday, 5 January 2013 at 04:49, Khaled Hosny wrote:
On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote:
It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts.
\hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant.
Regards, Khaled
___________________________________________________________________________________
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
___________________________________________________________________________________
participants (5)
-
Hans Hagen
-
Jeong Dal
-
Khaled Hosny
-
Michael Murphy
-
Otared Kavian