From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: alignment problem in a table
Date: Tue, 19 Jul 2016 15:19:11 +0200 [thread overview]
Message-ID: <CACyK-erCfBDoY339cUhHcYQRweEit8a6u2fM19hCC4czfYSphQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2203 bytes --]
Hello,
The third column of matrix is not centered vertically and horizontally.
thank you,
Fabrice
\setupbodyfont[pagella,11pt]
\definemathmatrix
[pmatrix]
[left={\left(\,},right={\,\right)}]
\define[3]\coef{\math{#1_{#2, #3}}\autoinsertnextspace}
\startsetups[table:initialize]
\setupTABLE[offset=0.8ex,width=0.25\textwidth]
\setupTABLE[row][first]
[background=color,backgroundcolor=lightgray]
\setupTABLE[start][align={middle,lohi}]
\stopsetups
\starttext
{\bf Matrices particulières}
\startlinecorrection[blank]
\startmidaligned
\switchtobodyfont[10pt]
\bTABLE[setups=table:initialize]
\bTR
\bTD {\bf Matrice ligne} \\ Dimension \math{\left(1\times p\right)}
\eTD
\bTD {\bf Matrice colonne} \\ Dimension \math{\left(n\times 1\right)}
\eTD
\bTD {\bf Matrice carrée} \\ Dimension \math{\left(n\times n\right)}
\eTD
\bTD {\bf Matrice unité \math{\bi I_n}} \\ Dimension
\math{\left(n\times n\right)} \eTD
\eTR
\bTR
\bTD \startformula
\startpmatrix
\NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{p}
\stoppmatrix
\stopformula
\eTD
\bTD \startformula
\startpmatrix
\NC \coef{a}{1}{1} \NR
\NC \coef{a}{2}{1} \NR
\NC \dots \NR
\NC \coef{a}{n}{1}
\stoppmatrix
\stopformula
\eTD
\bTD \startformula
\startpmatrix
\NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{n}\NR
\NC \coef{a}{2}{1} \NC \coef{a}{2}{2} \NC \dots \NC
\coef{a}{2}{n}\NR
\NC \dots \NC \dots \NC \dots \NC \dots \NR
\NC \coef{a}{n}{1} \NC \coef{a}{n}{2} \NC \dots \NC \coef{a}{n}{n}
\stoppmatrix
\stopformula
\eTD
\bTD \startformula
\startpmatrix
\NC 1 \NC 0 \NC \dots \NC 0 \NR
\NC 0 \NC 1 \NC \dots \NC 0 \NR
\NC \dots \NC \dots \NC \dots \NC \dots \NR
\NC 0 \NC 0 \NC \dots \NC 1
\stoppmatrix
\stopformula
\eTD
\eTR
\eTABLE
\stopmidaligned
\stoplinecorrection
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 3041 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 reply other threads:[~2016-07-19 13:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-19 13:19 Fabrice Couvreur [this message]
2016-07-19 15:02 ` Wolfgang Schuster
2016-07-19 15:04 ` Alan BRASLAU
2017-08-22 13:37 Alignment " Fabrice Couvreur
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=CACyK-erCfBDoY339cUhHcYQRweEit8a6u2fM19hCC4czfYSphQ@mail.gmail.com \
--to=fabrice1.couvreur@gmail.com \
--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).