Hi Jean-Philippe, The following is better than the one I sent earlier: \definemathmatrix[mymatrix] [left={\left(\,}, right={\ \right)}] \starttext \startformula \startmymatrix \NC A \NC\hskip-.5em \vrule \NC\hskip-.5em B \NR \noalign{\hrule} \NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR \stopmymatrix \stopformula \stoptext Best regards: Otared K.
On 26 Nov 2020, at 10:19, Jean-Philippe Rey
wrote: 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
___________________________________________________________________________________ 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 ___________________________________________________________________________________