我对 Overleaf\LateX 和一般编码非常陌生 - 我在表格方面遇到了很大的困难。
我设法制作了这个表格,但我想在表格中包含一种页脚。最初表格看起来像这样。
但是当我使用多列添加该行时,基本上它就像这样变得很奇怪
这就是我现在所拥有的;
\begin{table}[!ht]
\caption{\label{messagesexp} Models and related treatment messages in the survey}
\begin{center}
\begin{tabular}{ | m{4cm} | m{9cm}| }
\hline
\textbf{Models} & \textbf{Displayed messages}\\\hline\hline
\textbf{Model 1} & \\\hline
Social norms & \textit{“Did you know? 46\% of young people declared they had reported illegal and hamful* posts on social media.”}\\ \hline
\textbf{Model 2} & \\\hline
{{Anonymity and Privacy}}& \textit{“Did you know? 46\% of young people declared they had reported illegal and hamful* posts on social media.”}\\ \hline
\textbf{Model 3} & \\\hline
{{Responsibility and change}} & \textit{“Reporting makes a difference. Your report allows to improve detection algorithms to better detect illegal and hamful* content.”}\\ \hline
\textbf{Control group} & \\\hline
& \textit{“Did you know? Sixdegrees.com was considered the “first” social media platfom* in history and was founded in 1997.”}\\ \hline
\multicolumn{2}{| l{1em} |}{*Note: The typos included in the displayed messages are deliberate and relate to attention checks.}
\hline
\end{tabular}
\end{center}
\end{table}
希望这有帮助:
\documentclass[a4paper,12pt]{article}
\pagestyle{empty}
\usepackage{array}
\usepackage{multirow}
\begin{document}
\begin{table}[!ht]
\caption{\label{messagesexp} Models and related treatment messages in the survey}
\begin{center}
\begin{tabular}{ | m{4cm} | m{9cm}| }
\hline
\textbf{Models} & \textbf{Displayed messages}\\\hline\hline
\textbf{Model 1} & \\\hline
Social norms & \textit{"Did you know? 46\% of young people declared they had reported illegal and hamful* posts on social media."}\\ \hline
\textbf{Model 2} & \\\hline
{{Anonymity and Privacy}}& \textit{"Did you know? 46\% of young people declared they had reported illegal and hamful* posts on social media."}\\ \hline
\textbf{Model 3} & \\\hline
{{Responsibility and change}} & \textit{"Reporting makes a difference. Your report allows to improve detection algorithms to better detect illegal and hamful* content."}\\ \hline
\textbf{Control group} & \\\hline
& \textit{"Did you know? Sixdegrees.com was considered the "first" social media platfom* in history and was founded in 1997."}\\ \hline
\multicolumn{2}{|m{\dimexpr\linewidth-2\tabcolsep-2\arrayrulewidth}|}{*Note: The typos included in the displayed messages are deliberate and relate to attention checks.} \\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}