重新縮放“\check”符號

重新縮放“\check”符號

我想重新調整\check符號的大小,但不想調整整個文件的大小。例如,

\documentclass{article}

\usepackage{mathtools}
\usepackage{asana-math}

\begin{document}

this is a normal \check symbol $\check{u}$, but in $\check{U}$ 
I want the check symbol to be larger

\end{document}

答案1

mathabx包提供了一個\widecheck巨集。

由於我的系統上沒有該asana-math軟體包,因此以下範例使用 LuaLaTeX 和該unicode-math軟體包指定Asana Math為 OpenType 數學字體。

在此輸入影像描述

\documentclass{article}
\usepackage{mathabx} % for '\widecheck' macro
\usepackage{unicode-math}
\setmathfont[Scale=MatchLowercase]{Asana Math}
\begin{document}
$\check{u}$ $\widecheck{U}$
\end{document}

答案2

奇怪的是,unicode-math沒有定義\widecheck;你可以自己做。

\documentclass{article}

\usepackage{mathtools}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{Asana Math}

\def\removefixed#1fixed #2\removefixed#3{%
  \protected\def#3{#1 #2}%
}

\AtBeginDocument{\expandafter\removefixed\check\removefixed\widecheck}

\begin{document}

this is a normal \verb|\check| symbol $\check{u}$, but in $\widecheck{U}$
I want the check symbol to be larger

\end{document}

在此輸入影像描述

相關內容