paracol 描述列表换行标题

paracol 描述列表换行标题

我正在使用 paracol 编写双语词汇表,但我有两个问题。首先,使用“描述”列表时,名称较长的项目不会换行。其次,当我在描述列表的开头有两个部分标题时,第一个列表项的垂直对齐会关闭。

\documentclass[11pt]{article}
\usepackage{paracol}

\begin{document}
\setlength{\columnsep}{50pt}

\begin{paracol}{2}

\switchcolumn[0]*
\section{Language 1 Column}

\switchcolumn[1]
\section{Language 2 Column}


\begin{description}

\switchcolumn[0]*
\item [{Item 1:}] The first description for item 1, in language 1.

\switchcolumn[1]
\item [{Item 1:}] The first description for item 1, in language 2.

\switchcolumn[0]* 
\item [{Item 2 has a really long name which doesn't wrap lines:}]  The second description, for the item with a really long name, in language 1.

\switchcolumn[1]
\item [{Item 2 has a really long name which doesn't wrap lines:}]  The second description, for the item with a really long name, in language 2.

\end{description}

\end{paracol}

\end{document} 

在此处输入图片描述

答案1

对于描述标题换行,可以使用样式unboxed。对于对齐问题,请在第一个项目之后关闭描述环境,然后重新打开它,如以下代码所示:

\documentclass[11pt]{article}
\usepackage{paracol}
\usepackage{enumitem}

\begin{document}

\setlength{\columnsep}{50pt}

\begin{paracol}{2}

\switchcolumn[0]*
\section{Language 1 Column}

\switchcolumn[1]
\section{Language 2 Column}

\begin{description}[style=unboxed]
\switchcolumn[0]*
\item [{Item 1:}] The first description for item 1, in language 1.
\end{description}

\switchcolumn[1]
\begin{description}[style=unboxed]
\item [{Item 1:}] The first description for item 1, in language 2.

\switchcolumn[0]*
\item [{Item 2 has a really long name which wraps lines:}] The second description, for the item with a really long name, in language 1.

\switchcolumn[1]
\item [{Item 2 has a really long name which wraps lines:}] The second description, for the item with a really long name, in language 2.

\end{description}

\end{paracol}

\end{document} 

在此处输入图片描述

相关内容