我是乳胶新手,我想制作这样的表格: 有这么多包,我都不知道该选哪个。tabular、tabular*、tabularx?我应该用哪个包来制作这样的表格?可以使用 itemize 之类的包吗?谢谢!
编辑:我将照片改得更简单一些,然后尝试这样做:
\begin{tabular}{|p{7.25cm} | p{1cm} | p{7.25cm}|}
\hline
\textbf{Method 1} & & \textbf{Method 2} \\ [0.5ex]
\hline\hline
{1.The quick brown fox jumps over the lazy dog2.The quick brown fox jumps over the lazy dog} & & The sky was cloudless and of a deep dark blue. The sky was cloudless and of a deep dark blue. \\
\hline
The quick brown fox jumps over the lazy dog & & The sky was cloudless and of a deep dark blue. \\
\hline
The quick brown fox jumps over the lazy dog & & The sky was cloudless and of a deep dark blue. \\
\hline
The quick brown fox jumps over the lazy dog & & The sky was cloudless and of a deep dark blue. \\
\hline
The quick brown fox jumps over the lazy dog & & The sky was cloudless and of a deep dark blue. \\ [1ex]
\hline
\end{tabular}
它与上面的图像不一样,但如果我可以改变列的高度,那就没问题了。有办法吗?
答案1
如果对文档一无所知,很难给出通常的答案。很明显,您要寻找的是这样的:
它由下表代码生成(基于您的代码片段):
\begin{tabular}{|p{7.25cm} | p{0.5cm} | p{7.25cm}|}
\cline{1-1}\cline{3-3}
\textbf{Method 1} && \textbf{Method 2} \\ [0.5ex]
\cline{1-1}\cline{3-3}
\cline{1-1}\cline{3-3}
{1.The quick brown fox jumps over the lazy dog2.The quick brown fox jumps over the lazy dog}
&& The sky was cloudless and of a deep dark blue. The sky was cloudless and of a deep dark blue. \\
\cline{1-1}\cline{3-3}
The quick brown fox jumps over the lazy dog
&& The sky was cloudless and of a deep dark blue. \\
\cline{1-1}\cline{3-3}
The quick brown fox jumps over the lazy dog
&& The sky was cloudless and of a deep dark blue. \\
\cline{1-1}\cline{3-3}
The quick brown fox jumps over the lazy dog
&& The sky was cloudless and of a deep dark blue. \\
\cline{1-1}\cline{3-3}
The quick brown fox jumps over the lazy dog
&& The sky was cloudless and of a deep dark blue. \\ [1ex]
\cline{1-1}\cline{3-3}
\end{tabular}
然而,我不知道上述代码是否适合您的文档。
答案2
这不是一个答案,而是一个太长的评论替代方案:
\documentclass{article}
\usepackage{multicol,lipsum}
\begin{document}
\lipsum[2]
\begin{multicols}{2}\parindent0pt
\hfil\textbf{\large Method 1}\par
\begin{enumerate}
\item\lipsum[1][1-2]
\item\lipsum[2][1]
\item\lipsum[3][1-2]
\item\lipsum[4][1]\vfill\leavevmode
\end{enumerate}
\par\columnbreak
\hfil\textbf{\large Method 2}\par
\begin{enumerate}
\item\lipsum[5][1-2]
\item\lipsum[6][1-2]
\item\lipsum[7][1]
\item\lipsum[8][1]
\item\lipsum[9][1]
\item\lipsum[9][1]
\end{enumerate}
\end{multicols}
\lipsum[10]
\end{document}
或者甚至使用一些规则来区分列,但没有监禁的判决:
\documentclass{article}
\usepackage{multicol,lipsum,adforn,xcolor,enumitem}
\columnseprule1pt
\columnsep4em
\renewcommand{\columnseprulecolor}{\color{gray!20}}
\begin{document}
\lipsum[2]
\begin{multicols}{2}\parindent0pt
\hfil\textbf{\large Method 1}\par\hrulefill
\begin{enumerate}[left=0pt]
\item\lipsum[1][1-2]\
\item\lipsum[2][1]
\item\lipsum[3][1-2]
\item\lipsum[4][1]
\end{enumerate}
\hrulefill\par
\vfill
\hfil\noindent\adftripleflourishleft\quad\adfast4\quad\adftripleflourishright
\vfill\leavevmode
\par\columnbreak
\hfil\textbf{\large Method 2}\par\hrulefill
\hrulefill
\begin{enumerate}[left=0pt]
\item\lipsum[5][1-2]
\item\lipsum[6][1-2]
\item\lipsum[7][1]
\item\lipsum[8][1]
\item\lipsum[9][1]
\item\lipsum[9][1]
\end{enumerate}
\hrulefill
\end{multicols}
\lipsum[10]
\end{document}
什么看上去更好一些?