Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-matrix]

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

1
vote
1answer
18 views

How do we put labels to this matrix as shown in colors?

The code that I am currently using is below \begin{equation*} \mathsf{L} ~~=~~ \begin{bmatrix} 1 & 0\\ 0 & -1\\ 1 & 1\\ 1 & 1 \end{bmatrix} \end{equation*}
1
vote
1answer
74 views

Populating a tikz matrix with complex content

I am trying to populate a tikz matrix dynamically using foreach to loop over a list-argument and breaking it further apart using xstring operations. I am hitting an issue where, as far as I can tell, ...
3
votes
2answers
98 views

Matrix with uneven element lengths with added rows/columns

From the answer to this question Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{arrows, calc, fit, ...
2
votes
1answer
90 views

Aligning matrix of nodes with grid

I am trying to render a grid of stones using the code below, however when I remove the stone in m-3-1, the stones above and to the right of it (particularly m-1-5) will be off-center: \...
2
votes
1answer
77 views

Matrix with uneven element lengths

From the answer to this question When editing the elements of the matrix to become uneven in length, the display of the matrix becomes disturbed. How can this be solved \documentclass{beamer} \...
5
votes
2answers
125 views

Separating matrix elements by lines

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows, arrows.meta} \...
2
votes
1answer
21 views

How do I write a matrix inside a flowchart?

I'm new to LaTeX and I would like to write a matrix inside a flowchart. How do I do this? The matrix should go in the empty node and concatenated to some text: Current method of storing the matrix ...
4
votes
1answer
40 views

How to add a number at the right of a matrix plot and an additional colored 1 line array below or above

From this precedent question Drawing a large binary matrix as colored grid in TikZ I have the following matrix plot: \documentclass{article} \usepackage{filecontents} \usepackage[table]{xcolor} \...
0
votes
1answer
28 views

matrix with its minors highlighted [duplicate]

I have to highlight the ith row and jth column which are removed from a matrix to form its minor as depicted in the picture My try is this, but I don't know how to highlight.. \documentclass[...
2
votes
1answer
23 views

Beamer - error when uncovering tikz matrix

I am trying to uncover a tikz matrix using the code below. But it is throwing an "undefined controlled sequence" error. Does anybody know how I can fix this? \documentclass{beamer} \usepackage{tikz} \...
27
votes
2answers
1k views

Levi-Civita symbol: 3D matrix

During the current review of the tensors I have arrived at a page of Wikipedia where you can see the symbol of Levi-Civita in a beautiful three-dimensional matrix. I hope that nobody will be angry ...
2
votes
1answer
52 views

Place Value Chart in Matrix Environment

I want to add another columns (yellow) for the Millions Place plus I would like to auto adjust textwidth and height of the nodes while reading the place values from bottom up: \documentclass{article} ...
0
votes
1answer
33 views

How can I create box cells in the form of half of 6×6 matrix?

Looking for some ways to write a half matrix with box cells. My aim is to write like things in the picture.
1
vote
1answer
85 views

Determinant with tikz latex

I need your help to formulate Sarrus rule for 3X3 matrix Thanks in advance.
3
votes
3answers
261 views

Determinant of 3x3 matrix by cofactor expansion

please help me to create this in LaTeX:
1
vote
1answer
28 views

Put first element of tikz above the axis to make a “L” shaped arrow

I'd like to position the first element of my chart just above the x axis to make the first line like a "L" shape. Here is what I have now: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
73 views

How to overlay properly using a Tikz Matrix in Beamer?

Does anyone have a clue about why my last node is moving? I'm trying the overlay as stated in this post. Thank you very much! \documentclass[xcolor=dvipsnames,10pt]{beamer} \usepackage{tikz} \...
5
votes
1answer
92 views

Calculations within Matrix Tikz

How can I tell tikz to make a calculation within a matrix. The same syntax outside does not work within as is shown in this MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,calc} ...
3
votes
2answers
56 views

smallmatrix using tikzpicture

