使多行列表项水平排列

使多行列表项水平排列

我正在尝试制作一个列表,其中每个项目都有多行,并且我希望这些项目水平排列,如下所示:

1. this is the        2. and this is
   first item in         the second item
   the list           

我尝试了很多不同的方法,但最终总是发生第二项的第一行与第一项的最后一行对齐,如下所示:

1. this is the
   first item in
   the list 2. and this is
   the second item

有人有办法解决这个问题吗?谢谢!

答案1

您是否考虑过使用该tasks软件包?它可以实现您所要求的功能。

\documentclass{article}
\usepackage{tasks}
\begin{document}

I'm trying to make a list in which each item has multiple lines, and I want the items to line up horizontally, like this:
\begin{tasks}(2)
\task  
 this is the        
   first item in      
   the list      this is the        
   first item in      
   the list      this is the        
   first item in      
   the list      this is the        
   first item in      
   the list           
\task and this is the second itme.and this is the second itme.and this is the second itme.and this is the second itme.and this is the second itme.
\end{tasks}

\end{document}

在此处输入图片描述

相关内容