[OS X TeX] Square cells in tabular
Arno Kruse
arnokruse at macnews.de
Thu Dec 16 11:18:03 EST 2004
Hello all,
I want to create square cells in a tabular or array environment, but
this seemes to be rather complicated.
This solution I found in comp.text.tex:
\documentclass[12pt]{article}
\usepackage{array}
\usepackage{pst-circ}
\begin {document}
\unitlength=1mm
\begin{picture}(21,21)
\multiput(0,0)(3,0){8}{\line(0,1){21}}
\multiput(0,0)(0,3){8}{\line(1,0){21}}
\multiput(1,1)(3,0){7}{\put(0,0){\tiny 0}}
\multiput(1,19)(3,0){7}{\put(0,0){\tiny 0}}
\multiput(1,4)(0,3){5}{\put(0,0){\tiny 0}}
\multiput(19,4)(0,3){5}{\put(0,0){\tiny 0}}
\multiput(4,16)(3,0){5}{\put(0,0){\tiny 4}}
\multiput(4,13)(3,0){5}{\put(0,0){\tiny 3}}
% and so on ...
\end{picture}
\end{document}
This seems to be rather complicated and not flexible enough. Does
anyone of our TeX-experts know a better way to get this damned (sorry)
squares?
arno
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list