Stack Exchange Network

Stack Exchange network consists of 174 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.

9
votes
2answers
169 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
73 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
84 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
62 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
62 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
42 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
37 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
52 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
45 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
1k 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
41 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 ...
6
votes
2answers
206 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
28 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
33 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
41 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
279 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
46 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
51 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
62 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
79 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
49 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
43 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
454 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
55 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
202 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
56 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
196 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
43 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
95 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
37 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 ...
0
votes
2answers
76 views

Box each element of a matrix

I want elements $A_0,A_1 \cdots A_l,Z_1,Z_2, \cdots Z_d$ to be put inside a box. I have written the following code. \documentclass[13pt]{article} \usepackage{tikz,amsmath,amssymb,mathtools,nccmath} \...
2
votes
1answer
57 views

Use matrix and chains in beamer animation

I am trying to use beamer to generate a gif like this I am able to get it working with \node and \draw with the following code \documentclass[border=5mm, usenames, dvipsnames]{beamer} \usepackage{...
6
votes
2answers
195 views

Optional Arguments for Macros Called within Tikz Matrix

I am trying to set up a tikz matrix (actually, in this case, a tikz-cd) where I call different macros within the cells, which will determine the content that appears. This all works fine provided I ...
4
votes
1answer
178 views

Problem of using Tikz in beamer presentation

I used Tikz to draw some specific shapes on a matrix, this the MWE that I am using: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing} \pgfkeys{tikz/...
12
votes
1answer
233 views

Drawing some specific shapes on a matrix using Tikz

I am new to using Tikz and, I have a matrix which is the sum of three matrices L, D, U. To illustrate these parts, I would like to generate the following image using Tikz: How can I do that, any help ...
4
votes
2answers
132 views

Two adjoining rectangles tikz in matrix

I'm using a matrix to put the nodes in a Tikz diagram: \documentclass[border={0pt 0pt 0pt 0pt}]{standalone} \usepackage{tikz, calc} \usepackage{array} \begin{document} \begin{tikzpicture} [ ...
2
votes
1answer
62 views

How to insert a header row to a TikZ matrix programmatically

I am trying to construct an entity relationship diagram using TikZ. I have used this excellent answer given by Mark Wibrow. However, I would prefer that the entity name is given within the matrix, ...
2
votes
1answer
117 views

TIKZ Matrix nodes filled with colour afterwards and set to background

I have a (maybe easy) problem in formatting a matrix in tikz. In the first step I ordinary filled my matrix with nodes inside the matrix environment. After finishing my matrix I use the fit ...
4
votes
1answer
71 views

Text wrap in matrix context

Before I use the matrix facility. I can wrap text inside a box simply by specifying the align=left property then \\ However, in the matrix context, this seems not working. I want the graph like this ...
2
votes
1answer
51 views

Follow-up to: Figure with table, text, background colors, and outside figure annotations [tikz][library matrix]

This is a follow-up question to Figure with table (using tikz with library matrix). Although I received a great answer and good feedbacks for my previous question (see above link), I am having a ...
1
vote
3answers
74 views

Highlighting certain parts of matrix without TikZ

I have a matrix, given in the following snippet: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blkarray} \begin{document} \begin{equation} \begin{...
2
votes
2answers
55 views

Append style for matrix of nodes in a loop doesn't work

Following this question defining-nodes-of-a-matrix-programmatically, I was able to precise more of what I am trying to achieve. Sorry that I was way too general in the first question. Here is the new ...
1
vote
2answers
101 views

Defining nodes of a matrix programmatically

I am trying to define a matrix of nodes programmatically but have issues regarding the step of defining the nodes of the matrix. The nodes are of different sizes (dimensionsBigBox and ...
4
votes
2answers
241 views

Highlight elements in the matrix in tikz

I have a matrix and need to highlight some elements in the matrix as in the example. Thanks \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{calc,arrows,automata,positioning} \usepackage{...
9
votes
2answers
415 views

TikZ : Drawing a Triangular Block Matrix

I'm trying to draw a matrix like this one in the picture with extremely low success. The code of what I've tried so far is the following \documentclass[letterpaper,11pt]{article} \usepackage{tikz} \...
1
vote
3answers
707 views

drawing circles and squares with TikZ

I am trying to recreate the following sketch using tikz. I found this example to draw circle but combining it with a grid to generate the following picture is a bit difficult. How can I generate ...
0
votes
1answer
73 views

Matrix definition with tikz

Hi I am trying to put the Sigma in the center to define a matrix. But I have not been able to do so. Any suggestions? \begin{equation} \mathbf{\Sigma} = \begin{tikzpicture}[baseline=($\mathbf{\...
3
votes
1answer
160 views

Tikz Matrix with Math and Numbers

I am using Tikz to draw an array of arbitrary length $n$. Below is a MWE \begin{tikzpicture} \matrix [ matrix of math nodes, nodes={ rectangle, draw, minimum size=\...
6
votes
1answer
82 views

Different behavior of matrix with node defined explicitly with delimeters versus matrix of nodes

While I was trying to answer another question I found out that matrix of nodes gives the error: ! TeX capacity exceeded, sorry [grouping levels=255]. when the nodes have delimiters. It doesn't happen ...
8
votes
2answers
232 views

Graph of a matrix for a 2D grid using certain discretization scheme

I have a 2D grid which will result in a sparse matrix when discretized with 2nd order central difference scheme using finite difference method (5 point stencil). Is there a way to generate a matrix ...