{tikz-matrix} concerns matrix nodes particularly in the tikz-matrix library of tikz-pgf.

learn more… | top users | synonyms

0
votes
2answers
69 views

Combining Tikz concepts/librarys to draw a complex picture with relative alignment/distances

I think all of the problems has been asked by me or others in the past. But my over all problem is that I am not able to combine all this solutions to the real picture I want to draw. Normally it is ...
5
votes
2answers
122 views

Position of text and arrows in TikZ matrix

I want to put a text inside a TikZ matrix, but it always begins from the bottom !. So, my qusetion is how I can force it to begin from the top? My MWE: \documentclass{article} ...
0
votes
0answers
47 views

design multiple array using tikz

I would like to design multiple array like this using tikz:
1
vote
1answer
27 views

splitting maths in two lines in a node

I have the following code: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.misc} \usetikzlibrary{calc} \tikzset{cross/.style={cross out, draw=black,ultra thick, ...
2
votes
1answer
22 views

Why is my \matrix path failing when put inside another macro? [duplicate]

I've have the following two pieces of code. The first one compiles; the second one doesn't. I don't understand why the second one fails. Could someone explain? Example 1: \documentclass{article} ...
3
votes
1answer
64 views

Spectral sequences using tikz

I am trying to draw a spectral sequence in LaTeX using tikz. I would like to draw arrows connecting adjacent nodes; I already drew the first one but it doesn't look horizontal. Does anyone know how I ...
3
votes
1answer
64 views

Why does whitespace above \vdots disappear in bmatrix?

While creating presentations with beamer, I have the problem described in broken matrix gaps in brackets. Using the solution proposed by Loop Space, I discovered that \vdots have an annoying ...
5
votes
1answer
256 views

How to 'rotate' a matrix

I'm writing a pdf for class and I want to explain the transpose of a matrix. I want to add the following image to my .tex Any ideas to work this? Should I delete this idea from my pdf?
1
vote
1answer
50 views

Annoying space between nodes in a matrix

How to force this matrix to look like a regular table? \matrix[matrix of nodes, ampersand replacement=\&, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={draw,minimum size=10mm}, column ...
3
votes
1answer
41 views

How can I apply a style to elements of a submatrix of a tikz matrix?

I'm trying to apply a style for a submatrix of a matrix and ended up by passing arguments through two .list-handlers. Things don't work as I expected, again I'm just able to set either rows or columns ...
1
vote
2answers
69 views

Automated matrix padding in tikz

I encounter an error with the following code : \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart, fit,backgrounds,calc} \begin{document} \node[matrix, ...
6
votes
3answers
96 views

Striking out matrix lines and columns: is Tikz the only way?

I would like to show a matrix with "strike-out lines" on some of its rows and columns. After some research I found a solution using Tikz matrices, which I reproduce here: \documentclass{article} ...
2
votes
1answer
65 views

TikZ, Beamer and matrix node iterative highlight ending in unwanted displacement

I have this code, and I want the blue-circled node to not expand the whole table when highlighted. With the additional minimum size option, the table stay unchanged, but the node moves, which is quite ...
2
votes
2answers
73 views

TikZ matrix : put frames around nodes but preventing edges to overlap

I can't figure out how to prevent each border to overlap on others, on the MWE below. If someone has an idea... \begin{tikzpicture} \footnotesize \matrix (m) [matrix of nodes, row ...
2
votes
1answer
43 views

Unexpected padding in tikz matrix with one row

When I produce a matrix in tikz in brackets, and then a row vector, I find the padding before the top row (with respect to the top of the brackets) is larger for the row vector than for the matrix. Is ...
3
votes
1answer
140 views

Tikz matrix does not allow me to \draw line between nodes

If I want to put a line between nodes 1-1 and 2-2: \begin{tikzpicture} \matrix (magic) [matrix of math nodes, left delimiter=\lvert, right delimiter=\rvert,column sep=4pt,row sep=4pt] { \draw ...
2
votes
1answer
58 views

Multi-parts nodes in a matrix with tikz

Good evening (or morning, as you wish) everyone I am using tikz and I encounter some little annoyance while using multi-parts nodes in a matrix. It may be trivial but I cannot find out why using ...
2
votes
1answer
58 views

Horizontal line in Matrix

This question is building from the post found here. How to move the horizontal dashed line so that it is slightly further away from the superscript "T"? Also, when this horizontal line is moved, how ...
3
votes
1answer
97 views

Remove inner row separators of a matrix

I have the following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ ...
2
votes
2answers
128 views

How to insert a \vline inside a matrix node in tikz

I have to draw many nodes inside a rectangle and separate the first one from the following ones with a line. It seems to work if I do it vertically: I use a matrix node for the outer rectangle and ...
2
votes
2answers
234 views

Drawing this matrix using Tikz

I have a matrix which has certain properties. To illustrate these properties, I would like to generate the following image using Tikz: Additionally, I would like the following things on the image: ...
7
votes
2answers
154 views

Draw lines over a matrix

I have the following code to print a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
5
votes
3answers
174 views

Drawing a really large binary matrix as colored grid

I have a 50x300 binary marix, which I want to display as a colored grid. I tried the approaches of drawing a large binary matrix as colored grid which I like, but the approach using pgfplots table ...
3
votes
1answer
162 views

How can I add an underbrace in this TikZ picture matrix of maths nodes?

I have the current tikz picture and would like to add a underbrace between the 2nd and 3rd row at the location unidentified by the 2 arrows pointing down. \documentclass{article} \usepackage{tikz} ...
0
votes
1answer
50 views

TikZ matrix angle brackets mis-interpreted [duplicate]

I'm newbie to TikZ. When I use < and > in matrix, they are interpreted to some other symbols. The following code \documentclass[tikz,convert=pdf2svg,multi=false]{standalone} ...
2
votes
0answers
9 views

Error related to tikz-cd and user-defined commands [duplicate]

My LaTeX document looks like this: \documentclass{article} \usepackage{tikz-cd} \newcommand{\commSq}[8] { \begin{tikzcd} #1 \ar[r, "#2"] \ar[d, "#6"] & #3 \ar[d,"#4"] \\ ...
0
votes
0answers
34 views

Local spacing of tikz-matrix

I use something like the code below in a document with a spacing fixed in the header. Now I locally want to use a different spacing in a calculation containing 4-5 matrices like the one below. These ...
1
vote
2answers
68 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
3
votes
1answer
56 views

Not able to align nodes properly

I have the following code: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{a4paper} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{calc} ...
6
votes
4answers
473 views

matrix with tikz

I would like to reproduce the diagram in 2.1 of https://www3.nd.edu/~wgd/Dvi/CalculatingSimplicialLocalizations.pdf So far I have this piece of code but I don't know how to fill cells with ...
0
votes
0answers
17 views

Problems using Tikz in Beamer [duplicate]

I am writing a beamer code, and I am copying and pasting some stuff from a normal file (documentclass book). I want to use the code \documentclass[a4paper,12pt,oneside,openright]{book} ...
8
votes
1answer
333 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
2
votes
1answer
89 views

Tikz, can I have multigrids inside a table or matrix?

I'm in charge of a mini-shop in my dorm, we need some accounting system. People pay with credits. Usually it is done in paper, people take a beer and draw a line out from their name-row and the beer ...
1
vote
1answer
75 views

Expansion problem in a grid-like tikz figure

My goal is to automate a process where I have many pictures from a movie sequence and I would like them to be typeset in descending rows. For that, all my images rest in a folder and of course, they ...
2
votes
0answers
30 views

Add a row and a column to tikz matrix with a different style [duplicate]

I should add a header row: 1 2 3 4 to a matrix and a column (as before: 1 2 3 4 ) on the left of the same matrix. But the style should be different like below: this is my MWE: ...
1
vote
1answer
55 views

tikz matrix alignment slightly off

I know there have been many posts with similar titles, but somehow I couldn't find anything that seemed related. Here is a MWE, where I would expect all rows to have an even distance. But obviously ...
5
votes
2answers
313 views

Draw lines inside a matrix

I have the following code to draw a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
2
votes
2answers
94 views

Put a title above a matrix

I have the following code, which draws a title (a matrix:) and a matrix: \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \node at (0,2) {\Large a matrix:}; \matrix[ ...
2
votes
1answer
179 views

Change the font size of a text in a matrix table

I have the following code of tikz... The font size \huge or \tiny does not work, could anyone help? \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix ...
1
vote
0answers
36 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
2
votes
1answer
53 views

Node syntax in matrix not working - possibly due to new version of Beamer/pgf

I am recycling some material from an old beamer presentation, and I find that code which used to compile just fine, no longer seems to work. I have replicated the problem in the code below, which ...
2
votes
1answer
223 views

Cannot compile “Matrix multiplication” example from texample.net

The example Matrix Multiplication fails to compile. From this answer I gathered that something changed in TikZ 3.0, but since the answer does not really explain what one should change, I'm stuck as ...
4
votes
1answer
242 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
3
votes
0answers
147 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
4
votes
1answer
162 views

tikz matrix as legend does not work with trim axis

I am using the tikz-library matrix to create a legend for a plot with two y-axes. When I add "trim axis right" to the code the legend is stretched to the right. How can I prevent this? ...
5
votes
1answer
753 views

Generating a 3x3 payoff matrix (Game-Theory)

Been working on some economics lately, and was able to figure out how to put together some 2x2 payoff matrix's but not sure how to go about doing a 3x3. I would like to keep the same general idea if ...
3
votes
1answer
226 views

Is it possible to add node labels to some matrix column or row when building it?

I want this: which is done with \documentclass[border=2mm,tikz]{standalone} \usetikzlibrary{matrix} \begin{tikzpicture}[ mygridmatrix/.style={matrix of nodes, row sep=-\pgflinewidth, ...
5
votes
1answer
244 views

A global math mode for matrix

I have the following code to produce a matrix, which works: \begin{center} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix of nodes, row sep ...
4
votes
2answers
188 views

Borders of a matrix are not well placed

I have the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \colorlet{mlightgray}{gray!20} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, ...
2
votes
1answer
124 views

Rotate one row in matrix of nodes (tikz)

I am trying to rotate one row of a matrix of nodes. Is it possible? MWE (rotation does not work): \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...