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

learn more… | top users | synonyms

1
vote
1answer
30 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 ...
0
votes
1answer
14 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 ...
3
votes
2answers
267 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. ...
2
votes
1answer
61 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} ...
8
votes
1answer
94 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*} ...
1
vote
0answers
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 ...
2
votes
1answer
55 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 ...
1
vote
0answers
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?
0
votes
1answer
48 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 ...
2
votes
2answers
30 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} ...
6
votes
1answer
92 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 ...
2
votes
2answers
96 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 ...
4
votes
1answer
56 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} ...
0
votes
2answers
85 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
166 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
52 views

design multiple array using tikz

I would like to design multiple array like this using tikz:
1
vote
1answer
34 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, ...
3
votes
1answer
27 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
91 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
92 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
259 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
60 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
59 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
80 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
138 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
76 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
100 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
86 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
196 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
71 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
72 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
113 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
161 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
282 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
210 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
191 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
206 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
55 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
37 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
91 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
66 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
515 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} ...
9
votes
1answer
401 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
100 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
78 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
31 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
59 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
386 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 ...