I'm using LuaTeX via LyX with OpenType fonts and have some trouble setting the Ångström unit in math mode.
Using this order works, but composes the character instead of using the font's glyph:
$\mathring{\mathrm{A}}$
Using this order, which is effectively what is generated by using the units
package, fails:
$\mathrm{\mathring{A}}$
The error message is:
Missing character: There is no (U+0017) in font DejaVuSerif:mode=node;...
This isn't technically wrong, but we've already left the TeX math font and should produce glyphs from the main font. "Latin Capital Letter A with Ring Above" is U+00C5, which the font contains and renders just fine in text mode.
What can I do to achieve this? LyX always decomposes the character Å
into \mathring{A}
in math blocks, so I can't just input that (which would work, I've tested it). I don't need a general solution, this is the only character where it needs to work. It's also the only use of \mathring
, so I'd have no qualms redefing the accent to something else...
Thanks!
$a=\unit[4.1]{\mathring{A}}$
, which expands to the narrowed down problem here.