Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
74 views

TikZ: Robust and automated creation of signal-flow graph (parallel form)

Following up on my previous question, I would like to know how I can automatically and robustly create the parallel form of a signal-flow diagram for the following without manual drawing of the lines/...
1
vote
2answers
81 views

Can tikz-matrices be “forgotten”?

I'm having an issue with matrix names in tikz being "persistent". Consider the two matrices: These matrices were generated with the following code: \documentclass[border=12pt]{standalone} \...
4
votes
2answers
81 views

Is it possible to refer to the last column of a tikz matrix?

Consider the following matrix This matrix was produced with the code \begin{tikzpicture} \matrix[ , matrix of nodes , left delimiter={[},right delimiter = {]} ] (m) { * & * & * &...
1
vote
1answer
38 views

How can I make my tikz matrix look more like an array?

Consider the following two matrices: The matrix on the left is rendered with the code \left[ \begin{array}{rrrr} 1 & -32 & 0 & 15 \\ 16 & -138 & -3 & 5 \\ 4 ...
2
votes
0answers
52 views

TikZ : matrix nodes name unknown after update

I just upgraded from fedora version 32 to version 33. Tikz has therefore been updated (from the 3.1.4b to 3.1.5b). Since this change, this figure no longer compiles (I uses Lualatex) : \documentclass{...
0
votes
1answer
20 views

How can I position a tikz matrix to the side of a Venn diagram?

I have a tikzpicture that consists of a Venn diagram, with a matrix for the legend. However, I can't find any documentation on how to position the matrix to the side of the diagram instead of on top ...
2
votes
1answer
43 views

How to remove rogue arrowhead in TikZ drawing?

This is my first time using TikZ, I looked at a lot of examples and managed to piece together exactly what I wanted. However, there is a rogue arrowhead in the diagram that I just cannot seem to get ...
0
votes
0answers
16 views

How to align nodes next to a calendar in week list arrangement?

I generate calendar tex file using python, because it imports holidays and events for me. I can modify the .tex file afterwards, but I prefer to compile it with a subprocess from the script. To make ...
0
votes
2answers
46 views

Matrix element alignment in Tikz

Im trying to align the elements of the matrix to the left but its not working. Any idea? \documentclass{beamer} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}{...
4
votes
1answer
65 views

TikZ: How to create a list with calculated entries for a style

I have a TikZ-matrix. And I want to highlight the rows 1, 3, 6, 10, 15, 21, 28,... =n*(n+1)/2 For small examples, I could do it this way: highlight/.style={ row #1/.style={....} }, highlight/.list=...
0
votes
1answer
28 views

how to add caption above and alongside on Matrix

can you help me with printing Matrix like picture below? I have no idea how to add the text above and alongside to Matrix in that way, and how to add those ellipses somewhere especially for sparse ...
2
votes
2answers
108 views

Matrix labeling is not working in TikZ

I ran into this code which is very helpful, however, when I run the code there is an error regarrding all the nodes (for instance no shape is named A-2-1), I don't know what is the problem since the ...
0
votes
1answer
31 views

Does \matrix works with Beamer?

I'm trying to include this matrix in my beamer directly, so the new code is something like (\documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,decorations....
0
votes
1answer
59 views

Text alignment in a multi-column cell of a tikz matrix

I would like to use a matrix to create a legend in a plot. This matrix contains a cell whose width occupies two columns. I have a problem with the positioning and alignment of the text of this ...
0
votes
1answer
41 views

With Tikz & Matrix, nodes generated in a foreach loop don't accept “wind anchors” (north, south etc.)

This is a small matrix with 5x3 nodes. My true matrix is much bigger, and I preferred to give a number to each cell (from 1 to 15 - yes, I know 0 to 14 would be easier). I already numbered the cells ...
3
votes
3answers
63 views

Draw matrices side-by-side in tikz

I would like to achieve the next result in tikz: However, I am only able to draw the matrices without the mathematical operations between them i.e. the dot product and the equal signs (having the ...
0
votes
1answer
33 views

Need help getting stack of matrices with entry alignment across all matrix rows and columns

I am trying to achieve something like the following ( ) text ( )( ) text my attempt using blkarray fails: \documentclass{article} \usepackage{blkarray} \begin{document} \begin{blockarray}{cc(cc)...
7
votes
1answer
147 views

Tikz matrix library: Corner to corner arrows between cells may come in reverse order

When the matrix library is loaded and the matrix of nodes key is activated, each node can be accessed according to the name-row-column syntax. In some cases, the arrows are built in the opposite ...
2
votes
2answers
91 views

In Tikz, how to write equations on the top of foreach arrow?

May you provide some guidance on how to add some descriptions on the arrow of the following two figures? For example, In the first figure, can we add: Arrow $\vec{21}$ on the top of arrow (better to ...
2
votes
1answer
44 views

Beamer doesn't compile a tikz diagram [closed]

I'm trying to write a presentation in beamer about something I've previously written in book documentclass. When it comes to the string: \documentclass{beamer} \begin{center} \begin{tikzpicture} \...
1
vote
2answers
43 views

Beamer: tikZ-matrix with nodes having multiple lines AND variable width

I have a slide of the following style: there is a tikz-matrix of two columns, the right column requiring TWO properties: 1) it should allow nodes with multiple lines of text/math, 2) the nodes shouldn'...
1
vote
1answer
38 views

Drawing arrows from one matrix node to others, with labels above them (Beamer)

I have a slide with a one-row matrix that I want appearing in the following way: the element in the middle appears first, with a box around it; then the element to its left and right appear ...
1
vote
1answer
54 views

TikZ-matrix over whole textwidth

I try to create a TikZ-matrix like that: where bot rows had the height ca. 3cm. row 2 column 1 is planed as something like a multicolum. But in the first I have problems with the last column of row ...
1
vote
1answer
33 views

Highlighting a specific node in tikZ matrix when the node has multiple lines of text (beamer)

I have a slide with a matrix of nodes that appear one at a time on the slide. Each node has multiple lines of text and math (the sample code shown below was stripped off some of the math to abstract ...
1
vote
1answer
99 views

TikZ Matrix overwrite every column/row style for specific column/row

I tried to typeset a table like figure using TikZ matrix library and wanted to add stripes to it. However I also wanted to style the last column and row in another color. Regardless of order and ...
2
votes
1answer
28 views

Beamer: matrix of TikZ nodes with one node having multiple lines

I am trying to construct a matrix with two columns and multiple rows. The top row has two nodes, both of which need to hold multiple lines of text and math. When I follow the prescribed method of ...
4
votes
1answer
67 views

Beamer: matrix with different properties for first row

I want to have a slide that looks as follows: At the top, I'd like to have a theorem statement in a tcbtheorem environment I've defined. Below that, I'd like, after some vertical spacing, two ...
3
votes
1answer
45 views

How to hatch pattern this table excluding the circled region?

I would like to circle the elements in the matrix table (How to create a small cell with borders in the top corner of a cell in the table?) and hatch pattern the matrix table excluding the circled ...
0
votes
1answer
29 views

Add dots in a specific position inside tikzpicture

I have written the following code: \documentclass[margin=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,calc} \begin{document} \begin{tikzpicture}[every node/.style={anchor=north east,...
1
vote
2answers
38 views

tikz: execute at begin box breaks matrix align

I'd like to insert automatically some text in some nodes inserted in a matrix, so I'm using execute at begin node. But unfortunately, the nodes are shifted up and not aligned anymore: Any idea how to ...
5
votes
1answer
118 views

Break a diagram in multiple independent subdiagrams

Problematic At the end (of a class), this is the full graph I want to display. But during the class, i'll present things step by step with only nodes and arrows in the "case #" area (and like an ...
0
votes
1answer
40 views

Tight borders around and left-aligned text in a TikZ matrix

I would like to draw SQL diagrams in TikZ using the matrix library. However, the following code annoyingly creates unnecessary space around the nodes in the matrices. When I then try to draw arrows ...
1
vote
1answer
46 views

What is the best way to show the following picture?

I am looking for best practice in showing the following picture. I would like to show equivalent fractions and need to display the operation for numerators and denominators. I have to hardcode the ...
5
votes
2answers
260 views

Tikz and lines with the Q letter

I do have a tex, that always show me a twolines, in a tikzfigure when letter Q is in the line. Let me share the TEX with you \documentclass[parskip]{scrartcl} \usepackage[margin=10mm]{geometry} \...
1
vote
2answers
59 views

How do I line up the column headers in tikz matrix?

I am trying to get the column headers to match up when I \shortstack{} what is in the cell. I would like the top line to be the same and the only hack way I can try to make it the same is to ...
1
vote
3answers
63 views

Problem with drawing tree in Latex, using tikz package

I was trying to construct a tree, but Latex did not draw it without indicating any specific mistakes or warnings. What is the problem with the code? \documentclass[a4paper,12pt]{article} \...
1
vote
1answer
114 views

Array with rounded corners in TikZ

I am starting a pretty big documentation, in which I will have to draw many arrays/matrices in explanatory drawings. I have been trying to write a generic macro to do this for quite some time, with ...
2
votes
2answers
89 views

I would like put a circle in between rows in a table

I would like to create the following where I have circles that "straddle" the \hline between rows in a table. I'm not sure how to do this. I would also like to be able to put a number in the circles....
1
vote
1answer
55 views

compare elements from array not work

In this sample, I wish to draw a line between two matrix if element from column 2 equal. but the ifthenelse statement sounds like always false so no line has been draw between two matrix! \...
3
votes
2answers
92 views

Add grid on matrix for any input text length

Below example will draw matrix from a array, but I wish to draw grid on it as well just like a table for any list text (longer or shorter)! \documentclass[border=2pt]{standalone} \usepackage{tikz} \...
3
votes
2answers
117 views

Create 2-d matrix with foreach loop

This example is copied from this SO. but I wish to create a two dimension matrix with foreach loop\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{etoolbox} \begin{...
8
votes
3answers
432 views

Selectively “erase” lines from TikZ matrix

I want to draw grids of arbitrary size using TikZ. I'm using the matrix library and I want to selectively "erase" some lines of it. I post an example of a brute-force solution: \documentclass{article}...
2
votes
3answers
105 views

extra white space to the right of nodes

I am trying to depict more than one matrix with tikz with the tikz libraries matrix and matrix.skeleton. Later I want to make use of the highlight features from matrix.skeleton on both matrix. This ...
2
votes
1answer
117 views

How to stop a tikz matrix from jumping about in beamer

I have a series of slides/transitions showing one matrix where I insert some gaps between columns and circle numbers and at one point add an extra row at the bottom. I would like the matrix to stay ...
0
votes
2answers
50 views

matrix throws “Extra }, or forgotten \endgroup”

I have a simple matrix like this \matrix { 16 & 3 & 2 & 13 \\ 5 & 10 &|[fill=yellow]| 11 & 8 \\ 9 & 6 + 2 & 7 & 12 \\ 4 & 15 & 14 & 1 \\ }; My issue ...
3
votes
2answers
337 views

Reduce a matrix to row echelon form:

How to create this matrix in latex?
4
votes
1answer
60 views

Spacing between figures in \matrix of tikz

I'm trying to put 4 figures with unequal heights in a matrix. My code which you can compile here is: \documentclass[journal=aamick]{achemso} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \...
1
vote
3answers
72 views

Box inside matrix [duplicate]

I'm trying to do something like this: The matrix was generated with the following code: \begin{equation} \begingroup % keep the change local \setlength\arraycolsep{2pt} \begin{...
1
vote
3answers
126 views

Connecting boxes with the lines drawn from the centre with tikz

I drew the following flow chart using a matrix in tikz (the code has been taken from this question): \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
2
votes
2answers
116 views

tikz - annotation text block with matrix

I wish to annotate a hex text block with matrix. and the matrix output should be similar to listings output. so I add a listings above for compare. \documentclass{article} \usepackage[margin=1mm]{...

1
2 3 4 5
8