我最近尝试了一下\usepackage{mathastext}
,非常喜欢这种效果,即数学符号与文本使用相同的字体,而不是从文本中弹出。但是,一旦文本为斜体(或粗体),这种效果就会消失。有没有办法让数学字体(至少对于斜体)自动适应?
梅威瑟:
\documentclass{article}
\usepackage{mathastext}
\begin{document}
The math, like $f(x)=2^x$, is like the text. This is a cool feature
as long as you do not have an $a$ as a math symbol.
\textit{But if you switch to italic, the math like $f(x)=2^x$ pops-out again.}
\textbf{And this is worse in bold as $f(x)=2^x$ shows.}
\end{document}