fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Problem with `\mathbf{\Gamma}` mark-up

Open jfbu opened this issue 7 years ago • 1 comments

People have used \mathbf{\Gamma} mark-up in legacy TeX, or even {\bf\Gamma}. This works ok with the default LaTeX fonts and pdfLaTeX. When one switches say to xelatex with fontspec one will see mysterious message

Missing character: There is no ^^@ in font [lmroman10-regular]:mapping=tex-text
;!

in log. I encountered this when building the SciPy documentation (actually I had a problem with \mathbf{\Sigma} and the one with \Gamma was due to a \rm in an equation). The missing glyph is easily overlooked in such a document with about 2300 pages!

The problem occurred because the build was done with xelatex and fontspec to overcome Unicode characters issue which are frequent in such collaborative works where contributors use LaTeX only for math notation (MathJax rendering for HTML builds) and are not necessarily knowledgeable about it.

What is interest of not doing no-math in default font situation ?

jfbu avatar Mar 31 '18 10:03 jfbu

@jfbu Thanks for the comments. I can understand the frustration. I think if I were to change a default it would be the definition of the uppercase Greek letters. This has come up elsewhere for unicode-math as well — in a text font context (which is what inside \mathbf etc is), it would make sense for greek letters to have text definitions.

I'm not 100% sure where such a definition should live, but I'll keep this issue to remind me about it.

wspr avatar Jul 31 '18 11:07 wspr