{matrices} is about matrices in {equations} and {diagrams}.
1
vote
1answer
25 views
Align values in bmatrix
Is it possible to renew the bmatrix environment to have alignment?
I would like the following vectors to show aligned:
\begin{bmatrix}
-0.505 & \\
-0.141 & \\
0.144 & \\
0.839 & ...
4
votes
1answer
44 views
Right curly bracket around text
The following code will produce some text enclosed by a right curly bracket and to the right of it some other text saying that is the same meaning.
Now, I would like to have the text aligned to the ...
0
votes
0answers
55 views
A new command to build arbitrary matrices
Can anybody help me to build a short new command to build any matrix with arbitrary size?
3
votes
1answer
54 views
easybmat matrices dotted lines
I use the easybmat package to typeset some block matrices as follows, where the rows are separated by dotted lines. For some reason, the dotted lines don't always come out right. For example the ...
7
votes
2answers
70 views
Update matrix entries in beamer
I'm trying to show row reducing a matrix in a beamer presentation. I'd like to show successive steps of the row reduction using overlays. The following is close to what I want to do. The problem is ...
0
votes
0answers
88 views
Metacode: (C++)-generated LaTeX code for Gramian matrix (A question about “related software and tools”) [closed]
I'm trying to make some code for the matrix seen here.
I'm specifically looking for C++ code that can generate an array like above using setw(). A non-member function that takes the arguments i and j ...
4
votes
1answer
78 views
Tikzpicture and matrix
I want use tikzpicture for draw my matrix, U=[matrix], using this code
\begin{align*}
U&=
\begin{tikzpicture}[decoration=brace]
\matrix (m)[matrix of math nodes,left delimiter=[,right ...
3
votes
1answer
71 views
bmatrix - buggy? Alternating Color and not completely drawn
As you can see, my bmatrix is a little bit bugged and I don't know why...
This is the sourcecode:
\begin{equation}
\begin{bmatrix}
\mathbf{d}_x \\
\mathbf{d}_y \\
\mathbf{d}_z \\
...
5
votes
2answers
53 views
Vertical dashed line of a custom height
I need a vertically dashed line in my matrix, but my current solution looks like the dashes are going out of the array environment (and they are - i checked in photoshop). Can I manually shorten it by ...
2
votes
1answer
50 views
How can I \Aboxed a Matrix?
I am trying to use \Aboxed around a function containing a pmatrix, but anything other than a column vector seems to break \Aboxed. I think it has something to do with the &'s in the matrix, but I ...
12
votes
2answers
114 views
vertical dotted line in column vector / amsmath matrix
I would like to typeset the following set of equations:
... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are ...
5
votes
1answer
44 views
pmatrix and superscript
I would like to place a superscript to a pmatrix, but the superscript is not correctly positioned.
\begin{pmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{pmatrix}^{T}
Any ...
7
votes
2answers
252 views
How to improve the looks of a table?
I want to display measurement outcomes in a table that lets the viewer read off the measurement value of N and $\Theta$. The picture below shows my first attempt. While this is ok, I would like to ...
2
votes
1answer
124 views
Underline multicolumns in tikz matrix
In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others):
MWE from this question:
\documentclass{standalone}
...
27
votes
4answers
776 views
Perform matrix operations (addition, product, transpose, etc.) in LaTeX?
I know the calc package can perform infix-notation arithmetic in LaTeX... but I want more!
I'd like to perform (not necessarily infix-notation) linear-algebra operations such as scalar ...
17
votes
1answer
204 views
Brackets around matrices in TikZ
I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE:
\documentclass{standalone}
\usepackage{tikz}
...
3
votes
1answer
138 views
Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular
In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
4
votes
0answers
140 views
Formatting of matrices
I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago.
I have the same problems mentioned there, and I'd ...
1
vote
1answer
71 views
Small descriptions next to matrix [duplicate]
One of my textbooks notates Markov transition matrices this way with 1 and 2 denoting states:
How can I reproduce this matrix in LaTeX?
6
votes
2answers
188 views
TikZ matrix decoration
What I'm trying to achieve is a code structure to draw this kind of diagram:
I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
4
votes
2answers
105 views
Adjusting the width of the matrix
I am typing a matrix in a document class but its size is too large to fit on the width the page. I have also used TeX code \tiny but it is making font of matrix entries too small. I am not able to ...
0
votes
0answers
72 views
I need help writing a complicated Matrix which can be encrypted as well as decrypted [closed]
I need help writing a complicated Matrix which can be encrypted as well as decrypted.
I'd prefer it to be using transpose, multiplication, conjugate transpose (if possible), Determinant and anything ...
7
votes
2answers
105 views
smallmatrix with vertical line as column separator, how to do it
Since this
\begin{smallmatrix}[cc|cc] ... \end{smallmatrix}
is not possible with smallmatrix, I am wondering how can I get a vertical line as column separator in the smallmatrix environment? ...
4
votes
1answer
83 views
Highlighted Matrix with brackets
I would like to produce the matrix as shown in this figure:
At the moment, I have this code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\begin{document}
...
2
votes
3answers
93 views
How to define the proper space between elements of a matrix?
I need to draw a simple matrix, with column corresponding to some sets. I tried the following:
\[D^{4}_{2}=
\left[\begin{array}{cc}
\diagdown & {\begin{array}{cccccc} \{1,2\} & ...
3
votes
1answer
93 views
Diagonal text in diagonal matrix
I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions.
Is there a way to nicely represent this, e.g. via a matrix which is blank ...
4
votes
1answer
150 views
How to make a full equation with tikz?
I am using this solution here to make long dashes within a matrix, and it is working well. The code is:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
% possible to customize here ...
7
votes
1answer
163 views
Add Overbrace to describe a column of matrix
I want to add some over-braces to a matrix to get the following output:
However, this this what I managed to get:
I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of ...
2
votes
1answer
136 views
How to make this matrix in LaTeX? [duplicate]
Ok, so I am trying to find a way to make this matrix shown here, in LaTeX:
I tried to search for this type, but I frankly do not know what one would call this, so I had to draw a picture shown here ...
8
votes
2answers
92 views
Boxed entries in matrices
I would like to create a formula or figure like this:
I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
4
votes
1answer
74 views
Trouble creating properly aligned matrix within a matrix
I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this:
\begin{equation}
\begin{bmatrix}
\begin{matrix}
0 & 0 \\
0 & \omega_0 ...
6
votes
2answers
208 views
Controlling Matrix like a shape in Tikz
Would it be possible to control a matrix in Tikz as accurately as possible as with regular shapes?
For example, inside a Tikzpicture, I could simply control a shape's size by writing
...
3
votes
1answer
179 views
Make matrix inside equation fit the page width in LyX
I have a matrix that is a bit too wide to fit inside my page width.
After reading a lot of different answers on the Internet, none really related to LyX, I came up with these three different ...
3
votes
1answer
115 views
LyX: Configure a command for 3x3 determinant
I've been trying to add a new command to LyX to easen my way through physics, when mostly 3x3 determinants are used.
I clicked Document -> Settings -> Preamble and wrote the following:
% det 3x3
...
5
votes
2answers
261 views
Underbraces in Matrix Divided in Blocks
How to put underbraces, inside the parenthesis of a matrix, to name both sides of the blocks?
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{array}
\begin{document}
.
.
.
\[
...
4
votes
1answer
107 views
Issue with delimiters of small matrix
I am using the mathtools package in order to right-align entries in small matrices. My code is below. The issue is that the delimiters in the first matrix are not the appropriate size; they should be ...
4
votes
1answer
180 views
Using simple, MathJax-compatible TeX to put enclose a matrix in braces
I was trying to explain the identity matrix over at Math StackExchange and I wound up using the following.
$${\bf I_n} = \underbrace{
\left.\left(
...
1
vote
0answers
33 views
Referencing nodes in matrix of nodes does not work in beamer [duplicate]
When using node coordinates in a matrix of nodes in the article document class, the following code works well and soes exactly what it is supopsed to:
\documentclass{article}
\usepackage{tikz}
...
0
votes
0answers
43 views
How to make a matrix like this? [duplicate]
can anyone help me to making a matrix with braces like this?
4
votes
1answer
576 views
Compact block matrix
I'm trying to create a block matrix and surely there are hundreds of question about those already. But most of what I read so far, seems quite hackish in the end. What I have is:
...
3
votes
2answers
200 views
LaTeX Capabilities: Complicated and Important Equations
As I am introducing LaTeX to an audience, I'd like to show how it can render equations beautifully. As such, I'd like one equation (math/physics) that combines many different formatting requirements, ...
9
votes
2answers
216 views
Long Division with Boxes
I need to make a division worksheet for a specific student with ADHD. He often gets confused with the placement of the digits so this worksheet has to have boxes aligned in a very precise way. There ...
5
votes
1answer
95 views
How to model {smallmatrix} with {array}?
It is pretty normal, I guess, to use \begin{array} ... \end{array} to model matrices, when more control is required than you get with pmatrix, bmatrix, etc., with the proper \left and \right, and the ...
4
votes
1answer
115 views
Highlight elements in the matrix (continued)
Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to
select one single entry in the matrix? Where does one need to place the left and the right marks?
2
votes
0answers
155 views
Formatting big matrix and ratios using multi-row entries [closed]
It is possible to write the denominator or the numerator of a ratio, as well as the entries of a matrix, in multiple rows? This could be helpful in order to format long equations inside a document.
...
4
votes
2answers
86 views
aligning equations in smallmatrix environment
So for example, in the next code I get my equations in center aligment, I'd like to have them aligned to the left.
$(a_{2})_{pq}=\left \{ \begin{smallmatrix} (a_{1})_{pq} ,p\neq i \\ ...
8
votes
1answer
146 views
Replacing Leading Minus Signs in Environment
In this question concerning negative signs and the alignment of entries in matrix environments, Heiko Oberdiek gave a great answer in which he uses a user-defined command called \matminus instead of ...
8
votes
2answers
226 views
Equation with Large Matrix Dimension
I'm trying to code this matrix equation below,
I'm not an expert in latex, but I've been successful dealing with other matrix equations. However with this one, I can't achieve it. The alignment of ...
9
votes
1answer
234 views
Heatmap of a triangular matrix (or a sparse matrix)
So let me first of all shamelessly steal heatmap code from this answer to Drawing heatmaps using TikZ
\documentclass{standalone}
\usepackage{colortbl}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
...
6
votes
2answers
127 views
Matrix with only $a_{i1} \neq 0$ in first column
Assume that A is square. I would like to display this as follows (for i > 1):
a_{i1} in its position,
0 ... 0 (transposed) on top and below this element, and
a rectangle to the right of the first ...





