# Tagged Questions

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

138 views

### Position two matrices vertically

I want to show two 12x12 matrices side by side. This is a transition, so there should be an arrow in the middle between them. I have to use tikz, because i want to highlight the one entry that changed ...
92 views

### How to produce this Aufbau/Hund diagram in LaTeX?

How to produce this Aufbau/Hund diagram in LaTeX? I would prefer Chemfig, but TikZ seems a better fit.
221 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} \usepackage[...
26 views

### LATEX: Creating a loop graph from adjacency matrix 1 [duplicate]

I do not know how to draw the graph of this adjacency matrix using latex. this is the matrix 1 1 1 1 1 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 0 0 0 0 ...
31 views

### Problem with the size of arrows (in tikz matrix)

I'm using tikz to make an array with arrows connecting different cells in order to explain how to get one cell using the others. The problem is that the arrows are far to small to be visible. I also ...
62 views

### Labeling custom path in TikZ [duplicate]

MWE: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, graphs, matrix, quotes} \usepackage{fancyhdr} \pagestyle{empty} \begin{document} \begin{tikzpicture} \matrix[...
57 views

### How to add arrows going from a matrix to column vectors?

If possible, I would like to know how to do this. Thank you. Here is my code: \documentclass[11pt]{memoir} \usepackage{tikz} %%% GRAPHIQUE \newcommand{\largeto}{\mbox{\LARGE${}\to{}$}} \title{...
44 views

### Matrices of nodes in Tikz alike to the ones in the amsmath package

I'm trying to work with matrices in Tikz. Specífically I would like to follow the amsmath package but I'm having a really hard time dealing with the overlay - remember picture thing. Here is the ...
38 views

### SOA Map based on Tikz

I would like to create a SOA Map based on Tikz or pgf. Basicaly this means a Matrix with realations from level to level, so that i could place my boxes in a easy way. I does not have to be as ...
39 views

### 'Package pgf Error: No shape named is known' for nodes defined in matrix [closed]

On my local system \graph is not able to recognize nodes defined \matrix \documentclass{article} % say \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds} \usetikzlibrary{...
52 views

### Weird cell placement in a tikz matrix

The code \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix[matrix of math nodes, column sep = {1.5cm,between origins}, row sep = 1cm] { ...
77 views

### Problem with tikz image in beamer.

I really hope you guys can help me out here. I have a tikz picture which is working mighty fine in the standard article mode using the following packages/libraries: \usepackage{tikz} \usetikzlibrary{...
368 views

### What is the best way to create this kind of binary matrix?

Like the fig 2. on page 3 of Relations in Mathematical Morphology with applications to Graphs and Rough Sets, John G. Stell Thank you!
3k views

### How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
44 views

### Tikz matrix inside foreach

I want to draw a matrix inside foreach but the compiling is aborted due to some errors. This is my code: \documentclass{scrartcl} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x in ...
416 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 ...
363 views

### Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
20 views

### Matrix node inside foreach loop give error when multiple columns

This question is different from \foreach inside \matrix questions 1 and 2. I was trying to do this question 3dmatrix. The \matrix command, when put inside \foreach gives the following error when ...
415 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 ...
53 views

### Issue referencing TikZ matrix nodes [duplicate]

In one of my documents I used the following template to illustrate a matrix multiplication but nowadays I get the error that shapes like A-2-1 are unknown. This is a known issue described in various ...
66 views

### Automated matrix of tables with TikZ

I'm working on this code \documentclass[a4paper]{standalone} \usepackage{amssymb,tikz} \usetikzlibrary{positioning, calc} \begin{document} \newcounter{compteur} \setcounter{compteur}{1} \newcounter{...
101 views

### Add matrix name inside tikzpicture

I have this matrix and I would like to name it. I have to enter H = in the begining of the matrix but I cant. I tried with \begin{bmatrix} but I can't circle with TikZ. \begin{equation*} \begin{...
80 views

### Right options to draw a matrix of rectangles

Considering the following TeX code: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{frame} \begin{tikzpicture} \matrix (mat) at (7,-4) [matrix of ...
71 views

### Color two columns separately in a matrix

From the solution code found here, I wanted to be able to also have a colored box around the x4 column like this: I also looked at the solution posted here that gives different colors in rows/...
24 views

### Divide a matrix into two regions in latex by line and color [duplicate]

I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure: Any tutorial or instruction?
31 views

### Implicite addressing of inner matrix nodes doesn't work here

Addressing the nodes inside of this matrix implicite doesn't work here. I don't want to name them explicte. \documentclass{standalone} \usepackage{xltxtra} \usepackage{tikz} \usetikzlibrary{matrix,...
115 views

### How to highlight elements of a matrix in a formula? [duplicate]

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts ...
129 views

### how to draw a stair matrix using tikZ in Beamer?

I am very new to Beamer and LaTeX. I want to draw a stairs matrix as attached. It should be pretty simple but I just don't know how to draw it. Please only use tikZ (and matrix) and don't use other ...
64 views

### tikz matrix not distributed evenly [duplicate]

How can I make the box distribute evenly? code as below: \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \begin{document} \begin{tikzpicture} \def\lw{1pt} ...
98 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 ...
54 views

### design multiple array using tikz

I would like to design multiple array like this using tikz:
36 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, ...
29 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} \...
135 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 ...
117 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 ...
261 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?
82 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 ...
85 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 ...
92 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, ...
878 views

### How to insert a linebreak in a TikZ matrix node?

How can I get a linebreak inside a matrix node? The following gives the error: Package tikz Error: Giving up on this path. Did you forget a semicolon?. unless I remove the linebreak. \...
198 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} \...
139 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 sep=-\...
88 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 ...
117 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 ...
84 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 ...
244 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 (0,0)...
174 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 ...
106 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 ...