关于在 Minipage 环境中使用 Vstretch

关于在 Minipage 环境中使用 Vstretch

考虑以下代码:

\documentclass[12pt]{book}
\usepackage{scalefnt}
\usepackage{scalerel} % For Vertical Stretch of Letters
\usepackage{xcolor}

\begin{document}
\thispagestyle{empty}

\begin{center}
\begin{minipage}{5.75in}
\textnormal{\scalefont{1.5}{\textbf{THIS IS A LONG SENTENCE IN A MINIPAGE ENVIRONMENT THAT IS DISPLAYED IN A DESIRABLE MANNER.}}}
\end{minipage}
\end{center}

\vskip 35pt

\textbf{\textcolor{red}{But when I try to impose a vertical stretch of the letters, I get---}}

\vskip 5pt

\begin{center}
\begin{minipage}{5.75in}
\vstretch{1.4}{\textnormal{\scalefont{1.5}{\textbf{THIS IS A LONG SENTENCE IN A MINIPAGE ENVIRONMENT THAT IS DISPLAYED IN A DESIRABLE MANNER.}}}}
\end{minipage}
\end{center}
\end{document}

它产生输出:

在此处输入图片描述

问题:为什么强制使用命令后vstretch,第二句话不会像第一句话那样自动拆分和对齐;以及如何使第二句话的显示与第一句话一致?

谢谢。

答案1

\scalebox类似于并生成单个行框。如果您确实必须这样做,则\mbox需要嵌套。minipage

在此处输入图片描述

\documentclass[12pt]{book}
\usepackage{scalefnt}
\usepackage{scalerel} % For Vertical Stretch of Letters
\usepackage{xcolor}

\begin{document}
\thispagestyle{empty}

\begin{center}
\begin{minipage}{5.75in}
\textnormal{\scalefont{1.5}{\textbf{THIS IS A LONG SENTENCE IN A MINIPAGE ENVIRONMENT THAT IS DISPLAYED IN A DESIRABLE MANNER.}}}
\end{minipage}
\end{center}

\vskip 35pt

\textbf{\textcolor{red}{But when I try to impose a vertical stretch of the letters, I get---}}

\vskip 5pt

\begin{center}
\vstretch{1.4}{\begin{minipage}{5.75in}
\textnormal{\scalefont{1.5}{\textbf{THIS IS A LONG SENTENCE IN A MINIPAGE ENVIRONMENT THAT IS DISPLAYED IN A DESIRABLE MANNER.}}}
\end{minipage}}
\end{center}
\end{document}

相关内容