如何在缩放的 Minipage 环境中按比例调整行之间的垂直间距

如何在缩放的 Minipage 环境中按比例调整行之间的垂直间距

考虑一下代码

\documentclass[openany]{book}
\usepackage{scalefnt}
\usepackage{lipsum}
\usepackage{color}

\begin{document}
\thispagestyle{empty}
\LARGE

\lipsum[19] 
\vspace*{20pt}

\begin{center}
\begin{minipage}{4.00in}
\textbf{\scalefont{0.75}{\color{red}{THIS IS A MINIPAGE ENVIRONMENT IN WHICH THE FONTSIZE HAS BEEN SCALED DOWN---BUT THE SPACING BETWEEN THE LINES SEEMS TO HAVE BEEN UNAFFECTED}}---I WOULD LIKE TO REDUCE THE VERTICAL SPACE BETWEEN THE LINES PROPORTIONATELY.}
\end{minipage}
\end{center}
\end{document}

产生输出

在此处输入图片描述

尽管 minipage 环境中的文本似乎已按 0.75 倍缩放,但行之间的垂直间距却没有缩放。(为了更清楚地看到这一点,请尝试按 0.15 倍缩放)。

问题:如何按比例调整缩放的小页面环境中的垂直间距,以使其反映对文本施加的缩放比例?

谢谢。

答案1

与往常一样,段落中使用的行距是段落末尾有效的行距,因此如果您想要设置的基线间距,\scalefont您需要(就像您使用过一样\small)在其范围内结束段落。

在此处输入图片描述

\documentclass[openany]{book}
\usepackage{scalefnt}
\usepackage{lipsum}
\usepackage{color}

\begin{document}
\thispagestyle{empty}
\LARGE

\lipsum[19] 
\vspace*{20pt}

\begin{center}
\begin{minipage}{4.00in}
\bfseries\scalefont{0.75}{\color{red}THIS IS A MINIPAGE ENVIRONMENT IN WHICH THE FONTSIZE HAS BEEN SCALED DOWN---BUT THE SPACING BETWEEN THE LINES SEEMS TO HAVE BEEN UNAFFECTED}---I WOULD LIKE TO REDUCE THE VERTICAL SPACE BETWEEN THE LINES PROPORTIONATELY.
\end{minipage}
\end{center}
\end{document}

相关内容