Questions tagged [tikz-node]

The tag has no usage guidance.

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

tikz picture | path from a path?

I'm trying to generate the following, which took about 60 seconds in my favourite vector-drawing too, but I'd like some advice on how to render the same thing using tikz: I've cobbled together a MWE (...
1 vote
1 answer
33 views

Putting minted code inside TikZ node causes missing \item error [duplicate]

When I put some minted code inside a basic rectangular TikZ node as follows: \documentclass{article} \usepackage{tikz} \usepackage{minted} \begin{document} \begin{tikzpicture}[] \node[rectangle](a){ ...
0 votes
2 answers
22 views

Align center doesn't work when text overflow in tikz

I have an example below. I'm trying to force the text to be in the center of the nodes. \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usepackage{mathtools} \usetikzlibrary{...
  • 217
1 vote
1 answer
31 views

Can I make the intersection between the vertical through an `xshift`ed or `yshift`ed node and another node?

From here In general, the meaning of (⟨p⟩ |- ⟨q⟩) is “the intersection of a vertical line through p and a horizontal line through q”. so (p |- q) makes perfectly sense in a \path or whatever. At the ...
  • 2,361
0 votes
1 answer
48 views

Draw a line from a multi-line boxed text to a node

I've drawn a multi-line box around a text in a paragraph using the code at multi-line-box-around-a-sentence-in-a-paragraph For simplicity, let's call this multi-line boxed text as highlighted text. ...
2 votes
3 answers
53 views

Tikz: how to attach labels to edges in trees where some nodes are missing?

I want to grow a tree that has some nodes empty/missing so that the lines directly connect: \begin{tikzpicture} \coordinate child { child {node {pAp} edge from parent node[left] {x}} ...
  • 123
2 votes
1 answer
83 views

Good way to place node text next to node (TikZ-library `graphs`)

I want to create graphs with \usetikzlibrary{graphs}. By default, I would like filled black dots as nodes and the node name next to it. So far, my best solution is \documentclass{article} \usepackage{...
0 votes
0 answers
80 views

How can I draw this graph with axis from tikzpicture?

Good Evenning, i want draw this graph that has 2 graph, i use the tikzpicture package and axis. A graph is a signal input(left), and anotar is signal output (below). \begin{tikzpicture} \begin{...
1 vote
1 answer
29 views

a picture and text in the same row, with the height of the image vertically aligen with the center of the text

I want to type the following in tikz: The image is positioned to the left (let's say 10pt away) from the text. I want the image to be the height of the font (normal font of the document) and to be ...
  • 730
1 vote
2 answers
82 views

How to create TikZ nodes that behave like the built-in `current page` special node?

How can I create globally named, page-immutable TikZ nodes, similar to the current page special node? I'll explain. The kind of node I'd like to create is globally named in the sense that it has a ...
  • 10.5k
0 votes
0 answers
35 views

customized command

first of all, the codes below are just trials. They are far from perfect. I have this portion of code that I want to transform into a command for simplicity because I need it very often: \...
1 vote
3 answers
46 views

TikZ - Place label of a vertex of a graph inside a node

Using this code, \usepackage{tkz-base} \usepackage{tkz-graph} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \tikzset{->-/.style={decoration={markings, mark=at position 0.5 ...
  • 13
0 votes
1 answer
37 views

How to fix the line width when writing text in a node in Tikzpicture?

I am using Tikzpicture to add a figure to my document, with the caption as a textbox inside a second node. My text either extends beyond the page width, or becomes messy with uneven line widths. What ...
0 votes
0 answers
13 views

Bending arrow between 2 nodes adds additional arrow when using anchors [duplicate]

I want to do a bending arrow between two nodes of a TikZ picture, and using the border anchors (north, east, south...). Here is a MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
1 vote
1 answer
35 views

Positioning the TikZ node slightly below the linage

In the output of the code below, the node is positioned on top the linage. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \setlength\parindent{0pt} \setlength{\parskip}{6pt ...
2 votes
1 answer
43 views

Tikz trees: How to add multiple lines to terminal nodes to avoid overlapping nodes

The text of my terminal nodes for my tree is overlapping. Does anyone know how to place the labels on multiple lines? I checked stackoverflow but did not find a solution. I can space out the tree ...
0 votes
1 answer
44 views

How to draw curved arrows linking two nodes and how to put an icon in the corner of a node?

I'm trying to make a diagram but I'm having some issues: I'd like to have a curver arrow linking node 5 to node 1. I'd like the icons on image nodes to be on the upper right corner. I wanted to put ...
  • 463
0 votes
1 answer
76 views

Making a decay diagram with tikz

I am trying to get a diagram of the decay shown in the picture. Sadly I have little to no knowledge concerning tikz and the results look horrible. Since I do not have enough time to really learn how ...
2 votes
1 answer
66 views

Text inside a rounded rectangle

My code: \documentclass{article} \usepackage{tikzpagenodes} \begin{document} \begin{tikzpicture} \node (example-textwidth-3) [draw, align=center, text width=16cm, rounded corners=4]{\vfill \...
  • 117
2 votes
2 answers
55 views

change node spacing among some nodes | tikzpicture

I am struggling with what my options might be to change the spacing among particular nodes in a tikzpicture/matrix I'm trying to construct. The MWE (at the bottom) generates the following. Which is ...
1 vote
1 answer
50 views

Aligning 3 text nodes in 2 rows in tikz

I want to make the following: Blue node and red node are touching each other, with their text on the same baseline The green node is positioned 1pt below them, and its right edge is aligned with the ...
  • 730
2 votes
3 answers
137 views

Tikz node with regular text AND text inside rectangle

I want to draw with tikz the following: That is, abc, then def in green AND surrounded by a red rectangle, and then a ,. What I have now is three different nodes. But they are not aligned to one ...
  • 730
0 votes
1 answer
46 views

Tikz nodes - command for its color

Is there a command that lets me use the color of a certain node (e.g. the node with the name "Node 1")? Something like \nodecolor{Node 1} or similar? I am trying to use the color of a ...
  • 225
0 votes
0 answers
24 views

tikz: Vertically centered aligned node text [duplicate]

I want to align the node text vertically centered. Wondering how to accomplish this? \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{fourier, tikz} \usetikzlibrary{arrows, fit, calc}...
  • 8,433
0 votes
1 answer
52 views

How to draw a chamfered triangle as a node in tikz?

There are a lot of node shapes provided in the shape library, but I didn't find any chamfered triangles, as the picture shows below. Are there any libraries that provide such shape? Or how to define a ...
2 votes
2 answers
95 views

Tikz - How to chain nested nodes

I have recently started using tikz and discovered that you can both chain nodes and nest them using the chain and fit libraries. I have done both successfully: Fit: \begin{tikzpicture}[node distance = ...
1 vote
0 answers
18 views

Odd spacing between TikZ node and minipage. How to counteract?

As shown in the example, there is additional space between a TikZ node/object and a minipage containing only one line of text. How to counteract this? I'm probably overlooking something very basic. \...
  • 8,098
0 votes
2 answers
33 views

Extra left space on Tikz matrix node

I use the following homemade color legend for Tikz drawings (the code this given at the end): But when I tried to print two color rectangles horizontally, an extra space appears on the left (see ...
4 votes
1 answer
70 views

tcolorbox duplicated text node for a broken box

I defined a extra node to be anchored to the tcolorbox title's north west point. It worked beautifully, until the box got broken (by which I mean an automatic and intended break of the box because the ...
  • 6,392
4 votes
4 answers
172 views

An element in the middle of a line

Please consider my minimal example. I would like to place an additional element -in this case a text field- in the middle of the line between nodes A and B. How does this work? Which of the following ...
  • 347
0 votes
1 answer
97 views

How to draw three graphs on the same plane with nodes

I am relative new on latex, I therefore request somebody to assist with a code of drawing three graphs (see attached picture): Below is the MWE: \documentclass[12pt]{article} \usepackage{syntonly} \...
5 votes
1 answer
77 views

Generate TikZ Node with a macro

Inspired by this post, I tried to wrap this normal node... \node[fill=blue!20,shape=ellipse, draw=black] (nodename) at(0,0){\begin{tabular}{l} Main Text\\ \hline extension point: \\ Some ...
  • 347
2 votes
1 answer
56 views

Double nested nodes in tikz

I want to make something like the following image in tikz: To be able to do this, I would need to, essentially double nest nodes. I saw this post about nesting nodes: Nested TikZ nodes. The solution ...
  • 23
0 votes
3 answers
135 views

How to make a label near the corners of a rectangle in Tikz?

How to make a label near the inner corners of a rectangle in Tikz? I want to add a letter to each corner of the small rectangle. The letter must still be inside the rectangle. \documentclass{beamer} \...
0 votes
0 answers
33 views

Does the interword space need to be manually reset in TikZ nodes?

In this question, I learnt that the font feature WordSpace does not work inside a TikZ node. A solution is proposed to use the ragged2e package. Having seen its documentation, it seems that what ...
  • 7,135
2 votes
1 answer
83 views

Font size (via \selectfont) and feature (WordSpace) in TikZ node / group

I'm trying to set the WordSpace feature and some appropriate \fontsize for text inside a TikZ node. Below is the expected result (given by the fourth set of code below, outside tikzpicture). I've ...
  • 7,135
4 votes
2 answers
138 views

Draw previously named path(s) in TikZ

I have a slightly different question from the already asked here on TeX.SE. I would like to define many paths inside a foreach statement and then use their names later on in the drawing. When having ...
  • 1,299
0 votes
0 answers
31 views

Same options with different order cause different behaviour

I had believed that the typeset positions of Exp1 and Exp2 in the following code should be the same on paper. The only difference between Exp1 and Exp2 is the order of the options xshift and scale. ...
  • 2,657
2 votes
1 answer
24 views

Wider double border of a node in a tree environment

My question is pretty simple: I would like to draw a double border node in a tree environment as follows: With the current code I've got, my output is the following: We can see u has a double border ...
  • 471
1 vote
0 answers
46 views

Why length of text in node affects/misplaces the previous draw position?

I almost know why the length of text in a node affects/misplaces the previous draw position: I guess the text of node shifts (0,0) position. But I have no idea how to force text start from beginning ...
  • 277
2 votes
1 answer
88 views

Placing generated tikz pictures using nodes

Suppose I have a \newcommand drawing a tikz picture. How do I place multiple of these pictures using nodes? Specifically, I have a command \row that draws a row of colored squares the way I want. Now ...
2 votes
1 answer
61 views

How to place braces below a tree in tikz using relative coordinates (as opposed to hard-coded lengths)?

I'd like to place curly braces below the branches of a tree. The example below does exactly that, but hard-coded values for the placement of the labels "Toss 1" and "Toss 2" are ...
0 votes
3 answers
111 views

Drawing a diagram in tikz

I am struggling to draw a TikZ picture. Here is what I want to draw (neglect the arrow that is crossed out). So far my graphics look like this: And this is the code I have, so essentially I am ...
0 votes
0 answers
102 views

Increase size of coordinate system numbers \tkzGrid

I am working on the following TikZ picture below. I wonder if there's a way to increase the size of the numbers of the coordinate system and the labels of the axes (x,y). Here is my code: \...
0 votes
1 answer
73 views

text on multiple lines inside tikz baseline with node

I would like to have a text on multiple lines within the TikZ baseline framework. I try to make myself clear. This is the example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usetheme{default}...
  • 155
0 votes
2 answers
56 views

tikz: fit rectangle to content and rectangle nodes

I'd like these two rectangles are positioned side by side, aligned with their upper side, without having to "manually" calculate the position, using the anchor points. I've made sure that ...
0 votes
1 answer
48 views

\fill doesn't get displayed in addition to a \node in tikzpicture-environment

The pdf-file contains a simple tree with the information on a lecture series. With the following code I want to add some semi-transparent ellipses to cover the topics adressed in a specific lecture. ...
1 vote
1 answer
67 views

Why does my text along the line intersect nodes?

everyone! I am plotting some diagrams and encountered a problem. Here is my code \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows.meta, positioning, quotes,...
1 vote
2 answers
48 views

How to draw a path near the nodes?

Here is MWE: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsthm,tikz} \begin{document} \begin{center} \begin{tikzpicture} % Nodes: \node ...
  • 2,449
1 vote
2 answers
252 views

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

I have difficulty adjusting the starting coordinates of the arrow line inside a TikZ node: When I try to make the starting vertical coordinate of the last arrow which is beneath the mid point of the ...

1
2 3 4 5
9