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
user49915
Posts: 42
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

Feeding

  1. \documentclass{standalone}
  2. \usepackage{unicode-math}
  3. \begin{document}
  4. \(\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}\)
  5.  
  6. \(\mathsf{\widehat{\strut~~~\,\,\,\ \ \ \mskip10mu\mkern10mu\strut}}\)
  7. \end{document}


to xelatex produces

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


and feeding it to lualatex results in

file.lualatex.png
file.lualatex.png (1.27 KiB) Viewed 84 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: http://tex.stackexchange.com/questions/ ... xelualatex

Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 2 guests