0

I an new to LaTeX and I am trying to reproduce a table, but I do not manage to create what I want, it either does not fit the page (goes beyond the borders), or for some reason does not work with text in bold and italics. Below is a picture from Word, the table should look something like that. Can you help me?

enter image description here

  • 5
    Welcome to TeX.Stackexchange! Can you share the code that does not work with us? Maybe we can tell you why it goes beyond the borders or does not work with italics and bold. – user36296 Oct 17 '17 at 11:26
5

Here's a way with tabularx and makecell to add some vertical padding:

\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} 

enter image description here

-1

Is the below code helps you?

\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}
  • Please do not abuse \centerline... – TeXnician Oct 17 '17 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy