Skip to main content

Questions tagged [matrices]

{matrices} is about matrices in {equations} and {diagrams}.

5 votes
1 answer
130 views

Aligning equation at the \middle| of a \left ... \middle ... \right triple

I'm typesetting a matrix inversion procedure by means of Gaussian elimination. This typically involves writing a big matrix with a bar in the middle, which separates the original matrix from the to-be ...
Níckolas Alves's user avatar
-1 votes
0 answers
40 views

What should be the determinant of a diagonally dominant matrix with all positive entries? [closed]

Assume that we have an n by n diagonally dominant matrix with all positive entries. Is it possible for this matrix to have negative determinant?
shawn122's user avatar
1 vote
1 answer
49 views

NiceMatrix and arXiv not up to date

I am trying to publish a paper on arXiv and I have realized that one of my figures yields an error when I try rendering my code using the arXiv repository. On my machine, the figure works well, ...
Ivan's user avatar
  • 73
7 votes
4 answers
707 views

Big zeros in block diagonal matrix

I'm trying to create a block diagonal matrix with labeled blocks as shown in the images below: I have tried: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \...
LogicLuminary's user avatar
4 votes
1 answer
63 views

bmatrix* from mathtools results in huge column spacing when using [S]

I want to vertical align values inside a matrix by the decimal separator. The usage of \begin{bmatrix*}[r] only gives pretty results if all numbers have the same length. If this is not the case, \...
paul_schaefer's user avatar
3 votes
1 answer
71 views

Typing Pfaffian

I am trying to typeset Pfaffian for the 2D Ising model. The structure of the Pffafian is given below The code is \[\mathrm{Pf} = \begin{pmatrix} a_{12} & a_{13} & a_{14} & a_{15} & ...
felix's user avatar
  • 557
3 votes
3 answers
162 views

Rotate edges in tikz

this is my code for a directed graph. I use the rotate function and now the edges are in a muddle. \begin{turn}{90} \begin{tikzpicture}[>=Stealth,->,line width=.7pt] \matrix [matrix of math ...
VD3's user avatar
  • 69
3 votes
0 answers
116 views

Incorrect matrix bracket height with `unicode-math`

I need to use the package unicode-math in my document, but this makes the height of the brackets in the matrix look too short. (The matrices of order 2 seem to be normal, though.) I have tried various ...
Inverted Pastry's user avatar
1 vote
1 answer
27 views

missplaced /cr on trying to put matrices in an align

I'm trying to put some matrices in an align environment as follows: \begin{align*} X^T\cdot J-J\cdot X&=\begin{pmatrix} A^T&C^T\\B^T&D^T \end{pmatrix}\cdot\begin{pmatrix} ...
Grimm Troupe's user avatar
2 votes
0 answers
33 views

Long nicematrix with color and margin text [closed]

I currently would like to have a matrix that is long and includes some color on each row. However, whenever I use the & multiple times, I get an error saying I have an extra alignment tab that has ...
Ivan's user avatar
  • 73
6 votes
2 answers
133 views

Simply Adjusting the Position of Dashed Lines in Nicematrix Package

I encountered a problem with the horizontal dashed line created by the nicematrix package in LaTeX. The line is a little close to the bottom of the matrix, overlapping with the elements of the second ...
Prince Chen's user avatar
2 votes
2 answers
58 views

pmatrix only considers one character before closing brackets

I am running Ubunutu 22.04.3 WSL2 with latexmk version 4.76. I had this bug when compiling with vimtex, so I tried compiling with latexmk directly and the same issue persisted. The compilation (with ...
Sadim's user avatar
  • 23
4 votes
1 answer
185 views

Lengthen tikz-cd Arrow Based on Label

I was wondering if it is possible to automatically lengthen a tikz-cd arrow based on the width of its label (perhaps with some padding)? Typesetting, for example, the commutative diagram \...
Dave's user avatar
  • 317
1 vote
1 answer
80 views

Upper triangular block matrix

I want to do that : It's a 3-3 matrix, with a star in the upper triangular region and a big zero in the lower. It doesn't seem possible to do that with nicematrix, because here the blocks are not ...
Louis Lascaud's user avatar
2 votes
1 answer
69 views

NiceMatrix Right Margin elements

I have been struggling to figure out what is wrong with my code. I currently have a matrix with some colors and on the margin, I would like arrows. At the moment I currently have this \documentclass{...
Ivan's user avatar
  • 73

15 30 50 per page
1
2 3 4 5
133