6
votes
Accepted
block-structure matrix
Try to use midrule of booktabs pqackage::
\documentclass{article}
\usepackage{nicematrix}
\usepackage{booktabs}
\begin{document}
\[
\begin{bNiceArray}{cw{c}{1cm}c|c}[margin]
\Block{3-3}{I_n} &...
5
votes
block-structure matrix
I suggest you (a) increase \arraystretch and (b) insert a (typographic) strut -- say, ^{\mathstrut} -- in the numerator portion of one of the \frac expressions in the final row. These adjustments may ...
4
votes
Help writing block matrix
If you want to keep the proportions as in the picture
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\left(
\begin{array}{@{}c|c@{}}
2S & 0 \\[0.5ex]
\hline
\\[-1.5ex]
\...
4
votes
Help writing block matrix
A basic array environment gets the job done.
\documentclass{article}
\begin{document}
\[
\renewcommand\arraystretch{1.5}
\left( \begin{array}{@{}c|c@{}}
2S & 0 \\
\hline
0 & ...
3
votes
Right Bracket using `nicematrix` package
You should use the command \SubMatrix in the \CodeAfter.
\documentclass{article}
\usepackage{nicematrix}
\usepackage{xcolor}
\usepackage{bm}
\begin{document}
$\begin{NiceArray}{ccccc}
\...
3
votes
block-structure matrix
Add a strut, in this case \smash[b]{\vphantom{\Bigg|}}
\documentclass{article}
\usepackage{amsmath}
\usepackage{nicematrix}
\begin{document}
\[
\begin{bNiceArray}{cw{c}{1cm}c|c}[margin]
\Block{3-3}{...
2
votes
Help writing block matrix
If you really want to use \Blocks like this, you need to specify all empty cells (and rows):
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\[\begin{pNiceMatrix}[hvlines]
\Block{2-2}...
2
votes
Accepted
Right Bracket using `nicematrix` package
Based on F. Pantigny's answer, but putting the labels with the brackets instead of as cells of the matrix works better when you have an even number of rows:
\documentclass{article}
\usepackage{...
2
votes
Accepted
Matrix with \guilsinglright, \guilsinglleft and \textlquill, \textrquill
As @DavidCarlisle has already noted in a comment, don't use text-mode-only commands in math mode. The results of using text-mode commands in this fashion are both highly unpredictable and likely quite ...
2
votes
block-structure matrix
I suggest using the key cell-space-top-limit (the name is inspired by the well-kown package cellspace).
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
$\begin{bNiceArray}{cw{c}{1cm}...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
matrices × 2002tikz-pgf × 269
math-mode × 268
amsmath × 154
arrays × 151
equations × 124
tables × 108
align × 99
tikz-matrix × 85
spacing × 81
horizontal-alignment × 78
vertical-alignment × 59
nicematrix × 59
formatting × 58
brackets × 57
arrows × 34
beamer × 33
diagrams × 33
vector × 33
macros × 31
braces × 29
bordermatrix × 26
alignment × 23
color × 21
highlighting × 21