From: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: mathmatrix and internal lines
Date: Thu, 26 Nov 2020 10:19:24 +0100 [thread overview]
Message-ID: <93D2C0D9-FF37-4281-A95B-AD7D97BE7923@centralesupelec.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
Dear list,
I would like to draw matrices with internal lines as can be done with LaTeX (cf pdf output) :
========================
\documentclass{article}
\begin{document}
$M =\left( \begin{array}{c|c}
A & B \\
\hline
C & D \\
\end{array} \right)$
\end{document}
========================
I didn't find out how to use mathmatrix to achieve this. My best result to date is
========================
\starttext
$M = \left( \bTABLE[frame=off]
\bTR
\bTD[rightframe=on, bottomframe=on] $A$ \eTD
\bTD[bottomframe=on] $B$ \eTD
\eTR\bTR
\bTD[rightframe=on] $C$ \eTD
\bTD $D$ \eTD
\eTR
\eTABLE \right)$
\stoptext
========================
The code is rather ugly, and I get a spurious space at the bottom of the table.
Any hints?
Thank you,
--
Jean-Philippe Rey
jean-philippe.rey@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
[-- Attachment #2: blocmatrices-latex.pdf --]
[-- Type: application/pdf, Size: 23989 bytes --]
[-- Attachment #3: blocmatrices-context.pdf --]
[-- Type: application/pdf, Size: 6885 bytes --]
[-- Attachment #4: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2020-11-26 9:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 9:19 Jean-Philippe Rey [this message]
2020-11-26 9:58 ` Otared Kavian
2020-11-26 12:40 ` Otared Kavian
2020-11-26 18:46 ` Jean-Philippe Rey
2020-11-26 19:43 ` Otared Kavian
2020-11-26 22:23 ` Hans Hagen
2020-11-27 9:07 ` Otared Kavian
2020-11-27 9:19 ` Hans Hagen
2020-11-29 7:48 ` Otared Kavian
2020-11-29 18:59 ` Jean-Philippe Rey
2020-11-29 20:01 ` Otared Kavian
2020-11-30 8:14 ` Taco Hoekwater
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=93D2C0D9-FF37-4281-A95B-AD7D97BE7923@centralesupelec.fr \
--to=jean-philippe.rey@centralesupelec.fr \
--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).