ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mathmatrix and internal lines
@ 2020-11-26  9:19 Jean-Philippe Rey
  2020-11-26  9:58 ` Otared Kavian
  2020-11-26 12:40 ` Otared Kavian
  0 siblings, 2 replies; 12+ messages in thread
From: Jean-Philippe Rey @ 2020-11-26  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-11-30  8:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26  9:19 mathmatrix and internal lines Jean-Philippe Rey
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

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).