
私が準備しているtwocolumn
文書では、段落の分離を大きくするために を変更し、テキストをさまざまな部分に分割するために を使用すると、最終的に (a) 不均一で位置がずれた列になり、memoir
\parskip
\section
左の列のテキスト行の高さが右の列のテキスト行の高さと同じではない; および (b)テキストボックスページ全体を占める場合、下部がギザギザになっていることが多いまっすぐとは対照的です(添付の画像と下の MWE を参照)。
特殊なケースは別として、テキストが次のページに続く場合、ボックスが完全に長方形で、一方の列の行がもう一方の列の行と揃うのが望ましいと思います。これが、下部のギザギザの本当の原因であるように思われます。これを修正するにはどうすればいいでしょうか?
\documentclass[9pt, twocolumn]{memoir}
\usepackage{lipsum}
\setlength{\parskip}{2ex}%This and the used of \section misaligns the two columns. How to fix this?
\begin{document}
\section{Sample section}
\lipsum[0-2]
\section{Sample section}
\lipsum[0-1]
\section{Sample section}
\lipsum[0-5]
\end{document}
答え1
警告は受けます
Underfull \vbox (badness 10000) has occurred while \output is active
セクションのない列では、不可能な制約を指定しました。柔軟な接着がなく、接着と行の高さの合計が\textheight
接着剤を柔軟にすることで、制約を達成できるようになります。(ただし、両方\parindent
と\parskip
非ゼロを持つことはやや珍しいことです)
\documentclass[9pt, twocolumn]{memoir}
\usepackage{lipsum}
\setlength{\parskip}{2ex plus 1ex}%This and the used of \section misaligns the two columns. How to fix this?
\begin{document}
\section{Sample section}
\lipsum[0-2]
\section{Sample section}
\lipsum[0-1]
\section{Sample section}
\lipsum[0-5]
\end{document}