I wish to use tikzpicture instead of smallmatrix, because the former offers better control for dots via this post. However, the code $\Z^4\!\xleftarrow{ \begin{tikzpicture}[baseline=(current ...
0
votes
0answers
52 views

Expand Tikz matrix with foreach statement?

I am playing with Tikz matrices and would like to use the foreach statement to "expand a matrix". More precisely, I wonder if I can use a foreach statement such as: \n in {Alice (the genious), Bob, ...
13
votes
4answers
357 views

TikZ matrix, why doesn't “every even row” work with “row sep” option?

Please consider the following mwe: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math nodes, nodes={...
3
votes
1answer
81 views

How to draw uniform rectangle in a matrix of math nodes?

I made a matrix of math nodes. I am able to draw a rectangle around desired nodes. But every node has content of different size, which deforms the shape of the rectangles. I tried using x and y ...
4
votes
1answer
97 views

Shading apply to label unexpected in matrix environment

I am trying to add shadow to node. For normal node, the shade will not impact the label. However, for nodes inside a matrix, the labels are shadowed too. MWE below \documentclass[border=5mm, convert]...
4
votes
1answer
86 views

Placing a Tikzpicture and Matrix together

I need help a little on the matrix again and putting together the matrix and tikzpicture I created. \documentclass{article} \usepackage{tikz,amsmath} \usetikzlibrary{decorations.pathreplacing} %%% ...
2
votes
1answer
73 views

Making a Table (Matrix) with Tikz

I need to get start with making a matrix in Tikz. I need to study the manual but need some help with an example to get started. My minimal example is very poor but it is the best I can do without ...
0
votes
1answer
55 views

How to make these type of matrices?

How to make these type of complicated structures? I searched online but could not find any resource or examples.
2
votes
1answer
87 views

Drawing dashed border matrix with tikz

I need to draw a matrix such that there is dashed line between each column and row. This is my code just to start, but the result is not good. As you see the second horizontal line is not direct and ...
3
votes
1answer
59 views

Generating tikz figure in latex

I am trying to generate a tikz figure similar to So far I made the following latex code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{booktabs} \usepackage{...
2
votes
1answer
59 views

signalflowdiagram does not draw anything with `\matrix`

I am using signalflowdiagram from here: http://www.texample.net/tikz/examples/signal-flow-building-blocks/. Then I installed it in my texmf-local folder. The tree looks like this: /usr/local/texlive/...
2
votes
2answers
2k views

How do I draw the following matrix in LaTeX?

I want to draw the following matrix in LaTeX: I found that I should use the TikZ package, and I have spent a lot of time looking at the package. However, I have no experience of using the package ...
3
votes
1answer
60 views

How to have a dotted line separate a matrix into upper and lower part

So, here is what I want to do: I have created a matrix C and another Matrix D. And I have labelled the columns and rows. Now, I want to join these two matrices together, keeping the labels. But I ...
7
votes
2answers
386 views

How empty cells in tikz table (matrix)?

I am trying to recreate below table in tikz (I need because I could use tikz in my jupyter notebook to render embedded output but not yet latex) When I try via tikz I only get this far.. My MWE: \...
1
vote
1answer
34 views

Setting matrix cell styles from within the matrix

I'm programmatically generating a tikz matrix, and sometimes, when I've generated one cell, I learn something from that which is going to affect how I style a later cell. So, I want to be able to call ...
1
vote
1answer
37 views

tikz matrix of nodes in tabularx

I try to put two tikzpictures containing each a matrix of nodes next to each other in a tabularx spanning the whole textwidth. Here is what I tried \documentclass[11pt,a4paper]{article} \usepackage{...
1
vote
1answer
51 views

TikZ Picture matrix entry distance

I have a matrix (formed by calendar) in a tikz picture. I have separated some days in the matrix by 3 rectangular blocks but the edges are overlapping. How can I prevent edges overlap? Thank you. ...
4
votes
2answers
320 views

TikZ matrix is skewed

I am trying to create an academic calendar for myself. I am trying to fill the fall semester in orange color but the edges of the blocks are skewed. Please help me in positioning the edges either in ...
1
vote
1answer
62 views

TikZ-matrix: Generating a table from two nested foreach loops

For the following MWE, I would like to know how I can reduce the code by having two nested for loops. \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{...
3
votes
1answer
54 views

External arrows in tables

How to achieve similar arrows as in the picture? The main issue cause of arrow a(2,1) -> a(1,3), a(3,1) -> a(1,4), etc. Or at least how to make them on top of the table, but to make it look ...
1
vote
1answer
67 views

Matrix image with shattered glass effect

I have a matrix whose primary dimension is infinite and want a way to reflect this in the matrix diagram itself. The following image is not what I want, but it illustrates the jist. I would prefer to ...
0
votes
1answer
199 views

Command to specify the exact height of a node in Tikz

I have a maybe really dumb question. I am using a matrix of nodes where I specify a 'minimum height' for all nodes globally (1.5 cm) However, when I now want to set the node height of row 6 to a ...
2
votes
1answer
71 views

Tikz matrix - positioning of table out of bound

I am trying to draw a table using tikz and the matrix tool, but when I plot in pdf the table is located out of the margins. I am trying to localize the matrix at the position (0,0) but it is ...
0
votes
1answer
87 views

Labeling threeparttable footnotes

I want to label footnotes using the threeparttable package, but it does not seem to be able to assign a label without proper caption. In fact if I disable the \caption package it works. But I need the ...
4
votes
2answers
504 views

How to draw a circle in a matrix like this?

I came across matrices like this in a book. Can I create this using pure latex commands or do I need to using something like Photoshop for help? Update: I've created the equation without circle like ...
2
votes
2answers
64 views

Overlapping edges from nodes are bigger than normal edges in matrix

I wanted to create template from the business model canvas using a matrix in Tikz (maybe there is a more intelligent approach). So far it works okay. However, as I have to make some multi-rows and ...
4
votes
3answers
283 views

Matrix multiplication with Tikz

Using the code from this answer and tedious edits with Adobe Illustrator I managed to produce the following figure I'd be interested to see if someone can come up with Tikz code that does the same ...
0
votes
0answers
63 views

How to produce a Transportation Tableau using tikz matrix

I need a help from you all... I want to produce a Transportation Tableau like the one in the picture using tikz matrix... Is it possible with tikz? If possible please help... Thanks in advance...
6
votes
2answers
327 views

How to create Eisenhower Matrix Notepad in LaTeX

I'd like to know how to create a Eisenhower Matrix Notepad on Latex. (I took the image example from here) It looks like this: So far I was using following code: \documentclass[7pt]{article} \...
4
votes
2answers
60 views

How to set “bigger” elements with a box around in a matrix?

To be specific, I want to set the following matrix: I already read Draw a box around matrix elements, but I dont know, how one makes a block "T" of this size. How do I do this?
0
votes
1answer
125 views

Cell placement in a Tikz matrix

I have a single column Tikz matrix, each cell containing one or more lines of text. I would like the first cell to have its text centered while all the other cells have their text left aligned. In ...
0
votes
1answer
55 views

How to center a matrix of tikzpicture

This is the code \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing, calc, positioning} \begin{document} \begin{center} \begin{tikzpicture} \matrix [matrix of ...