Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm new to LaTex, and would like to create a table that looks as follows:

enter image description here

How can this be done in LaTex?

Thanks.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

If you only need a blank table, this can be the code:

\documentclass{article}

\begin{document}

\begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|}
\hline
 & \multicolumn{2}{l|}{} & \multicolumn{2}{l|}{} \\
\hline
&&&& \\
\hline
&&&& \\
\hline
&&&& \\
\hline
&&&& \\
\hline
&&&& \\
\hline
&&&& \\
\hline
\end{tabular}

\end{document} 

enter image description here

share|improve this answer

You can get cells that span two columns with the \multicolumn command, e.g., \multicolumn{2}{c}{Heading}. Vertical lines you put in the format, horizontal lines in the content:

\begin{tabular}{|l|l|l|l|l|}
\hline
 r1c1 & \multicolumn{2}{c}{r1c2-3} & \multicolumn{2}{c}{r1c4-5} \\
\hline
 etc.
 \end{tabular}

However, before you go any further with this, I strongly advise you to read the introduction to the documentation for the booktabs package. It'll tell you how you should really lay out your table.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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