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....@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

Attachment: blocmatrices-latex.pdf
Description: Adobe PDF document

Attachment: blocmatrices-context.pdf
Description: Adobe PDF document

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

Reply via email to