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.

Hi all I need numbers from 1.... 8 as below in a table.

0 1 2 
3 4 5 
6 7 8
share|improve this question
    
But how do I get the lines in between them? –  Vutukuri Sep 9 '12 at 0:03
    
what is wrong with tabular? –  mythealias Sep 9 '12 at 0:05

1 Answer 1

up vote 11 down vote accepted

The probably simplest way with tabular: use | for vertical lines and \hline for horizontal lines.

\documentclass{article}
\begin{document}
\begin{tabular}{c|c|c}
  1 & 2 & 3 \\
  \hline
  4 & 5 & 6 \\
  \hline
  7 & 8 & 9
\end{tabular}
\end{document}

table

For more complex drawings, I would use TikZ. The TikZ example gallery provides many code examples for a start.

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.