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

learn more… | top users | synonyms

3
votes
1answer
56 views

How can I add an underbrace in this TikZ picture matrix of maths nodes?

I have the current tikz picture and would like to add a underbrace between the 2nd and 3rd row at the location unidentified by the 2 arrows pointing down. \documentclass{article} \usepackage{tikz} ...
0
votes
1answer
32 views

TikZ matrix angle brackets mis-interpreted [duplicate]

I'm newbie to TikZ. When I use < and > in matrix, they are interpreted to some other symbols. The following code \documentclass[tikz,convert=pdf2svg,multi=false]{standalone} ...
2
votes
0answers
8 views

Error related to tikz-cd and user-defined commands [duplicate]

My LaTeX document looks like this: \documentclass{article} \usepackage{tikz-cd} \newcommand{\commSq}[8] { \begin{tikzcd} #1 \ar[r, "#2"] \ar[d, "#6"] & #3 \ar[d,"#4"] \\ ...
0
votes
0answers
23 views

Local spacing of tikz-matrix

I use something like the code below in a document with a spacing fixed in the header. Now I locally want to use a different spacing in a calculation containing 4-5 matrices like the one below. These ...
1
vote
2answers
34 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
2
votes
1answer
45 views

Not able to align nodes properly

I have the following code: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{a4paper} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{calc} ...
6
votes
4answers
314 views

matrix with tikz

I would like to reproduce the diagram in 2.1 of https://www3.nd.edu/~wgd/Dvi/CalculatingSimplicialLocalizations.pdf So far I have this piece of code but I don't know how to fill cells with ...
0
votes
0answers
17 views

Problems using Tikz in Beamer [duplicate]

I am writing a beamer code, and I am copying and pasting some stuff from a normal file (documentclass book). I want to use the code \documentclass[a4paper,12pt,oneside,openright]{book} ...
7
votes
1answer
234 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
2
votes
1answer
80 views

Tikz, can I have multigrids inside a table or matrix?

I'm in charge of a mini-shop in my dorm, we need some accounting system. People pay with credits. Usually it is done in paper, people take a beer and draw a line out from their name-row and the beer ...
1
vote
1answer
61 views

Expansion problem in a grid-like tikz figure

My goal is to automate a process where I have many pictures from a movie sequence and I would like them to be typeset in descending rows. For that, all my images rest in a folder and of course, they ...
2
votes
0answers
29 views

Add a row and a column to tikz matrix with a different style [duplicate]

I should add a header row: 1 2 3 4 to a matrix and a column (as before: 1 2 3 4 ) on the left of the same matrix. But the style should be different like below: this is my MWE: ...
1
vote
1answer
46 views

tikz matrix alignment slightly off

I know there have been many posts with similar titles, but somehow I couldn't find anything that seemed related. Here is a MWE, where I would expect all rows to have an even distance. But obviously ...
5
votes
2answers
217 views

Draw lines inside a matrix

I have the following code to draw a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
2
votes
2answers
57 views

Put a title above a matrix

I have the following code, which draws a title (a matrix:) and a matrix: \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \node at (0,2) {\Large a matrix:}; \matrix[ ...
2
votes
1answer
63 views

Change the font size of a text in a matrix table

I have the following code of tikz... The font size \huge or \tiny does not work, could anyone help? \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
2
votes
1answer
40 views

Node syntax in matrix not working - possibly due to new version of Beamer/pgf

I am recycling some material from an old beamer presentation, and I find that code which used to compile just fine, no longer seems to work. I have replicated the problem in the code below, which ...
2
votes
1answer
102 views

Cannot compile “Matrix multiplication” example from texample.net

The example Matrix Multiplication fails to compile. From this answer I gathered that something changed in TikZ 3.0, but since the answer does not really explain what one should change, I'm stuck as ...
4
votes
1answer
155 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
3
votes
1answer
110 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
4
votes
1answer
118 views

tikz matrix as legend does not work with trim axis

I am using the tikz-library matrix to create a legend for a plot with two y-axes. When I add "trim axis right" to the code the legend is stretched to the right. How can I prevent this? ...
4
votes
1answer
434 views

Generating a 3x3 payoff matrix (Game-Theory)

Been working on some economics lately, and was able to figure out how to put together some 2x2 payoff matrix's but not sure how to go about doing a 3x3. I would like to keep the same general idea if ...
3
votes
1answer
113 views

Is it possible to add node labels to some matrix column or row when building it?

I want this: which is done with \documentclass[border=2mm,tikz]{standalone} \usetikzlibrary{matrix} \begin{tikzpicture}[ mygridmatrix/.style={matrix of nodes, row sep=-\pgflinewidth, ...
5
votes
1answer
212 views

A global math mode for matrix

I have the following code to produce a matrix, which works: \begin{center} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix of nodes, row sep ...
4
votes
2answers
154 views

Borders of a matrix are not well placed

I have the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \colorlet{mlightgray}{gray!20} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, ...
2
votes
1answer
83 views

Rotate one row in matrix of nodes (tikz)

I am trying to rotate one row of a matrix of nodes. Is it possible? MWE (rotation does not work): \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
5
votes
1answer
152 views

Determine number of columns in TikZ matrix

Given a macro that accepts a matrix as an argument \newcommand{tabler}[1]{\matrix(m)[matrix of nodes, ampersand replacement=\&]{#1};} I would like to determine the number of columns in matrix ...
2
votes
1answer
63 views

change vertical space in matrix after linebreak

I want to change the vertical space between two lines in a matrix. Normally I could do this with row sep, but this doesn't affect the vertical space if the line is breaked, see picture. I tried ...
4
votes
2answers
114 views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with ...
1
vote
1answer
206 views

Tikz drawings side by side

I am trying to draw two figures (three, in fact, but even two is not working) side by side using TikZ. I added two TikZ drawings in matrix.tex using \newcommand and tried to add them in the main ...
2
votes
1answer
105 views

How to vertically center the cells of one column in a TikZ matrix?

Is it possible to vertically center the cells of one column in a TikZ matrix? Adding nodes = {anchor = center} vertically centers all of the cells, but I would like to retain the bottom alignment of ...
4
votes
2answers
195 views

Draw matrix with specific style in TikZ

I'm wondering how could I draw a matrix like that: I know how to draw a simple matrix: \documentclass[journal]{IEEEtran} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usetikzlibrary{matrix, ...
6
votes
2answers
188 views

Programmatically styling tixz matrix nodes

I'm trying to write a macro that given some coordinates colors the corresponding cells in a matrix black. This is related to this question. I fail at adapting one of the answers from that question. ...
2
votes
1answer
210 views

pgfplots legend nested in matrix

I'm using a \matrix to arrange subplots, each created using pgfplots. When I tried to use \legend to add a legend to individual plots, lualatex tells me Package pgf Error: You cannot nest ...
5
votes
1answer
150 views

Creating procedurally generated nodes in TikZ

I am relatively new to TikZ, and have been hacking together figures as I need them for uni assignments from various examples on the internet. Now I am moving into research, I am having to write a lot ...
5
votes
2answers
600 views

Table-like lines in tikz matrix

I am trying to draw a "table" in tikz, and more generally, to work it out so that it is easy to write a lot of them. The matrix library makes it a lot easier to place aligned nodes. The next step ...
4
votes
1answer
67 views

How may I insert horizontal dots in the second row of my vmatrix?

It seems to me that my method is quite inconvenient. Could someone help me in this matter? \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} ...
3
votes
0answers
114 views

How to align Matrix and Tikzpicture on the same horizontal line

I'm using subfloat to try to align my diagram with the matrix array. I want them to be next to each other, and per suggestion, used the subfloats to try to align them. I'm getting error messages. ...
3
votes
1answer
316 views

How to draw a system architecture with databases and shadows?

My goal is to draw a complex system architecture. Some approaches to do it are here How to draw a layered architecture using Latex? This approach http://tex.stackexchange.com/a/102669/44348 seems to ...
7
votes
3answers
203 views

Tikz matrix arrows alignment

I have a problem that I cannot solve for myself. The following code produces the following image, which I do not really like. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix, ...
5
votes
1answer
239 views

Custom draws in matrix nodes in tikz v3 with referencing

With tikz v3 the matrix behavior has changed slightly. The great example at http://www.texample.net/tikz/examples/BER-measurement/ doesn't seem to compile any longer. The problem is that the default ...
7
votes
2answers
1k views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
4
votes
1answer
169 views

how do I add delimiters to both sides of a tikz node?

Here is a simple document which does not seem to display properly: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \tikz \node[matrix of nodes] { |[left ...
7
votes
3answers
484 views

Drawing arbitrary shaped grids in TikZ

I would like to reproduce grids like the following (taken from here, p.5): So far, I've come up with the following TikZ code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} ...
7
votes
2answers
199 views

how can I create keys such as “column … to …” for a TikZ matrix

I have a node style I would like to apply to many (but not all) the cells/columns/rows of a matrix of nodes. Currently, for every column or cell that I want the style to apply to, I declare the style ...
4
votes
2answers
72 views

node style is only taking partial effect in a matrix of nodes

This is probably the first of two closely related questions. I have defined a style: my node style/.style={%% minimum width=\dimexpr0.60in+12pt\relax, minimum ...
0
votes
1answer
55 views

Why am I not able to vertically center my row in either a tabular or tikz matrix environment?

Neither of these two MWE center the content of the rows. Why? Example 1 using a tabular environment` % arara: pdflatex % arara: pdflatex % arara: open \documentclass[border=6pt]{standalone} ...
10
votes
5answers
469 views

drawing a matrix with its minors

I want to create something like this: This should be a matrix and I want to consider its minors which are drawn by __|. I want to draw also a line from one minor to a place outside of the matrix to ...
3
votes
1answer
110 views

tikz and new environment

I would like to creat a new environment in order to draw the following matrix : \begin{tikzpicture}[baseline,every right delimiter/.style={xshift=-8pt},every left delimiter/.style={xshift=8pt}] ...