Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
70 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
69 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
597 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={...
2
votes
1answer
106 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
112 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]...
5
votes
3answers
135 views

TikZ Colorize a matrix

This code \documentclass[tikz,border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix, positioning} \tikzset{ matstyle/.style={ matrix of nodes, nodes={ draw } } }...
4
votes
1answer
118 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
120 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
66 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.
3
votes
1answer
236 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
73 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
94 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
99 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
645 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
50 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
46 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{...
2
votes
1answer
73 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
389 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
113 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
66 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
78 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
755 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
117 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
183 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
655 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
104 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 ...
5
votes
3answers
503 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
81 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
725 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
116 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
228 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
82 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
144 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
132 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
272 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
419 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/...
13
votes
1answer
264 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
193 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
104 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
388 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
188 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
98 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
151 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
63 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
125 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
612 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
596 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
2k 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
128 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{\...

1
2
3 4 5
7