Questions tagged [matrices]
{matrices} is about matrices in {equations} and {diagrams}.
34 questions from the last 365 days
4
votes
1
answer
162
views
Highlighting matrix multiplication
I know there are several relevant questions on TeX Stack Exchange about nicely highlighting matrix multiplication, and some of them have excellent answers. I apologize if my question is a duplicate.
I ...
2
votes
0
answers
52
views
Rescaled diagonal dots in small matrix environment
Is there a way to rewrite the declared command below (from Correctly format \vdots in small matrix)
to give rescaled diagonal dots?
\documentclass{article}
\usepackage{amsmath}
\DeclareRobustCommand{\...
4
votes
4
answers
436
views
Vertical line in matrix using LaTeX
I tried making a vertical line in a matrix and I found two workarounds:
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\...
10
votes
2
answers
162
views
Strange spacing on a matrix
Why would the vertical spacing between the 2nd and 3rd lines in this matrix be larger than the others?
\documentclass{report}
\usepackage{amsmath}
\begin{document}
\[
\begin{pmatrix}
1 ...
3
votes
3
answers
200
views
Producing the sums outside of the 3x3 Magic Square
How can I align the column of sums outside of this 3x3 magic square? I've coursed through different variations of code, but I can't seem to get it correct. Kindly see the photo below. The 15s ...
4
votes
1
answer
219
views
LaTeX: Matrix in Matrix
I created a matrix by this code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
A_{n+1}=
\begin{pmatrix}
a & \begin{tabular}{ccccc}
0 & 0 & \ldots & 0 &...
10
votes
4
answers
841
views
beautification of a block matrix
I am looking for suggestions on how to improve the visual presentation of a block matrix I created in LaTeX. I'm hoping to "beautify" it and make it easier to read. Here is the code:
\...
4
votes
1
answer
127
views
Why are entries in pmatrix not horizontally centered?
Based on Section 4.4 in the "Short Math Guide for LaTeX", I expect entries in pmatrix to be horizontally centered, but this is not what I see. Consider the following MWE:
\documentclass{...
0
votes
3
answers
84
views
A question about matrix [duplicate]
How can I add the numbers $k$ and $n-k$ as in the figure?
4
votes
3
answers
100
views
Empty matrix with a colored row or column
I am trying to typeset an empty matrix with a colored row or column. I know how to do it using tikz, but would rather not use it - if possible.
I made some attempts, but the colored row (rectangle) ...
0
votes
2
answers
84
views
custom halfdynamic list
I have problems creating a list first, but adding entries on the fly later.
I need the List (actualy more a numbered table/matrix/) in the first pages of my rather long document, and want to add the ...
4
votes
5
answers
303
views
Tabularx & Amsmath: How to scale matrices with different dimensions inside a table so they are positioned one below the other perfectly?
This is my code:
\documentclass[preview]{standalone}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{amsmath, amsfonts, amssymb, amsthm}
\begin{document}
\begin{tabularx}{\linewidth}{XXX}
...
4
votes
4
answers
252
views
Boxed submatrix
I have to replicate a specific matrix, with its red boxing: I am going with pNiceMatrix and SubMatrix but in no way I can make the bottom rule to "box" my block. Is there any way, or am I ...
5
votes
3
answers
97
views
\Vbrace with one column matrix display incorrectly in the brace direction
I want to draw one column matrix with the nicematrix's \Vbrace, but brace direction is opposite, code is here.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{...
1
vote
1
answer
76
views
Is there a way to automatically align the components in a large matrix without thousands of \hphantom? [duplicate]
For example, I want to create a simple matrix,
\begin{bmatrix} -1 & 1
\\ 1 & -1 \end{bmatrix}
But this looks a bit messy visually (especially for larger matrices), However, I ...