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 https://github.com/Kolaru/MathTeXEngine.jl/issues/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.
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 https://github.com/Kolaru/MathTeXEngine.jl/issues/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]
givesTeXChar 'x' [index 89 in NewComputerModern - 10 Bold]
. Unfortunately, it seems that I cannot pass myMYFONT
down to be used with labels in Makie.