由于空间原因,我尝试将正确示例和错误示例成对放在multicols
环境中。但是,无论我做什么,它们都无法正确对齐。我尝试\bigskip
填充缺失的注释行,甚至\hspace
创建一条空行。我将非常感激任何有关问题所在和任何解决方案的建议。这是我的第一篇文章,所以我希望 MWE 正确。
\documentclass[11pt,a4paper]{article}
\usepackage{gb4e}
\usepackage{multicol}
\begin{document}
\begin{exe}
\begin{multicols}{2}
\ex
\begin{xlist}
\ex \gll Dies ist korrekt\\
this is correct\\
\glt \lq This is correct'
\ex \gll \'{E}sto est\'{a} correcto\\
this is correct\\
\glt \lq This is correct'
\ex \gll Hii ni sahihi\\
this is correct\\
\glt \lq This is correct'
\end{xlist}
\columnbreak
\ex
\begin{xlist}
\ex[*]{\gll Dies falsch ist\\
this wrong is\\
\glt \hspace{1cm}}
\ex[*]{\gll \'{E}sto mal est\'{a}\\
this bad is\\
\glt \hspace{1cm}}
\ex[*]{ \gll Hii sahihi si\\
this correct not.is\\
\glt \hspace{1cm}}
\end{xlist}
\end{multicols}
\end{exe}
\end{document}
答案1
您可以用一个幻像句子来代替水平空间:更改\glt \hspace{1cm}}
为\glt \phantom{\lq This is correct'}}
。\phantom
参数的垂直和水平空间已分配,但不打印。
在示例中:
\begin{xlist}
\ex[*]{\gll Dies falsch ist\\
this wrong is\\
\glt \phantom{\lq This is correct'}}
\ex[*]{\gll \'{E}sto mal est\'{a}\\
this bad is\\
\glt \phantom{\lq This is correct'}}
\ex[*]{ \gll Hii sahihi si\\
this correct not.is\\
\glt \phantom{\lq This is correct'}}
\end{xlist}
结果: