[NTG-context] mathmatrix and internal lines
Jean-Philippe Rey
jean-philippe.rey at centralesupelec.fr
Thu Nov 26 10:19:24 CET 2020
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 at centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocmatrices-latex.pdf
Type: application/pdf
Size: 23989 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201126/db442419/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocmatrices-context.pdf
Type: application/pdf
Size: 6885 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201126/db442419/attachment-0003.pdf>
More information about the ntg-context
mailing list