Skip to main content
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} &...
Zarko's user avatar
  • 302k
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 ...
Mico's user avatar
  • 519k
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] \...
egreg's user avatar
  • 1.2m
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 & ...
Mico's user avatar
  • 519k
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} \...
F. Pantigny's user avatar
  • 43.8k
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}{...
egreg's user avatar
  • 1.2m
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}...
Jasper Habicht's user avatar
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{...
racketj's user avatar
  • 36
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 ...
Mico's user avatar
  • 519k
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}...
F. Pantigny's user avatar
  • 43.8k

Only top scored, non community-wiki answers of a minimum length are eligible