0

I want to make a two column table where each cell has multiple lines, no border line and set table to fit page width. The result should be similar to this:

this

How may I achieve this?

migrated from stackoverflow.com Nov 29 '15 at 1:40

This question came from our site for professional and enthusiast programmers.

  • Welcome to TeX.SX! Your post was migrated here from another Stack Exchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Nov 29 '15 at 1:52
0

This can be achieved in a whole host of ways - minipages, \parboxes, tabulars or other boxes. Here's one using tabular and tabularx (for convenience, although it's not necessary):

enter image description here

\documentclass{article}

\usepackage{tabularx}

\begin{document}

\noindent
\begingroup
\setlength{\tabcolsep}{0pt}% Remove intercolumn spacing
\begin{tabularx}{\textwidth}{ >{\centering}X >{\centering\arraybackslash}X }
  \begin{tabular}[t]{c}
    Item 1 \\ Details of item \\ specification
  \end{tabular} &
  \begin{tabular}[t]{c}
    Item 2 \\ Details of item \\ specification
  \end{tabular} \\ \\

  \begin{tabular}[t]{c}
    Item 3 \\ Details of item \\ specification
  \end{tabular} &
  \begin{tabular}[t]{c}
    Item 4 \\ Details of item \\ specification
  \end{tabular} \\ \\

  \begin{tabular}[t]{c}
    Item 5 \\ Details of item \\ specification
  \end{tabular}
\end{tabularx}
\endgroup

\end{document}

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.