1

Feeding

\documentclass{standalone}
\usepackage{unicode-math}
\begin{document}
\(\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}\)

\(\mathsf{\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}}\)
\end{document}

to xelatex produces

xelatex output

and feeding it to lualatex results in

lualatex output

As you notice, the sans-serif hat is narrow in both cases whatever junk you put inside. How to produce a wide hat (without anything under it) in the scope of \mathsf{...}? Here, we don't really want an accent, but only a decently wide hat (say, 1em) as a symbol in a sans-serif math font.

Crosspost: http://latex.org/forum/viewtopic.php?f=40&t=32819&p=110398

3

Just go back to \mathnormal first:

enter image description here

\documentclass{standalone}
\usepackage{unicode-math}
\begin{document}
\(\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}\)

\(\mathsf{\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}}\)


\(\mathsf{\mathnormal{\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}}}\)
\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy