Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
5 votes
5 answers
588 views

Typeset sudoku grid using tabular syntax

This is a sort-of follow-up to the question Create environment whose contents are passed to TikZ matrix, which did not reveal any solution to the specific question (but did make me aware of another ...
user avatar
  • 1,373
1 vote
1 answer
49 views

Create environment whose contents are passed to tikz-matrix

Here is some code that works perfectly well (this code is based on this answer): \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix [matrix of ...
user avatar
  • 1,373
0 votes
3 answers
43 views

Aligning and positioning the node contents inside a table made of TikZ matrix

I have difficulty aligning the contents of the nodes inside a TikZ matrix. I'm specifically interested in achieving the kind of table below: I got most of this code off the Internet and rearranged ...
user avatar
1 vote
1 answer
30 views

emphasizing text of matrix row or column

here is a mwe for a 3x2 cells matrix of tikz. I'd like to "circle" the text of one row, i.e. the circle or rectangle Must be centered on the text, not the cell. With my try of using row ...
user avatar
2 votes
3 answers
115 views

tikz nodes same height (e.g. in Matrix) + vertical alignment

I know I can manually vertical align text in nodes via the text height/text depth keys. I know also I can set the total height to be the same with the same two keys. But what if I want both effects at ...
user avatar
  • 393
4 votes
2 answers
88 views

tikz matrix to look like basic tabular

I've been able to make tikz matrix look like basic tabular, but it implies the use of "text height=..." and "text depth=...", which need to be readjusted everytime a new font or a ...
user avatar
5 votes
2 answers
178 views

Node to a word of the content of a matrix cell

I'm trying to draw various things relatively to some parts of matrix rows, but for \node (a) {this}; is one row\\ for example of a row in a matrix, only the part between the curved brackets are ...
user avatar
2 votes
1 answer
50 views

matrix alignment with another matrix row

placing a matrix relatively to the 2nd+ row does not seem to work correctly, as if outer sep were not set to 0. I placed a node for x coordinate, and i'd like the new matrix top left corner at same ...
user avatar
5 votes
3 answers
160 views

How to center node in tikz matrix cell?

How do I center a node in the middle of a tikz matrix cell? This MWE: \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{mynode/.style={rectangle,draw,minimum width=2cm,minimum height=...
user avatar
  • 87
0 votes
1 answer
40 views

tikz text vertical alignment in matrix

i need two separate tables using matrix in tikzpicture. With my code i do not get proper alignment and even from one row to another. I tried increasing the "minimum height" and "row sep=...
user avatar
1 vote
2 answers
72 views

table with tikz with custom column settings and rounded corners

I need to make a table, within a tikzpicture environment. So far i used tikz matrix, but i was not able to get what i desired. The table needs to have all contents aligned on the right. Odd column ...
user avatar
0 votes
1 answer
52 views

How to highlight some cells in confusion matrix

I am trying to draw the following figure: I have found an example to create the table in confusion matrix using only LaTeX code and tried to adapt the solution to my table \documentclass{article} %\...
user avatar
  • 1,004
0 votes
1 answer
29 views

packaging a matrix/tikzpicture into a newcommand while keeping the arguments within the style

I've got a SWOT matrix that works well when used in the main body of the text. I would like to package this and use something like: \swotfigure{foo}{bar}{frut}{boo} i.e. a newcommand with 4 ...
user avatar
3 votes
2 answers
207 views

equation Ax=b, inside matrix form

I am trying to write a matrix form of Ax=b, just by putting every letter inside a matrix. The output is as I want, but I need to make it more readable, by increasing the size of the pmatrix with every ...
user avatar
  • 219
1 vote
1 answer
47 views

Custom dot pattern in fitted node

It is fairly easy to draw a dotted line from the north to the south coordinate of a fitted node: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{fit,shapes....
user avatar
  • 103
1 vote
0 answers
52 views

pythontex puzzle

For large matrices it is too difficult for me to type the tikz matrix expression. I have written some code in Python that does that for me. The code prints out the tikz expression which I then copy/...
user avatar
  • 103
0 votes
0 answers
22 views

How to rolling windows block in latex? [duplicate]

I wanted to write the following matrix, but I can't draw borders. This is a sample code that I found on the internet \left.R=\left[\begin{array}{cccc} r_{1,1} & r_{1,2} & \cdots & r_{1, S}...
user avatar
  • 1
2 votes
1 answer
48 views

Problem with a parametric "node contents" style for matrix of nodes

This is related with Set a tikz node's contents from a style, but this question and corresponding answer are eight years old and node contents option was not available at that time. My intention ...
user avatar
  • 127k
2 votes
2 answers
75 views

Access tikz matrix cell content to programmatically set cell style

I'm trying to set the style of each cell of a tikz matrix. However, I can't find information on how to access the content of the cell to pass it as an option to the style. What I would like to do is ...
user avatar
  • 10.7k
8 votes
3 answers
590 views

How to reproduce this CYK parse table in TikZ?

I would like to reproduce this triangular table of square nodes in TikZ, shown below. I do have a MWE, but it's really not much: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix, ...
user avatar
  • 139
0 votes
1 answer
41 views

Quantikz breaks spacing in tikz matrices/tikz-cd

For now, If I just create a simple diagram with all inner sep and outer sep set to 0, I still have no spacing: Now, if I also load quantikz, the spacing is bad (quantikz also breaks the baseline, but ...
user avatar
  • 5,043
3 votes
3 answers
275 views

TikZ matrices shifting with fill and text inside a node

I am trying to create a checkerboard in LaTeX. I use TikZ's matrix for the task. It works if there's only text or only fills in the matrix. However, when I use both text and matrix, everything start ...
user avatar
1 vote
0 answers
92 views

How to generate representation of a tensor in an equation using nested matrices

In general a tensor is defined as an object with N superscripts and M subscripts. Each superscript and subscript can take a range of values 1,2,...,n. For example, a tensor M^[ij]_[klm] can have i=1,2,...
user avatar
  • 103
3 votes
2 answers
121 views

Put additional text in the upper left corner of each TIKZ matrix node

I'd like to put a simple block letter in the corner of each cell (and leave each number in the center of the cell) to produce a labyrinth. \documentclass[11pt]{report} \usepackage{tikz} \...
user avatar
  • 203
3 votes
1 answer
58 views

3D Hyperrectangle with matrix floors

It's ok to get what I call a "floor". \begin{tikzpicture} \matrix[matrix of math nodes,nodes in empty cells, nodes={minimum size=2.5em,outer sep=0pt,anchor=center,draw,loosely dashed}, row ...
user avatar
  • 203
2 votes
2 answers
125 views

Individual row and column spacing in matrix environment

I know that one can change the row and column separation in the \matrix command with row sep, respectively column sep. But how do one change the separation for a specific row or column only? That is; ...
user avatar
1 vote
1 answer
92 views

Tikz - Remove border only on one node of a matrix of nodes

I have this matrix of nodes: \matrix (B) [ matrix of nodes, nodes={ draw, minimum width=23mm, minimum height=10mm }, inner sep=6pt, column sep=-\pgflinewidth, column sep=1cm ] ...
user avatar
1 vote
2 answers
61 views

Tikz - draw bracket below a matrix of cell

I have this array: \documentclass[crop,tikz,convert={outext=.svg,command\unexpanded{pdf2svg \infile\space\outfile}},multi=false]{standalone} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{...
user avatar
1 vote
0 answers
44 views

tikz--center a block diagram and a matrix below block diagram with custom spacing--pdf previewing under TexStudio

I would like to create a block diagram in tikz and to center a matrix below the block diagram. When I use the following, the block diagram snaps to the left and the matrix snaps to the right. What's ...
user avatar
  • 193
0 votes
2 answers
76 views

Tree of matrices and grids

I can make a grid and set queens on it with a matrix. But now I want to make them a node, because I want it to be part of tree. And now the grid and the matrix are separated. Here is my code : \...
user avatar
  • 63
0 votes
1 answer
69 views

Tikz - Connection between matrices' entries

I had draw with tikz two matrices (two column array) with this code: \documentclass[crop,tikz,convert={outext=.svg,command=\unexpanded{pdf2svg \infile\space\outfile}},multi=false]{standalone} \...
user avatar
0 votes
1 answer
40 views

Tikz - Add text near matrix entries

I have this column array created using a matrix: \documentclass[crop,tikz,convert={outext=.svg,command=\unexpanded{pdf2svg \infile\space\outfile}},multi=false]{standalone} \usepackage{tikz} \...
user avatar
0 votes
1 answer
53 views

\hdashline in tikzpicture-environment

I've a trouble with this code. I'd like a \hdashline, but Overleaf gives me an error, why? My code \documentclass{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage[a4paper,...
user avatar
  • 793
2 votes
1 answer
70 views

TikZ-matrix for drawing a snake shaped curve through points with integer coordinates (orbital model)

I want to create a picture like this, by using a TikZ-matrix: What is the best way to add these "snake-lines", especially the "half-circles" at their ends? Hint: I added some ...
user avatar
  • 6,217
1 vote
2 answers
85 views

Tikz arrows covering text

The images linked below show what I want to do and what I get. I'm completely new to Tikz. What am I doing wrong? \text{det}\left[\begin{array}{ccc} a_{11}\tikzmark{a11} & ...
user avatar
  • 11
0 votes
1 answer
33 views

How to write matrix inside nodes?

Any tips on how to draw something like this?
user avatar
0 votes
1 answer
61 views

Is it possible to top align all the picture-cells in a TikZ matrix with only TikZ options?

For example, in the following (contrived) MWE, I'd like to top align the blue square and the green square. (my ultimate goal is a document with text and pictures, and I would like all of that to look ...
user avatar
3 votes
3 answers
198 views

How to align text with a matrix?

quite new to Latex, I have wrote down the following Tex code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,positioning,arrows.meta,arrows} \tikzset{ mymat/.style={ ...
user avatar
4 votes
2 answers
94 views

Cell color overriding cell rounded border

In a table, made with Tikz, I tried to make the first row darker than the rest by, I think, a little of brute force. It happens that the borders I want must be rounded and the extreme cells (north ...
user avatar
  • 109
1 vote
0 answers
57 views

Put the name of the matrix tikz besides the figure besides on the left at the middle [duplicate]

I have done a matrix with Tikz. It is missing just a last point : set on the left in the middle the name of the matrix such I could have : F_matrix = [figure_tikz] I tried : $F_{\text{Big Fisher}}=$ \...
user avatar
0 votes
1 answer
47 views

Make some corrections about a relative complex matrix

I have received a relative complex matrix made with Tikz. I would like to do some modifications on a few points. Here the source : \documentclass[tikz,margin=1mm]{standalone} \usepackage[utf8]{...
user avatar
1 vote
1 answer
71 views

Place the data of the periodic table excerpt correctly in a TikZ matrix

I have a small excerpt from a periodic table. Now I want to place the symbols (2nd column) correctly in a TikZ matrix with 8 rows and 18 columns; where unoccupied cells should remain empty. For what I ...
user avatar
  • 6,217
3 votes
1 answer
71 views

Plot above matrix

I need Help ! I need to add the yellow dot with arrow. In my model If possible something like coordinates so that in the future you can move the point from place \documentclass{article} \usepackage{...
user avatar
3 votes
2 answers
147 views

Diagram for matrix multiplication in TikZ [duplicate]

I know that there are several posts about colouring matrices rows and columns, but I was trying to create a diagram to show matrix multiplication, and ended up with the following code, which is a bit ...
user avatar
  • 389
1 vote
1 answer
143 views

Need help to incorporate the pictures to create a BCG matrix

Based on what you have, you need help incorporating the images. I would like to ask for help to create this table, the so-called BCG matrix, which I will use in my CBT: Likes to have the images in the ...
user avatar
1 vote
1 answer
80 views

Boxed rectangles or squares for 4 submatrix into a matrix

I have taken this code from the documentation of nicematrix package to the pag. 44/208 version 5.12 of at the date of 2021/03/10. In the meantime I have this error of compilation: why? (I have the ...
user avatar
  • 46.1k
0 votes
0 answers
62 views

pgfplots errors when reading in data in standalone file

I'd appreciate any help with this. I've had a read of some similar problems, but not the same as mine. I'm trying to create an image using pgfplots, in a standalone .tex file. I have a CSV file, with ...
user avatar
  • 1
2 votes
3 answers
88 views

How to control the coordinates in Tikz & Matrix?

I use Tikz with Matrix because I need to draw arrows and write on and beside the matrix. However, I don´t control the coordinates well other than using trail and error. For instance in the matrix ...
user avatar
6 votes
5 answers
266 views

TikZ matrix fails inside makebox or framebox

I want to draw a framebox around a TikZ picture. But it won't compile. I try makebox instead of framebox, but the problem persists. Here is a MWE. pdflatex will raise Undefined control sequence \pgf@...
user avatar
0 votes
0 answers
14 views

Writing inside the nodes of a matrix shift them [duplicate]

Hello helpful community, I am faced with an issue while using a matrix of nodes in Tikz. When I write something in the nodes, they shift. Here is a MWE : \documentclass{standalone} \usepackage[...
user avatar
  • 1,100

1
2 3 4 5
9