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

learn more… | top users | synonyms (1)

1
vote
2answers
297 views

Why am I getting a frame number of 2? [closed]

Using tikz/matrix inside beamer, I have several slides with a wrong page/frame count. Why is that so, and how can I avoid it? MWE: \documentclass[14pt]{beamer} \usepackage{tikz} ...
10
votes
1answer
21k views

How to represent the trace of a matrix [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman The trace of a matrix is often written as "Tr [matrix] ", but there does not seem to be a naive LaTeX symbol for ...
8
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
12
votes
1answer
692 views

Enter matrices by columns rather than rows in TikZ

I find myself drawing a lot of quantum circuits these days, and I do them in TikZ because it produces very nice diagrams. A quantum circuit is a lot like staff (as in music). You go from left to ...
8
votes
2answers
26k views

Vertical line in matrix using LaTeXiT [duplicate]

Possible Duplicate: What's the best way make an “augmented” coefficient matrix? I am trying to make a vertical line in a matrix in LaTeXiT. I have read that it should be ...
12
votes
3answers
19k views

Vertical spacing between fractions in matrix environment [duplicate]

Possible Duplicate: How can I increase the line spacing in a matrix? Using display style fraction in a matrix environment How to add extra spaces between rows in tabular environment? ...
1
vote
2answers
273 views

How to create newlines?

I am new to Latex and found out how to use it a bit. Newlines are created by \\ I get the following error: \\ can only appear in a matrix or array How do you create newlines between matrix or ...
9
votes
1answer
1k views

How can I draw a diagram for matrix multiplication with LaTeX?

I'm trying to make a PDF manual for matrix multiplication with LaTeX. I'd like to generate a graphic similar to this one (from Wikipedia/Matrix multiplication): I guess this will be quite a bit of ...
14
votes
2answers
4k views

Array with labeling columns

Is there an intelligent way to label (or name) columns in a matrix? I would like to have something like \[M=\left[\begin{array}{c|cc} 1 & 2 & 3\\ 4 & 5 & 6 ...
17
votes
2answers
51k views

3 dots in matrix

I was wondering if anyone knew how to draw 3 dots in a matrix that go in a diagonal way usually to represent that element flow similarily in the slots. I know there's one that goes in the bottom right ...
1
vote
2answers
788 views

Matrix gauss package problem with alignment

So far I am using the gauss document package, because it offers to show row operations. Now If i try to add fractions inside the matricies, or - signs things gets messy... The text will not align ...
6
votes
1answer
735 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 ...
7
votes
2answers
319 views

Objects that are bigger than others inside a matrix

I wonder, if possible, how to create a matrix that looks like this:
9
votes
2answers
2k views

highlighting diagonal of a square matrix

I have a 3x3 eqnarray. Is there a way to highlight the diagonal with background color, perhaps using tikz? I was using tikz ellipse to highlight equation terms, though stretching the ellipse to the ...
5
votes
2answers
571 views

pmatrix without changing font size

In Plain TeX with the amstex package, is there a way to tell \pmatrix to NOT change font size? E.g. when I do: \sum_{\pmatrix a \\ b \\ c \endpmatrix} I end up having to insert \scriptstyle three ...
2
votes
1answer
500 views

Automatically shrinking a matrix

I'm wondering about a way to automatically shrink down a matrix. I can think of \arraycolsep command for the column width but I am not aware of an equivalent command for the height of the lines? ...
3
votes
1answer
4k views

Two matrices side by side

I'm trying to typeset two matrices side by side, somewhat like: A = (matrix) B = (matrix) I tried to next the matrices inside an align environment: \begin{align*} A &= \begin{pmatrix} ... ...
7
votes
4answers
1k views

Obstacles to simulating an amsmath matrix by a TiKZ matrix of math nodes

I'm trying to figure out a TiKZ-based solution to this problem involving arrows between matrix rows. To this end, I would like to at least be able to make a matrix of math nodes simulate the behaviour ...
5
votes
3answers
9k views

Typesetting on block matrix is ugly

I have a large n x n matrix I'm trying to typeset. My current code is as follows: $\left(\begin{array}{c|ccc} 1 & c_2 & \cdots & c_n \\ \hline 0 & ...
8
votes
2answers
3k 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 ...
11
votes
3answers
5k views

Vertical vectors in angle brackets

I wanted to produce the following formula: which is nothing but a vertical vector in angle brackets. I expected the following code to do the job: \left\langle \begin{matrix} a \\ ...
18
votes
3answers
15k views

Where is the \matrix command?

From what I can see, \matrix was a TeX command, but I cannot seem to find documentation on it. It works in MathJax, so I wonder if it can be used in LaTeX. ie this is valid MathJax: $$ \left[ ...
1
vote
0answers
215 views

How to use tikz matrix in a LaTeX command? [duplicate]

Possible Duplicate: Problem with defining shortcuts for TikZ matrices. I tried to use a tikz Matrix in a LaTeX document as the following: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
2k views

Some problems drawing linked lists with TikZ's matrix library

Some time ago I found the question Draw an adjacency-list representation of a graph with tikz and wanted to solve it. I could but with some problems which still remain and How should I draw a ...
5
votes
1answer
10k views

How to properly resize a matrix?

Apparently text is resized in one way and math in other way. However, the commands to resize math do not work well on a matrix; it appears barely smaller and unexpectedly shifted down. The commands to ...
6
votes
3answers
909 views

Specific blockmatrices

I would like to put some block matrices in LaTeX: in the end they should look like this; The first matrix that I need looks like this, sorry I know it does not look very clear this way (for a better ...
12
votes
1answer
917 views

Correct delimiter height in TikZ

When using the left delimiter and right delimiter options, I am having the problem that their height is not equal to the node they are surrounding. Here is an example: \documentclass{article} ...
12
votes
1answer
1k views

Foreach inside a TikZ matrix

Consider this MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix [matrix of nodes] { a \\ b \\ c \\ }; \end{tikzpicture} ...
1
vote
1answer
452 views

separate matrix equation

I want to separate my matric because its over the column size like patter below. from Vm(q,qdot) = [matrix] to Vm(q,qdot) and not \begin{equation} \label{eq6} \begin{array}{c} V_m (\bf {q}, ...
2
votes
2answers
570 views

Changing column separation in smallmatrix environment

How can I change the width of the space between columns in a smallmatrix environment? I can't find any decent documentation on smallmatrix anywhere. The array environment has the setcolsep{..} ...
12
votes
3answers
4k views

Horizontal row separation line in tikz matrix (like \hline in tabular)

In this question tikz-matrix-as-a-replacement-for-tabular a nice solution was given to let the matrix in tikz behave like tabular. In this solution cell/.style={rectangle} was used to draw lines ...
8
votes
3answers
2k views

How to make a newcommand producing a matrix

I would like to do something like this \newcommand{\pmat}[1][2][3][4]{\begin{pmatrix} #1 & #2 \\ #3 & #4\end{pmatrix}} But this produces the error ERROR: LaTeX Error: Missing ...
3
votes
1answer
2k views

Writing Gauss-Jordan Transformation Matrix

I am having trouble writing procedure for Gauss-Jordan transformation matrix in LaTeX. I want to write something like r2 - r1 r3-2r1 [A|I] -------> [A'|I'] -----> and so on ...
4
votes
1answer
2k views

Vertical align in tikz matrix

\documentclass[a4paper,12pt]{report} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{center} \begin{tikzpicture} \tikzset{square matrix/.style={ matrix of nodes, column ...
26
votes
1answer
8k views

TikZ matrix as a replacement for tabular

I would like to use TikZ matrices to for some drawings. I am currently using nodes and positioning them manually to simulate a tabular. That helps in positioning arrows and shading. However, if I ...
5
votes
2answers
7k views

tikz: control text size and location

I am trying to create flowchart, using tikz: \begin{document} \tikzstyle{decision} = [diamond, draw, fill=blue!20, minimum size=2em, text badly centered, node distance=2.5cm, inner sep=0pt] ...
2
votes
1answer
290 views

Vertically asymmetric matrices

I am noticing an odd problem with LaTeX that causes matrices and arrays that I compile to have a whitespace gap at the top of the array. When I use the same code as others online, I produce different ...
2
votes
1answer
2k views

Aligning bmatrix-matrices next to each other?

I have this code: \[ \begin{bmatrix} Pagerank&Sidnummer\\ 0.068945&2\\ 0.068945&3\\ 0.076517&1\\ 0.076517&4\\ 0.11536&7\\ 0.11536&8\\ ...
8
votes
1answer
552 views

Intersections with border of matrix node

Consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,intersections,calc} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math nodes,row ...
7
votes
2answers
1k views

How to Specify two level row and column labels of a matrix by braces?

I'm trying to write the following matrices. I used the following code (given by Caramdir) \documentclass{article} % Load TikZ \usepackage{tikz} ...
5
votes
1answer
1k views

Writing Some Special Matrices in LaTeX

I've to write the following matrices in LaTex. Any help in this regard will be highly appreciated.
7
votes
2answers
6k views

Label matrix dimensions

I have a matrix equation like Ax=b I'd like to include the dimensions under each, like so \underset{p\times k}{A} \underset{k\times 1}{x} = \underset{p\times 1}{b} The problem is that this is ...
7
votes
1answer
2k views

Centering xymatrix in equation environment

The xymatrix diagram does not seem to vertically align when grouped in an equation environment. For example, this code produces the following image (which seems to place the xymatrix 2.5em lower than ...
0
votes
2answers
1k views

Double square bracket

I need to have 2 square bracket matrix on the same equation line. I'm able to do just for a single square bracket matrix (for \xi) with below \xi = \left[ \begin{array}{c} \xi^1 \\ \vdots ...
7
votes
2answers
1k views

Positive and Negative power in matrices and fixed size

I'd like to create a matrix that has some positive power and negative power. I'd like to have an alignment to right, so for example: \begin{array}{rr} 3 \times 10^3 & 2 \times 10^3 \\ 3 ...
5
votes
1answer
692 views

aligning columns at decimal point in TikZ matrices

Is there a way to align numbers in a TikZ matrix at the decimal points, as is possible in normal tables (Aligning numbers by decimal points in table columns)? http://www.texample.net/tikz/builds/ ...
4
votes
3answers
2k views

How to get TikZ nodes not to change alignment?

I'm still working on rendering a nice block matrix. I've been using BMAT but it is irrelevant for the question at hand. I want to connect various entries in an array/matrix/BMAT by lines, and I'm ...
4
votes
2answers
877 views

Problem with \bordermatrix inside array

When a \bordermatrix is placed inside an array, the spacing between rows will be wrong (see the MWE below). What is causing this problem? Is there a solution? \documentclass{book} \begin{document} ...
3
votes
2answers
1k views

Weird error with xymatrix and pmatrix.

Please look at the following minimal example: \documentclass{article} \usepackage[all]{xy} \begin{document} \( \xymatrix{ \begin{pmatrix} 1 & 1\end{pmatrix} } \) \end{document} The output I get ...
0
votes
0answers
325 views

Matrix with labels [duplicate]

Possible Duplicate: bordermatrix with blocks I'm attempting to copy the matrix on this page: http://tiny.cc/ipliw with the labels outside the matrix. I can make the matrix (given below) but ...