我怎样才能用 LaTeX 重现这张表格?

我怎样才能用 LaTeX 重现这张表格?

我是 LaTeX 新手,我想重现一个表格,但我无法创建我想要的表格,它要么不适合页面(超出边界),要么由于某种原因无法处理粗体和斜体文本。下面是 Word 中的一张图片,表格应该看起来像那样。你能帮助我吗?

在此处输入图片描述

答案1

tabularx以下是使用和makecell添加一些垂直填充的方法:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe]{geometry}
\usepackage{tabularx, makecell}
\newcommand{\nl}{\newline}

\begin{document}

{\setcellgapes{5pt}\makegapedcells
\centering\begin{tabularx}{\linewidth}{|*{2}{>{\centering\arraybackslash}X|}}
  \hline
  \emph{Direct Speech}: & \emph{Indirect Speech}: \\
  She said, \textbf{‘I’ll come} back \textbf{here} to meet \textbf{you} again \textbf{tomorrow’}
                        &
  She said \textbf{that} she \textbf{would go} back \textbf{there} to see \textbf{him} again \textbf{the following day}
  \\
  \hline
  \multicolumn{2}{|c|}{\emph{Free Indirect Style}: } \\
  \multicolumn{2}{|c|}{She said \textbf{she would come} back \textbf{here} to see \textbf{him} again\textbf{ tomorrow}} \\
  \hline
\end{tabularx}}

\end{document} 

在此处输入图片描述

答案2

下面的代码对您有帮助吗?

\documentclass[openany,10pt]{book}
\begin{document}

\begin{tabular}{@{}|p{10pc}|p{10pc}|@{}}
\hline
\centerline{\textit{Direct Speech:}} &\centerline{\textit{Indirect
Speech:}}\\
\hline
She said, ... &She said that ...\\
\hline
\multicolumn{2}{|c|}{\centering Free Indirect style}\\
\hline
\end{tabular}
\end{document}

相关内容