LaTeX forum ⇒ XeTeXHow to get a sans-serif math wide hat in {xe|lua}latex?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Posts: 81
Joined: Wed Apr 17, 2019 12:51 pm

How to get a sans-serif math wide hat in {xe|lua}latex?

Postby user49915 » Thu Sep 05, 2019 4:52 pm


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

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

to xelatex produces

file.xelatex.png (1.28 KiB) Viewed 4489 times

and feeding it to lualatex results in

file.lualatex.png (1.27 KiB) Viewed 4489 times

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: ... xelualatex

Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook

Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest