From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Multiplication table (with lines) in ConTeXt?
Date: Wed, 4 May 2011 00:45:29 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.01.1105040043320.8289@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <BANLkTikhRLoSxSOEGFw=ScdrUz=FqJVeYg@mail.gmail.com>
On Wed, 4 May 2011, Alasdair McAndrew wrote:
> I want to typeset a multiplication table, where there will be a horizontal
> line after the first row, and a vertical line after the first column. In
> LaTeX, I can use:
>
> \[
> \begin{array}{c|ccccccc}
> \times&0&1&2&3&4&5&6\\
> \hline
> 0&0&0&0&0&0&0&0\\
> 1&0&1&2&3&4&5&6\\
> 2&0&2&4&6&1&3&5\\
> 3&0&3&6&2&5&1&4\\
> 4&0&4&1&5&2&6&3\\
> 5&0&5&3&1&6&4&2\\
> 6&0&6&5&4&3&2&1
> \end{array}
> \]
>
> What is the canonical way of including lines in a mathematical array in
> ConTeXt?
\startsetups table:frame
\setupTABLE[each][each][frame=off, align=middle]
\setupTABLE[row][first][bottomframe=on]
\setupTABLE[column][first][rightframe=on]
\stopsetups
\startTABLE[setups=table:frame]
\NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
....
\stopTABLE
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-05-04 4:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 4:36 Alasdair McAndrew
2011-05-04 4:45 ` Aditya Mahajan [this message]
2011-05-04 7:05 ` Wolfgang Schuster
2011-05-04 10:10 ` Alasdair McAndrew
2011-05-04 10:32 ` Paul Menzel
2011-05-04 10:52 ` Wolfgang Schuster
2011-05-04 10:43 ` Paul Menzel
2011-05-04 10:49 ` Alasdair McAndrew
2011-05-04 10:57 ` Wolfgang Schuster
2011-05-04 11:10 ` Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.01.1105040043320.8289@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).