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

learn more… | top users | synonyms (1)

10
votes
1answer
2k views

Aligning matrix nodes in tikz

Another question about aligning nodes using matrices in tikz. Consider the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix ...
10
votes
3answers
2k views

Border matrix with multiple indices on top and bottom

How can I write a matrix where there is an index at the top and also at the bottom? \bordermatrix doesn't seem to have an option for multiple indices.
10
votes
2answers
4k views

Matrix in small size

Does anyone have a good idea for an alternative matrix definition with a font size between the standard size used for say pmatrix and the \scriptstyle size used by smallmatrix? I have several vectors ...
8
votes
2answers
409 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 ...
8
votes
1answer
351 views

bracket covering only a part of a matrix

How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like: My current solution: \[ \overset{ ...
8
votes
2answers
2k views

Create a math matrix in TikZ partition lines

I want to draw a math matrix in TikZ, where I can draw helping partition lines. So far I found it pretty simple to just draw a matrix with brackets. \begin{tikzpicture} \matrix [matrix of math ...
7
votes
1answer
329 views

Matrix vertical alignment in combination with double spacing

Why does the following code mess up the vertical alignment in the matrices? \documentclass{article} \usepackage{amsmath} \usepackage{setspace} \doublespacing \begin{document} The first case is ...
7
votes
1answer
382 views

Twist a single line matrix in TikZ

I have a single line matrix made with TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \node [matrix,fill=white!20,draw=blue] (my matrix) ...
6
votes
1answer
120 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
6
votes
1answer
175 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 ...
6
votes
2answers
143 views

nodes in matrix and its incorporation into document

i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ? My task is ...
6
votes
1answer
538 views

Adding nodes and horizontal lines for pmatrix

Yesterday, I posted question concerning solid diagonal line within matrix. But my problem continues, since I am supposed to add into the matrix even the vertical line and labels. Is there a way how to ...
6
votes
1answer
602 views

Problems with a matrix of multipart nodes

Just for fun I wanted to reproduce the memory of Can't get split rectangle to shrink small enough in this TikZ picture using a matrix of nodes avoiding the use of \foreach loops to place nodes. My ...
6
votes
2answers
2k views

Putting a tabular in a node within a matrix

I have a picture in which each of the nodes looks something like this: \node (species1) [shape=rectangle,draw] { \begin{tabular}{c c c} \multicolumn{3}{c}{{Species 1}} \\ \colorbox{red}{G1a} ...
5
votes
1answer
153 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 ...
5
votes
1answer
673 views

vertical lines in matrix using tikz package

my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success. My task is this matrix multiplication with added ...
5
votes
1answer
1k views

Write elements above and right outside the matrix

I found writing matrix's code is a boring work. There is one, you can see in pic below. Can anybody help?
4
votes
3answers
577 views

Writing a formula below a matrix

I have a matrix environment: \begin{bmatrix} ... \end{bmatrix} How can I write below that matrix? I tried with substack, so I wrote \end{bmatrix}_{\substack{...}} That doesn't work as it does ...
4
votes
2answers
2k views

How do I typeset vertical and horizontal lines inside a matrix?

(From the notation used in course notes for Stanford CS229 available online.) I'm trying to typeset the following matrices made up of row or column vectors: Any ideas?
3
votes
1answer
44 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
3
votes
2answers
87 views

is it possible to add dashed lines between rows/column of pmatrix from amsmath?

I wish these packages from amsmath have more options! Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked ...
3
votes
1answer
124 views

Applying Matrix Operation Code

I'm (relatively) new to LaTeX, and I'm having a syntactic problem using the wonderful code here, which allows arbitrary matrix operations in LaTeX. I wrote a macro to generate certain matrices. ...
3
votes
0answers
148 views

Vertical line in matrix in gauss package [duplicate]

I am currently using the gauss package since I need to write out operations between my matrices. However I am unable to add a vertical line to the far right in my augmented matrices. The gauss package ...
3
votes
1answer
224 views

How to position “=” mid-line inside a '\raisebox' and then `align` using `&=` with expression below?

In order to get a full stop at the bottom, rather than mid-line, after an aligned matrix expression, I have raised the expression using a raisebox, and adjusted space using `vspace'. This is now ...
2
votes
0answers
69 views

tikz matrix and beamer [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I would put the following figure in a beamer slide I tried with [ampersand replacement=\&] but it does not work ...
2
votes
1answer
529 views

Adding text over matrix in LaTeX

I am trying to accomplish this in LaTeX. j ⎡a b c⎤ |d e f| ⎣h i j⎦ so that the "j" is aligned with the center of the matrix. It seems like I can't use the \begin{align} ...
2
votes
1answer
290 views

using easybmat and tikz packages together?

In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat ...
1
vote
1answer
297 views

a line through a column in MathML [closed]

I have a problem with MathML. How can I draw a line through a column (row and column at the same time) in a matrix? An example in TEX: Draw a line through one column of a matrix