我需要在表格之间添加居中纯文本,而无需结束表格块。现在我有以下代码:
...
\begin{tabular}{p{0.3\linewidth}|p{0.6\linewidth}}
Planet suihfsdhfh sohdfs9dh sdoifjis jdfsjdfo & Features\\[5pt]
Mercury & Lunar like crust, crustal faulting, small magnetic
fields.\\
\end{tabular}
\begin{quote}
\centering
\Large\textit{(action)}
\end{quote}
\begin{tabular}{p{0.3\linewidth}|p{0.6\linewidth}}
Jupiter & Covered by clouds, dark ring of dust, magnetic field.\\
Saturn & Several cloud layers, magnetic field, thousands
of rings.\\
Uranus & Layers of cloud and mist, magentic field, some rings.\\
Neptune & Unable to detect from earth.\\
Pluto & Unable to detect from earth \\
\end{tabular}
但我想要这样的东西:
[![...
\begin{tabular}{p{0.3\linewidth}|p{0.6\linewidth}}
Planet suihfsdhfh sohdfs9dh sdoifjis jdfsjdfo & Features\\\[5pt\]
Mercury & Lunar like crust, crustal faulting, small magnetic
fields.\\
\begin{quote}
\centering
\Large\textit{(action)}
\end{quote}
Jupiter & Covered by clouds, dark ring of dust, magnetic field.\\
Saturn & Several cloud layers, magnetic field, thousands
of rings.\\
Uranus & Layers of cloud and mist, magentic field, some rings.\\
Neptune & Unable to detect from earth.\\
Pluto & Unable to detect from earth \\
\end{tabular}
\end{document}
答案1
您可以使用\multicolumn
合并两列并删除该线。
\documentclass{article}
\begin{document}
\begin{tabular}{p{0.3\linewidth}|p{0.6\linewidth}}
Planet suihfsdhfh sohdfs9dh sdoifjis jdfsjdfo & Features\\[5pt]
Mercury & Lunar like crust, crustal faulting, small magnetic
fields.\\
\multicolumn{2}{p{0.9\linewidth}}{%
\begin{quote}
\centering
\Large\textit{(action)}
\end{quote}
}\\
Jupiter & Covered by clouds, dark ring of dust, magnetic field.\\
Saturn & Several cloud layers, magnetic field, thousands
of rings.\\
Uranus & Layers of cloud and mist, magentic field, some rings.\\
Neptune & Unable to detect from earth.\\
Pluto & Unable to detect from earth \\
\end{tabular}
\end{document}