答案 0 :(得分:2)
我不完全确定你的问题是什么:
\multicolumn
- 命令。parbox
/ minipage
。以下示例演示了上述所有问题的解决方案:
\documentclass[a4paper]{article}
\usepackage[a4paper,includeheadfoot,margin=1.54cm]{geometry}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\begin{document}
\begin{center}
\begin{minipage}[t]{\textwidth}
\begingroup
\parfillskip=0pt
\begin{minipage}[t]{0.49\textwidth}
\begin{tabular}{| c | c | c |}
\hline
\multicolumn{3}{|c|}{Archae}\\
\hline
\begin{minipage}{2cm}{\centering structures with non-immunoglobin}\end{minipage} &
\begin{minipage}{2cm}{\centering structures with Immunoglobin}\end{minipage} &
\begin{minipage}{2cm}{\centering total of proteins found}\end{minipage} \\
\hline
1 & 16 & 17 \\
\hline
\end{tabular}
\end{minipage}%
\hfill
\begin{minipage}[t]{0.49\textwidth}
\begin{tabular}{| c | c | c |}
\hline
\multicolumn{3}{|c|}{Bacteria}\\
\hline
\begin{minipage}{2cm}{\centering structures with non-immunoglobin}\end{minipage} &
\begin{minipage}{2cm}{\centering structures with Immunoglobin}\end{minipage} &
\begin{minipage}{2cm}{\centering total of proteins found}\end{minipage} \\
\hline
11 & 16 & 27 \\
\hline
\end{tabular}
\end{minipage}%
\par\endgroup
\end{minipage}
\end{center}
\end{document}
<强>更新强>
您可能必须调整包含parbox
的单元格的垂直间距。要了解如何执行此操作,请阅读此Stackoverflow-question或此stackexchange-question