I followed this answer to use the Neo Euler font in math mode. I found that the dagger symbol (†) is missing in Euler. Is there a way to use the dagger symbol from the text mode font in math mode?
Here’s a minimal example:
\usetypescriptfile[euler]
\definetypeface[mainface][rm][serif][palatino] [default]
\definetypeface[mainface][ss][sans] [helvetica] [default] [rscale=auto]
\definetypeface[mainface][mm][math] [pagellaovereuler] [default] [rscale=auto]
\setupbodyfont[mainface,12pt]
\appendtoks \rm \to \everymathematics
\setupmathematics
[lcgreek=normal, ucgreek=normal, integral=nolimits]
\starttext
Dagger in text mode: †
Math mode: $†$ ${\rm †}$ % Both don’t work.
\stoptext
And rendered result:
My ConTeXt version is “current version: 2015.04.15 01:44”.
What I want is to at least make ${\rm †}$
work.
UPDATE: In comment, @Thruston mentioned that $\hbox{†}$
works. The problem is then I only use dagger for superscript, and $x^{\hbox{†}}$
will not shrink the size of dagger like usual superscript would do. So for now my workaround is
\define\dagger{\hbox{\tfx †}}
I’ve used \dagger
instead of the unicode character in all my previous documents, so this would work (at least in documents without nestied superscripts involving daggers) if I ever want to recompile my existing documents.
UPDATE2: Well…
Turns out I can just $x^{\text{†}}$
, not sure how I managed to forget that.
Best Answer
You need to add the fallback for dagger:
Full working example:
It may be a good idea to create the list of all other text symbols that are used in math mode and are missing in Euler, and then send it to the ConTeXt mailing list. That way, the fallbacks can be added to type-imp-euler.mkiv.