[OS X TeX] Inserting lines in a tableau

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Tue Oct 17 17:29:46 EDT 2017

Thanks!  This works (and also more or less tells me how it works, so I can fiddle with it).
Z

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

On Oct 17, 2017, at 14:14, Themis Matsoukas <tmatsoukas at icloud.com<mailto:tmatsoukas at icloud.com>> wrote:

You can use multicolumn to draw custom vertical lines.

\begin{equation*}
\renewcommand{\arraystretch}{2}
\begin{array}{cccc}
\hline
\multicolumn{1}{|c}{\fbox{1}} &
\multicolumn{1}{|c}{2} &
\multicolumn{1}{|c}{3} &
\multicolumn{1}{|c|}{4}
\\\hline
&
\multicolumn{1}{|c}{\fbox{2}} &
\multicolumn{1}{|c}{3} &
\multicolumn{1}{|c|}{4}
\\\cline{2-4}
& &
\multicolumn{1}{|c}{\fbox{3}} &
\multicolumn{1}{|c|}{4}
\\\cline{3-4}
& & &
\multicolumn{1}{|c|}{\fbox{4}}
\\\cline{4-4}
\end{array}
\end{equation*}

Themis

On Oct 9, 2017, at 2:25 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu<mailto:Zbigniew.Nitecki at tufts.edu>> wrote:

I am trying to create a table in which each line starts one space later (i.e., it looks like the upper triangular part of a matrix).  The first entry of each
row is essentially the row number.  The code in the first attachment yields a good version of this (see pdf in second attachment, but I would like
to also create a grid of lines separating the entries.  I can certainly put in horizontal lines using \hline, but how do I get vertical lines that line up
in the columns (like I would get if I used a format {|c|c|c|c|}), but do not extend down into the rows where nothing is supposed to appear?

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

<Tableau Test.tex><Tableau Test.pdf>----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20171017/ecd592c1/attachment.html>