在Latex中列出具有不同长度的多列

时间:2018-04-18 16:30:35

标签: latex

我希望在Latex中有一个结构,我有多个列表,它们彼此相邻,长度不同,通常彼此不相关:

Sub AdataPreparation()
Dim WorkBk As Workbook, WorkSh As Worksheet, FilterRow As Variant, DurtyRows as range 

Set WorkSh = Sheets("feuil2")
WorkSh.Activate
FilterRow = Rows("1:1").Find(What:="ID", LookAt:=xlWhole).Column
set DurtyRows as WorkSh.UsedRange.AutoFilter Field:=FilterRow, Criteria1:="=" 
DurtyRows.Delete Shift :=xlUp
End Sub

理想情况下,我应该能够非常轻松地单独操作每个列表。

1 个答案:

答案 0 :(得分:1)

You can create each list as a column within a tabularx:

enter image description here

\documentclass{article}

\usepackage{lipsum,tabularx}

\begin{document}

\lipsum[1]

\addvspace{\medskipamount}
\noindent
\begin{tabularx}{\linewidth}{ @{} X X X @{} }
  List 1

  \begin{itemize}
    \item item a
    \item item b
    \item item c
  \end{itemize} &
  List 2

  \begin{itemize}
    \item item w
    \item item x
    \item item y
    \item item z
  \end{itemize} &
  List 3

  \begin{itemize}
    \item item k
    \item item l
  \end{itemize}
\end{tabularx}

\lipsum[2]

\end{document}

Or, set each list inside a [t]op-aligned minipage that will fit across the line width (similar to the above technique):

\documentclass{article}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\addvspace{\medskipamount}
\noindent
\begin{minipage}[t]{.3333\linewidth}
  List 1

  \begin{itemize}
    \item item a
    \item item b
    \item item c
  \end{itemize}
\end{minipage}%
\begin{minipage}[t]{.3333\linewidth}
  List 2

  \begin{itemize}
    \item item w
    \item item x
    \item item y
    \item item z
  \end{itemize}
\end{minipage}%
\begin{minipage}[t]{.3333\linewidth}
  List 3

  \begin{itemize}
    \item item k
    \item item l
  \end{itemize}
\end{minipage}

\addvspace{\medskipamount}

\lipsum[2]

\end{document}