当方程式有显示样式分数时扩大行高

当方程式有显示样式分数时扩大行高

在我的文档中,我有很多内联模式的方程式,例如:

\documentclass{article}
\begin{document}
Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod
consectetuer signiferumque eu per. In usu latine equide\textbf{j} dolores. Quo no falli 
viris intellegam, ut fugit veritus placerat per. Ius $\displaystyle\frac{2}{3}$ id vidit
volumus mandamus, vide veritus democritum te nec, ei eos \textbf{tttttttt} conqueste 
consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque 
delicata, usu et iusto zzril meliore.
\end{document}

渲染效果正如预期:

普通文本

问题是,正如许多书所做的那样,我想强制具有这种方程式的线(它们可以包含比\dfrac{...}{...}或更多的东西\displaystyle ... \frac{...}{...})具有更大的线高,因此线高等于其他线高,而不是像下图这样强制:

分数问题

然后,我想要这个结果,其中“j”和“t”不会“压缩”行高。

我想要的是

PS:当我说“所以行高等于其他行高”时,我指的是:

相同行距

答案1

你可以加

\setlength\lineskip{3pt}

阻止线条如此紧密地碰撞,但无论哪种方式,结果都很糟糕。这是有\textstyle原因\displaystyle的。在内联表达式中强制使用显示样式分数最终总是会带来痛苦。

以下显示了效果(我调整了文本宽度,使 j 更接近所提供的图像中的分数,所提供的代码显然在不同的地方断线了)

最后一个版本显示了所要求的结果,其中线条进一步打开以保留分数和 j 之间的间距,但我认为这是可读性最差的段落。

在此处输入图片描述

\documentclass{article}
\parskip2\baselineskip

\advance\textwidth-22pt 
\usepackage{nicefrac}

\begin{document}

Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod
consectetuer signiferumque eu per. In usu latine equide\textbf{j} dolores. Quo no falli 
viris intellegam, ut fugit veritus placerat per. Ius $\displaystyle\frac{2}{3}$ id vidit
volumus mandamus, vide veritus democritum te nec, ei eos \textbf{tttttttt} conqueste 
consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque 
delicata, usu et iusto zzril meliore.


Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod
consectetuer signiferumque eu per. In usu latine equide\textbf{j} dolores. Quo no falli 
viris intellegam, ut fugit veritus placerat per. Ius $\frac{2}{3}$ id vidit
volumus mandamus, vide veritus democritum te nec, ei eos \textbf{tttttttt} conqueste 
consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque 
delicata, usu et iusto zzril meliore.




Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod
consectetuer signiferumque eu per. In usu latine equide\textbf{j} dolores. Quo no falli 
viris intellegam, ut fugit veritus placerat per. Ius $\nicefrac{2}{3}$ id vidit
volumus mandamus, vide veritus democritum te nec, ei eos \textbf{tttttttt} conqueste 
consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque 
delicata, usu et iusto zzril meliore.

\setlength\lineskip{3pt}
Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod
consectetuer signiferumque eu per. In usu latine equide\textbf{j} dolores. Quo no falli 
viris intellegam, ut fugit veritus placerat per. Ius $\displaystyle\frac{2}{3}$ id vidit
volumus mandamus, vide veritus democritum te nec, ei eos \textbf{tttttttt} conqueste 
consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque 
delicata, usu et iusto zzril meliore.

\end{document}

相关内容