两列表

两列表

如何制作一个包含两列的列表,并在两列之间添加边框和垂直线作为图像?我尝试使用表格和迷你页面,但都无法正常工作!有人可以告诉我怎么做吗?

例子:

在此处输入图片描述

谢谢你!

答案1

一些选项:

平均能量损失

\documentclass{article}
\begin{document}
\centering

With \verb|minipage|s:\bigskip

\fboxsep=.6em
\fbox{\begin{minipage}[t][2cm][t]{.25\textwidth}
\begin{itemize}
\item Bla bla bla ...
\item   
\item
\end{itemize}   
\end{minipage}}%
\fbox{\begin{minipage}[t][2cm][t]{.25\textwidth}
\begin{itemize}
\item Bla bla bla ...
\item
\end{itemize}   
\end{minipage}}

\bigskip With \verb|tabular|:\bigskip

\begin{tabular}{|l|l|}
\hline\parbox[t]{0.25\textwidth}{
\begin{itemize}
\item Bla bla bla ...
\item
\item
\end{itemize}}& 
\parbox[t]{0.25\textwidth}{
\begin{itemize}
\item Bla bla bla ...
\item
\end{itemize}}\\
\hline
\end{tabular}

\bigskip With \verb|\parbox| alone:\bigskip

\fbox{\parbox[t]{0.25\textwidth}{
\begin{itemize}
\item Bla bla bla ...
\item
\item
\end{itemize}} \vrule%
\parbox[t]{0.25\textwidth}{
\begin{itemize}
\item Bla bla bla ...
\item
\end{itemize}}}

\end{document}

但也许你不需要/不想要 itemize 环境,而只需要一个紧凑列表。那么你可以简单地在p{}列内创建行,并用或其他任何内容\newline开始每行:\textbullet{}

\begin{tabular}{|p{0.25\textwidth}|p{0.25\textwidth}|}
\hline
\textbullet{} Bla bla bla ... \newline
\textbullet{} \newline
\textbullet{} \newline  & 
\rule[.25em]{.25em}{.25em} Bla bla bla ... \newline
\rule[.25em]{.25em}{.25em} \newline  \\
\hline
\end{tabular}

答案2

\documentclass[a4paper]{article}
\usepackage{fancybox}

\begin{document}
\framebox[0.5\textwidth][l]{%
\begin{Bitemize}
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\end{Bitemize}}%
\framebox[0.5\textwidth][l]{%
\begin{Bitemize}
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\item 
\end{Bitemize}}


\end{document}

答案3

像这样: ?

\documentclass{article}
\usepackage{framed, multicol, blindtext, textcomp, lmodern}

\begin{document}

\setlength{\columnseprule}{0.4pt}
\begin{framed}
  \begin{multicols}{2}
    \begin{itemize}
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \item Punkt
    \end{itemize}
  \end{multicols}
\end{framed}

\end{document}

结果:

在此处输入图片描述

相关内容