当我尝试在 Lucida Bright 字体中使用任何类型的“长”箭头时,它最终会断开。对于 MWE,请考虑以下内容:
\documentclass[10 pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{Lucida Bright OT}
\setsansfont{Lucida Sans OT}
\setmonofont{Lucida Sans Typewriter OT}
\setmathfont{Lucida Bright Math OT}
\begin{document}
Here is an example of an arrow which looks weird:
\begin{gather}
\widehat{\mathcal{O}_v}\otimes_{\mathcal{O}_v} k\xrightarrow{\approx}\widehat{k}
\end{gather}
here is another example:
\begin{gather}
\varprojlim k[T]/(T^n)
\end{gather}
\end{document}
答案1
和\xrightarrow
命令\varprojlim
使用减号来延长箭头;在 Lucida Math 字体中,它的高度与箭头不同;但是,您可以使用不同的符号,即“水平线延长 U+23AF”,该符号在unicode-math
名称下可用\harrowextender
;只需重新定义\relbar
即可使用它:
\documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{Lucida Bright OT}
\setsansfont{Lucida Sans OT}
\setmonofont{Lucida Sans Typewriter OT}
\setmathfont{Lucida Bright Math OT}
\renewcommand{\relbar}{\mathrel{\harrowextender}}
\begin{document}
Here is an example of an arrow which looks weird:
\[
\widehat{\mathcal{O}_v}\otimes_{\mathcal{O}_v} k\xrightarrow{\approx}\widehat{k}
\]
here is another example:
\[
\varprojlim k[T]/(T^n)
\]
\end{document}
顺便说一句,我认为 没什么amssymb
好处unicode-math
。
答案2
尝试这个设置:
\usepackage{unicode-math}
\setmainfont{Lucida Bright OT}
\setsansfont{Lucida Sans OT}
\setmonofont{Lucida Sans Typewriter OT}
\setmathfont{Lucida Bright Math OT}
\setmathfont[range={"2190,"2192,"2212}]{TeXGyrePagellaMath-Regular}
或者使用 Pagella
\makeatletter
\ams@def\relbar{\raisebox{-0.35pt}{$-$}}
\makeatother
(加载后amsmath
)。下面是我完整的测试示例:
\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmainfont{Lucida Bright OT}
\setsansfont{Lucida Sans OT}
\setmonofont{Lucida Sans Typewriter OT}
\setmathfont{Lucida Bright Math OT}
\setmathfont[range={"2190,"2192,"2212}]{XITS Math}
%\makeatletter
%\ams@def\relbar{\raisebox{-0.35pt}{$-$}}
%\makeatother
\begin{document}
\begin{gather}
\widehat{\mathcal{O}_v}\otimes_{\mathcal{O}_v} k\xrightarrow{\approx}\widehat{k}
\end{gather}
\begin{gather}
\varprojlim k[T]/(T^n)
\end{gather}
\end{document}