Quantcast
Channel: Matrix: hline is cut by cmidrule - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by F. Pantigny for Matrix: hline is cut by cmidrule

$
0
0

With {bNiceArray} of nicematrix, the vertical rules are never broken, even by a \cmidrule of booktabs (because they are drawn by PGF — which is a sublayer of Tikz).

\documentclass{article}\usepackage{nicematrix}\usepackage{booktabs}\begin{document}\begin{equation*}\begin{bNiceArray}{c|c}  a & b\\ \cmidrule(lr){1-2}  c & d\end{bNiceArray}\end{equation*}\end{document}

Output of the above code


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>