11

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

0 1 2 
3 4 5 
6 7 8
Teja
  • 1,279
  • 3
  • 13
  • 19

1 Answers1

18

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.

Stefan Kottwitz
  • 231,401