When using MathTeXEngine within Makie, I need to put a specific font for N in the graph. I am using \mathcal{N} within LaTeX, and would like an N which looks similar. I cannot change the font for the LaTeX font.
The mathcal{N} which MathTeXEngine chooses is shown below. I would like to use the N given by index 2775 in the same otf font file. Is there some way for me to accomplish this?
using MathTeXEngine
generate_tex_elements(L"\mathcal{N}")
1-element Vector{Any}:
(TeXChar 'š' [index 2823 in NewComputerModern Math - Regular], [0.0, 0.0], 1.0)
It looks like you can just add new Unicode characters to the font mapping in MathTeXEngine.jl and then use that Unicode directly in the LaTeX string (rather than \mathcal):