\overrightarrow 不起作用

\overrightarrow 不起作用

向量\overrightarrow不起作用。这是一个 mwe。

\documentclass{article}
\usepackage{xfakebold}
\usepackage{firamath-otf}
\setmathfont{TeX Gyre DejaVu Math}[range={\vdots,\ddots,\mdlgblksquare}]
\setmathfont{Fira Math}[range=]
\setmainfont{Arial}[Scale=1.1]
%\newfontface\normalsize{Arial}[Scale=1.2]
\setsansfont{Arial}[Scale=MatchLowercase]
\setmathfont{Arial}[Scale=1.1,range=up/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=it/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=bfup/{num,Latin,latin}]
\setsansfont{Arial}[Scale=MatchLowercase]
\begin{document}
If $\overrightarrow{AB}$ and $\overrightarrow{CD}$ have  the same length and the same direction, we say $\overrightarrow{AB}$ is \textbf{equivalent to }$\overrightarrow{CD}$. If A and C coincide, and B and D coincide, then we say $\overrightarrow{AB}$and $\overrightarrow{CD}$are \textbf{equal. }
\end{document}

从屏幕截图中可以看出,箭头很小,不像预期的那样。

在此处输入图片描述

答案1

这个怎么样?

\documentclass{article}
\usepackage{xfakebold}
\usepackage{firamath-otf}
\setmathfont{TeX Gyre DejaVu Math}[range={\vdots,\ddots,\mdlgblksquare,\overrig\
htarrow}]
\setmathfont{Fira Math}[range=]
\setmainfont{Arial}[Scale=1.1]
%\newfontface\normalsize{Arial}[Scale=1.2]                                      
\setsansfont{Arial}[Scale=MatchLowercase]
\setmathfont{Arial}[Scale=1.1,range=up/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=it/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=bfup/{num,Latin,latin}]
\setsansfont{Arial}[Scale=MatchLowercase]
\begin{document}
If $\overrightarrow{AB}$ and $\overrightarrow{CD}$ have  the same length and th\
e same direction, we say $\overrightarrow{AB}$ is \textbf{equivalent to }$\over\
rightarrow{CD}$. If A and C coincide, and B and D coincide, then we say $\overr\
ightarrow{AB}$and $\overrightarrow{CD}$are \textbf{equal. }
\end{document}

在此处输入图片描述

要稍微放大箭头,您可以尝试

\documentclass{article}
\usepackage{xfakebold}
\usepackage{firamath-otf}
\setmathfont{TeX Gyre DejaVu Math}[Scale=1.5,range={\vdots,\ddots,\mdlgblksquare,\overrightarrow}]
\setmathfont{Fira Math}[range=]
\setmainfont{Arial}[Scale=1.1]
%\newfontface\normalsize{Arial}[Scale=1.2]                                                                            
\setsansfont{Arial}[Scale=MatchLowercase]
\setmathfont{Arial}[Scale=1.1,range=up/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=it/{num,Latin,latin}]
\setmathfont{Arial}[Scale=1.1,range=bfup/{num,Latin,latin}]
\setsansfont{Arial}[Scale=MatchLowercase]
\begin{document}
If $\overrightarrow{AB}$ and $\overrightarrow{CD}$ have  the same length and the same direction, we say $\overrightar\
row{AB}$ is \textbf{equivalent to }$\overrightarrow{CD}$. If A and C coincide, and B and D coincide, then we say $\ov\
errightarrow{AB}$and $\overrightarrow{CD}$are \textbf{equal. }
\end{document}

在此处输入图片描述

相关内容