我有一系列parbox
包含行间注释的 es。由于parbox
(和注释),页面之间没有断行。因此,parbox
es 在页面上垂直分布均匀。我不想要这样的分布。相反,我希望 esparbox
之间有一个预定义的空间,这样任何剩余的空白都会堆积在页面底部(而不是parbox
es 之间)。请参阅下面的图示说明,了解我想要的内容。
编辑:澄清一下,我希望整个文档中的 parbox 之间有一致的间距(而不仅仅是在单个页面上\raggedbottom
),并且我希望能够指定该间距是多少。
\documentclass{book}
\usepackage{microtype}
\usepackage{expex}
\lingset{
everygla=\large,
everyglb=\scriptsize,
everyglc=\scriptsize,
glwordalign=center,
glhangindent=0em,
glrightskip=0pt,
aboveglbskip=-0.9ex,
aboveglcskip=-0.9ex
}
\definelingstyle{justified}{glrightskip=0pt,glspace=0.5em plus 3em minus 0.15em,everyglft=\justifying\noindent}
\usepackage{ifoddpage}
\newcommand{\swapboxes}[2]% #1 = wide text, #2 = narrow text
{\noindent\makebox[\textwidth]{\checkoddpage
\ifoddpageoroneside
\parbox[t]{.71\textwidth}{#1}\hfill\parbox[t]{.26\textwidth}{#2}%
\else
\parbox[t]{.26\textwidth}{#2}\hfill\parbox[t]{.71\textwidth}{#1}%
\fi}}
\begin{document}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccccccccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccccccccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\end{document}
我看见此问答但我发现它对我的情况没有帮助(或者我只是对它理解不够)。
答案1
结合使用\raggedbottom
,您可以\setlength{\parskip}{...}
根据需要调整段落之间的高度。
\documentclass{book}
\usepackage{microtype}
\usepackage{expex}
\raggedbottom
\setlength{\parskip}{-.7\baselineskip}% you can adjust the height as you prefer
\lingset{
everygla=\large,
everyglb=\scriptsize,
everyglc=\scriptsize,
glwordalign=center,
glhangindent=0em,
glrightskip=0pt,
aboveglbskip=-0.9ex,
aboveglcskip=-0.9ex
}
\definelingstyle{justified}{glrightskip=0pt,glspace=0.5em plus 3em minus 0.15em,everyglft=\justifying\noindent}
\usepackage{ifoddpage}
\newcommand{\swapboxes}[2]% #1 = wide text, #2 = narrow text
{\noindent\makebox[\textwidth]{\checkoddpage
\ifoddpageoroneside
\parbox[t]{.71\textwidth}{#1}\hfill\parbox[t]{.26\textwidth}{#2}%
\else
\parbox[t]{.26\textwidth}{#2}\hfill\parbox[t]{.71\textwidth}{#1}%
\fi}}
\begin{document}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccccccccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccccccccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\swapboxes{\exdisplay\begingl
\gla Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. Some non lipsum text to fill the gloss. //
\glb aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\glc aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh aaaa bbbb cccc dddd eeee ffff gggg hhhh //
\endgl\xe}{\exdisplay\footnotesize{Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification. Some text to demonstrate justification.} \xe}
\end{document}