我的(較小的)報價環境有什麼問題?

我的(較小的)報價環境有什麼問題?

基線似乎會自動改變我注意到某些文字片段中的基線正在發生變化,而我並沒有明確要求對其進行更改。 Barbara Beeton 幫助我弄清楚了基本問題是什麼,其他評論者正確地猜測到我修改了環境quote。因此我現在可以將問題轉化為 MWE。我當然很想了解根本問題。

% arara: xelatex
\documentclass[12pt,article,oneside]{memoir}

\setstocksize{5in}{5in}
\settrimmedsize{5in}{5in}{*}
\settrims{0in}{0in}
\settypeblocksize{3in}{3in}{*}
\setlrmargins{1in}{*}{*}
\setulmargins{1in}{*}{*}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{1.5\onelineskip}{*}

\checkandfixthelayout

\usepackage{relsize,etoolbox}
\AtBeginEnvironment{quote}{\smaller\em}

\begin{document}
\thispagestyle{plain}

Things are looking fine so far... xxxxxxxxx xxxx xx x x x x
xxxxxxxxxxxx x xxxx xxxxxxxx x xxxx.

A bit squeezed in this paragraph...  xxx xxxx xxxxxxxxxx xxxx xx x x x
x xxxxxxxxxxxx x xxxx xxxxxxx xxx xxxx xxx xxxxxxxxxx xxx xxx xxx xxxx
%% - remove these comments to fix spacing (1/2)
\begin{quote}
This is a quote.  y yyyyyyyyyy yyy yyy yyy yyyy yyyyyyyyyy yyyy yy y y
y y yyyyyyyyyyyy y yyyy
\end{quote}
%% - remove these comments to fix spacing (2/2)
This is another paragraph, things are fine again.  xxx xxx xxxx xxx
xxxxxxxxxx xxx xxx xxx xxxx xxxxxxxxxx xxxx xx x x x x xxxxxxxxxxxx x
xxxx

\end{document}

在此輸入影像描述

答案1

令牌\smaller\em已新增 quote開始一個新段落,因此新的基線跳過也適用於尚未結束的段落。

相反,

\appto\quote{\smaller\em}

它將\smaller在報價的開頭執行。

在此輸入影像描述

相關內容