You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, L"\mathbf{x} gets parsed to TeXChar 'x' [index 89 in NewComputerModern - 10 Bold Italic].
This deviates from the standard LaTeX behavior, where we would expect an upright bold character.
In fact, the LaTeX package unicode-math offers options (math-style and bold-style) to conform to different notational standards. MathTeXEngine currently mostly adheres to the "ISO" style (except for Greek letters, as per #87).
I guess, this is due to _default_font_mapping[:char]=:italic?
I think, in the long run it would be great to also enable the user to choose either norm (like unicode-math does) or be consistent with the LaTeX style.
as a quick hack, which indead works as expected: generate_tex_elements(L"\mathbf{x}", MYFONT)[1][1]
gives TeXChar 'x' [index 89 in NewComputerModern - 10 Bold].
Unfortunately, it seems that I cannot pass my MYFONT down to be used with labels in Makie.
The text was updated successfully, but these errors were encountered:
manuelbb-upb
changed the title
\mathbf produces bolditalic instead of italic (LaTeX vs ISO standard)\mathbf produces bolditalic instead of bold (LaTeX vs ISO standard)
Dec 14, 2022
Currently,
L"\mathbf{x}
gets parsed toTeXChar 'x' [index 89 in NewComputerModern - 10 Bold Italic]
.This deviates from the standard LaTeX behavior, where we would expect an upright bold character.
In fact, the LaTeX package
unicode-math
offers options (math-style
andbold-style
) to conform to different notational standards.MathTeXEngine
currently mostly adheres to the "ISO" style (except for Greek letters, as per #87).I guess, this is due to
_default_font_mapping[:char]=:italic
?I think, in the long run it would be great to also enable the user to choose either norm (like unicode-math does) or be consistent with the LaTeX style.
I tried
as a quick hack, which indead works as expected:
generate_tex_elements(L"\mathbf{x}", MYFONT)[1][1]
gives
TeXChar 'x' [index 89 in NewComputerModern - 10 Bold]
.Unfortunately, it seems that I cannot pass my
MYFONT
down to be used with labels in Makie.The text was updated successfully, but these errors were encountered: