Quantcast
Channel: Active questions tagged mathtools - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 122

Problem with widehat command in lualatex

$
0
0

I have a problem with the widehat command in lualatex.I have loaded the lualatex-math package that fixes some of theproblems. Here is MWE.

\documentclass{article}\usepackage[fleqn]{amsmath}\usepackage{mathtools}\usepackage{fontspec}\setmainfont{Arial}[Scale=1.1]\setsansfont{Arial}[Scale=MatchLowercase]\usepackage[notext,sans]{kpfonts-otf}\setmathfont{Kp Math SansBold}[Scale=1.1,range=bfup/{num,Latin,latin}]\usepackage{lualatex-math}\begin{document}    This is a test.\\    \[\mathrm{This\ is\ a\ test.}\]    \[\mathbf{\widehat{u}}\]    \[\widehat{\mathbf{u}}\]        \[\symbf{\widehat{u}}\]    \[\widehat{\symbf{u}}\]    \[\widehat{\symrm{u}}\]\end{document}

As one can see from the image below, the hat is not placed properly and it is small. It works fine with Kp-fonts. However, the font is not close to Arial. So, I need a Sansserif font that looks very similar to Arial and in which \widehat command works.

enter image description here

EDIT I have removed the unnecessary commands. I still have to load tex-gyre-pagella and change the mathematics font afterwards. Otherwise unicode-maths gives an error message.


Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>