在 paracol 中对齐左列和右列的问题

在 paracol 中对齐左列和右列的问题

\paracol环境中,我希望左右列对在顶部彼此对齐。希望下图能阐明我想要什么。有三对红线和蓝线。第一对在顶部完美对齐,但第二对和第三对偏离了。

在此处输入图片描述

梅威瑟:

\documentclass{book}

\usepackage{microtype}
\usepackage[
    paperwidth=6in,
    paperheight=9in,
    inner=0.6in,
    outer=0.6in,
    bindingoffset=0.15in,
    top=0.6in,
    bottom=0.6in,
    twoside]{geometry}  
\usepackage{expex}
\usepackage{lipsum}
\usepackage{paracol}
\twosided[pc]
\usepackage{expex}
%\usepackage{polyglossia}% removed if you want to compile in PDFLaTex instead of XeLaTex
%\setdefaultlanguage{english}% removed if you want to compile in PDFLaTex instead of XeLaTex
%\newfontfamily\englishfont{Corbel}% removed if you want to compile in PDFLaTex instead of XeLaTex

\lingset{
    everygla=\Large,
    everyglb=\footnotesize,
    everyglc=\footnotesize,
    glwordalign=center,
    glhangindent=0em,
    glrightskip=0pt,
    glspace=0.5em plus 3em minus 0.15em,
}

\begin{document}

\columnratio{0.75}
\setlength{\columnsep}{1.5em}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glb This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glc This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\noindent\footnotesize
Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column.
    \end{rightcolumn}
\end{paracol}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\glb And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\glc And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\noindent\footnotesize
Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2.
    \end{rightcolumn}
\end{paracol}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glb This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glc This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\noindent\footnotesize
\lipsum[1]
    \end{rightcolumn}
\end{paracol}

\end{document}

编辑:polyglossia如果您想在 PDFLaTex 而不是 XeLaTex 中编译,请注释掉并删除字体。

答案1

实际上,第一行也没有完全对齐,因为\topskip=10pt它对于左列来说不够大。我最好在每列的第一行添加一个支柱。重要的是它足够大并且两列的大小相同。

由于拉伸,页面底部还存在一个问题(随着支柱尺寸的增加,突然跳动)。使用 解决了这个问题\raggedbottom

\documentclass{book}

\usepackage{microtype}
\usepackage[
    paperwidth=6in,
    paperheight=9in,
    inner=0.6in,
    outer=0.6in,
    bindingoffset=0.15in,
    top=0.6in,
    bottom=0.6in,
    twoside]{geometry}  
\usepackage{expex}
\usepackage{lipsum}
\usepackage{paracol}
\twosided[pc]
\usepackage{expex}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\newfontfamily\englishfont{Corbel}

\lingset{
    everygla=\Large,
    everyglb=\footnotesize,
    everyglc=\footnotesize,
    glwordalign=center,
    glhangindent=0em,
    glrightskip=0pt,
    glspace=0.5em plus 3em minus 0.15em,
}

\columnratio{0.75}
\setlength{\columnsep}{1.5em}

\newcommand{\mystrut}{\rule{0pt}{12pt}}

\begin{document}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla \mystrut This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glb This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glc This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\noindent\footnotesize\mystrut
Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column. Here is some text for the skinny column.
    \end{rightcolumn}
\end{paracol}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla \mystrut And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\glb And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\glc And this is even more filler for the second paragraph And this is even more filler for the second paragraph //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\noindent\footnotesize\mystrut
Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2. Here is some text for skinny column2.
    \end{rightcolumn}
\end{paracol}

\begin{paracol}{2}
    \begin{leftcolumn}
\begingl[glhangstyle=none]
\gla \mystrut This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glb This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\glc This is some text to take up space and I didn't want to use Lipsum This is some text to take up space and I didn't want to use Lipsum //
\endgl
    \end{leftcolumn}
    \begin{rightcolumn}\raggedbottom\footnotesize\noindent\mystrut
\lipsum[1]
    \end{rightcolumn}
\end{paracol}

\end{document}

完整页面

相关内容