![回忆录:检查并修复单倍/一半间距所需的布局](https://linux22.com/image/435274/%E5%9B%9E%E5%BF%86%E5%BD%95%EF%BC%9A%E6%A3%80%E6%9F%A5%E5%B9%B6%E4%BF%AE%E5%A4%8D%E5%8D%95%E5%80%8D%2F%E4%B8%80%E5%8D%8A%E9%97%B4%E8%B7%9D%E6%89%80%E9%9C%80%E7%9A%84%E5%B8%83%E5%B1%80.png)
我正在使用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 AAAAAAAAAAQQQ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