假设我正在编写文本,\large
但希望行距与文本\huge
大小相关联。我该怎么做?
显然,我想要一个能够更普遍地起作用的解决方案,即适用于所有标准尺寸、、、\tiny
等。我知道我可以使用来选择我想要的任何线条扩展;但是,如果我想要的正是我的特定文档类所使用的线条扩展,比如说,该怎么办?\small
\footnotesize
\Huge
\linespread
\huge
如果你绝对必须有一个 MWE,这里是其中之一:
\documentclass{memoir}
\newcommand\linespreadof[1]{%
%abracadabra, magic happening!
}
\begin{document}
\large\linespreadof{\huge} This paragraph has large text size, but has even huger line spread.
\huge\linespreadof{\tiny} The text size here is huge, but the line spread is so tiny that the
result will probably be overlapping lines.
\end{document}
答案1
Tex 使重叠变得困难,因为它不遵循\baselineskip
是否需要负间距而是\lineskip
在每行之间插入,从而在每个基线之间留下固定的空间。
\documentclass{memoir}
\setlength\textwidth{5cm}
\begin{document}
\huge{\large This paragraph has large text size, but has even huger line spread.}
\tiny{\huge The text size here is huge, but the line spread is so tiny that the
result will probably be overlapping lines.}
\end{document}