答案1
以下内容可能有助于您入门。当然,您可以调整间距和对齐等细节以满足您的需求。
\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum} % for dummy text
\begin{document}
\noindent
\begin{tabular}{*{2}{|p{\dimexpr 0.5\textwidth-2\tabcolsep}}|}
\hline
\bfseries text & \bfseries other text\\
\hline
\multicolumn{2}{|p{\dimexpr \textwidth-2\tabcolsep}|}{\lipsum[1]}\\
\hline
\end{tabular}
\noindent
\begin{tabular}{*{2}{|p{\dimexpr 0.5\textwidth-2\tabcolsep}}|}
\hline
\bfseries text & \bfseries other text\\
\hline
\multicolumn{2}{|p{\dimexpr \textwidth-2\tabcolsep}|}{\includegraphics[width=2cm]{example-image}
\lipsum[1]}
\\
\hline
\end{tabular}
\noindent
\begin{tabular}{*{4}{|p{\dimexpr 0.25\textwidth-2\tabcolsep}}|}
\hline
\bfseries text & \bfseries other text &\bfseries text & \bfseries other text\\
\hline
\multicolumn{4}{|p{\dimexpr \textwidth-2\tabcolsep}|}{\lipsum[1]}\\
\hline
\end{tabular}
\end{document}
答案2
\documentclass{article}
\usepackage{makecell,tabularx}
\setcellgapes{3pt}
\makegapedcells
\setlength\parindent{0pt}
\usepackage{lipsum}
\begin{document}
\begin{tabularx}{\linewidth}{|X|X|}
\hline
text text & text text text \\
\hline
\multicolumn{2}{|>{\hsize=\dimexpr2\hsize+2\tabcolsep+\arrayrulewidth}X|}
{\lipsum[1]} \\
\hline
\end{tabularx}
\end{document}
答案3
这里有一个解决方案,它创建了一个名为的宏\mergedtab
,它接受三个参数。
\documentclass{article}
\usepackage{lipsum}
\usepackage{tabularx}
\newcolumntype{Y}{>{\hsize=\dimexpr2\hsize+2\tabcolsep+\arrayrulewidth\relax}X}
\newcommand{\mergedtab}[3]{%
\par\bigskip\noindent
\begingroup
\setlength\extrarowheight{2pt}
\frenchspacing
\begin{tabularx}{\textwidth}{|X|X|}
\hline
#1 & #2 \\
\hline
\multicolumn{2}{|Y|}{#3} \\
\hline
\end{tabularx}\endgroup\par\bigskip}
\begin{document}
\mergedtab{Donaudampf\dots}{/naval/rivers/donau/\dots}{\lipsum[2]}
\end{document}