I'm looking for a natural way to selectively add horizontal and vertical lines between the cells of an array.
Here is an example.
+-----------+
| A B C | D E
| +-------+
| F G H | I J |
+-----------+ |
K L M | N O |
| |
P Q R | S T |
+-------+
I know that I could use multicolumn and multirow commands to achieve that, but it is neither efficient nor elegant, and the resulting code looks horrible.
As every reasonably modern WYSIWYG word processor has an intuitive way to add such lines, I'm sure there is a comparably comfortable method in LaTeX. I just don't know it yet.
nicematrix
.