我正在使用memoir
文档类,我花了一个小时来调试一个神秘的标题页间距问题:我的标题页有时包含在一个页面中,有时末尾被推到新页面中......我意识到如果我放:
\OnehalfSpacing
然后左对齐并不总是具有与我完全相同的间距:
\OnehalfSpacing
\checkandfixthelayout
有/无(我加了一条红线作为参考):
请注意,该错误并不总是可见的,这里我需要混合 A 和 Q 字母才能使其可见......这里的间距很小,但在我的标题模板(使用SingleSpace
/ flushleft
/ adjustwidth
...)中,差异更大,可以移动整个段落。
我不明白的是,文档中没有提到有关\checkandfixthelayout
何时使用行距命令的任何内容。是他们只是忘记了,还是我遗漏了更微妙的东西?我获得的间距是否\checkandfixthelayout
正确?
梅威瑟:
\documentclass[a4paper,10pt,leqno,openbib]{memoir}
\checkandfixthelayout{} % I put this one for safety, to ensure that the previous layout is fixed
\OnehalfSpacing{}
%\checkandfixthelayout{} % Try uncommenting the line to see the spacing difference
\usepackage{float}
\begin{document}
\begin{flushleft}
AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ
AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ
AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQQQQQQQ AAAAAAAAAAQQQQ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