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: 64
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


Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{standalone}
  2. \usepackage{unicode-math}
  3. \begin{document}
  4. \(\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}\)
  6. \(\mathsf{\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}}\)
  7. \end{document}

to xelatex produces

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

and feeding it to lualatex results in

file.lualatex.png (1.27 KiB) Viewed 896 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

Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 2 guests