Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
43 views

How do I draw a tikzpicture inside of a child node of another tikzpicture?

how do I embed a binary tree inside of a child node of an already existing binary tree, like such I've been using tikzpicture to draw the trees this way: \documentclass[12pt, letterpaper, oneside]{...
2
votes
4answers
151 views

Align node labels (TikZ)

I have created this picture using TikZ. However, as you can see, the node labels don't perfectly align horizontally, because the nodes are different heights (due to the exponents and indices I assume)....
2
votes
2answers
51 views

Node contents when placing a node on path

In TikZ one can specify a node by a command like \path (0,0) node[node contents=A]; This is very useful if one wishes to apply a command to the text in the node, say, to avoid writing \node at (0,0) {...
3
votes
1answer
47 views

animated \tikzmarknode in a slide with beamer

I have put in my beamer slide as \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows,shapes,backgrounds} \tikzstyle{every picture}+=[remember picture] \...
2
votes
1answer
50 views

tikz: fit text exactly into the node (trapezium shape)

This LaTeX source: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[trapezium, draw, trapezium left angle=120, trapezium ...
2
votes
3answers
118 views

Tikz : Place coordinate (or node) on a segment

I need to draw in line in intersection with another one like this : I was thinking about using [near start] and use nodes : \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
4
votes
1answer
90 views

Vertical and angled arrows in flowchart using TikZ

I'm trying to recreate something similar to this flowchart using TikZ: This is my code so far: \begin{figure}[H] \centering \resizebox{0.99\textwidth}{!}{ \begin{tikzpicture}[node distance=2cm] \...
0
votes
0answers
23 views

“Extra }” error when inserting quote mark " after string in tikz \overlay \node enviroment

thanks in advance for your precious help. I am trying to highlight non seriffed text commands inside a grey box ="easy here". Something like this: To get that in Latex, the following code ...
0
votes
2answers
35 views

Positioning node in pgf plots

I would like to move the node that shows the function rule to the top right of the plot, also preferably boxed. How should I do this? Compilable Code: \documentclass{article} \usepackage{pgfplots, ...
4
votes
2answers
109 views

connecting from arrow to node leaves a gap

first post here, so I hope I'm not making a mess. :) My question, for which I can't seem to find an example: I am trying to draw a line, originating at an arrow to a node. Consider me a beginner at ...
0
votes
1answer
54 views

Graph animation with nodes composed of several nodes

I asked this question Graphs in beamer. I need to make a graph like in the image below. This is part of a directed graph which has lots of nodes, edges that intersect and nodes that make the edges can ...
1
vote
2answers
46 views

node text not shown (circuitikz)

I'd like to increase the space around a node to be able to show the text content. In the example below, I want the text "Channel 1" to be visible above node oscopeshape. I've tried ...
10
votes
1answer
205 views

Drawing partition in LaTeX

I want to draw partition lattice for n=4 like this I was looking for informations how to do it and i found package tikz-cd which i think could be useful but the only thing I managed to do by myself is ...
1
vote
1answer
44 views

Node with circle split text alignment

I'm very detail oriented and could need some help aligning my text inside my node. In my MWE, the text in the lower part of the node is "touching" the horizontal line splitting the circle ...
5
votes
1answer
105 views

Tikz node with multiparts coloring but single part text

I want to create a tikz node with two colors (split along a vertical axis) and a single body of text spanning the two parts. The way I've seen the shapes.multipart library used makes the being ...
0
votes
0answers
53 views

`inner sep` of TikZ has a negative limit?

I normally use a negative inner sep to shrink a white-filled node to cover a line behind some text, but when I tried to use it with some long text, it stops getting smaller and starts growing again. (...
17
votes
1answer
282 views

In TikZ, is it possible to isolate every character of an expression in a node as its own node?

I often find myself typing equations into a node of a tikz picture. I then often find that I want to isolate certain characters in the equation and define them as a node. For instance, consider the ...
2
votes
1answer
52 views

How can I set a tikz-node's anchor using a variable?

The following code works as expected. \documentclass[tikz,margin=1em]{standalone} \usetikzlibrary{math} \begin{document} \begin{tikzpicture}[scale=3] \draw (0,0) circle [radius=1cm]; \foreach \a in {0,...
0
votes
1answer
21 views

Draw relative to right end of node

I'm new to tikz and I guess this is a very easy problem. Still I couldn't find the solution. I want to use tikz to draw a background for my headlines. Therefore I created the following command: \...
3
votes
2answers
69 views

TikZ node parameter and pgfkeys

I am trying to pass some parameters to a node style and found an answer for simple cases: Is it possible to consider a single optional parameter among three in node declaration? However, I cannot ...
0
votes
0answers
31 views

Tikz: Padding in finite automata nodes

If I write in the code of a state diagram of finite automaton: \tikzset{every state/.append style={shape=ellipse, inner sep=0pt}} Then my state nodes look like this: I would like to get rid of nearly ...
0
votes
1answer
38 views

Using tikz to strike out a beamer block

In this post I found this command to strike out words with a red cross: \newcommand\mycrossed[1]{\tikz[baseline=(A.base)] \node[cross out, draw= red, draw opacity=0.5, line width=1.5pt, ...
0
votes
2answers
78 views

Tikzpicture of 3 perfect hexagons overlapping

for some university stuff I need to align 3 perfect hexagons and they have to be overlapping, see attached image below. That means, I need equal distance between every pair of nodes. Of course I could ...
0
votes
0answers
34 views

Even spacing in multi-line text in matrix of nodes

I have a tikz matrix of nodes. The first column are "bullets" and the second column is the "text". I would like each line of "text" to occupy the same height. ...
0
votes
2answers
59 views

Adding vertical ticks at nodes on a horizontal like drawn with TikZ

I have the following minimal code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[solid, thick] (0,0) node [below]{0} -- (2,0) node [below]{$n-k$} -- (6,0) node ...
1
vote
2answers
35 views

How to align text in the article use tikz node to emphasize

I hope to use tikz to make some emphasized content in the article, I chose to use tikz to make this effect, But the nodes of tikz are not very beautifully aligned. Below is my code, how to make the ...
1
vote
2answers
109 views

Labeling an edge in TikZ

I'm new to TikZ (and LaTeX) and I'm trying to create a graph with nodes. I've been reading the manual and I've created a graph using the same method in the picture. I'd like to now label my edges, but ...
0
votes
1answer
38 views

TikZ/Pgf - I can't get “node” to work

I'm having trouble with some work and I would appreciate any help. I would like to add this kind of text into my project: And here's my code, I don't know why node[left]{$P^*=50$} and node[below]{$Q^*...
3
votes
1answer
239 views

How to animate an element that move along a path in Beamer?

I am new to Beamer/Tikz animation, I have been searching intensively and I have not found any answers to my specific case. Description: I have a graph of a process similar to a flowchart with several ...
2
votes
2answers
111 views

Tikz: Is it possible to align any two nodes by aligning their subnodes?

My question is: Is it possible to align any two nodes by aligning their subnodes? For TikZ nodes, is it possible to add a new anchor to an existed nodes? (for example: add node-b.north as an new ...
0
votes
2answers
93 views

How to change the text placement on edge Tikz

Consider the following code: \begin{tikzpicture}[ node distance = 35mm, vertex/.style = {circle, draw, text width=4.4em, align=center}, every edge/.style = {-Straight Barb, draw, semithick} ...
1
vote
1answer
182 views

Quantikz: equally sized gate boxes

I am composing a quantum circuit diagram using the LaTeX package Quantikz. My problem is that I want to have some gates equally sized, but don't manage to find a solution. Take this code: \...
3
votes
2answers
269 views

TikZ draw node border on top of image

I have an image inside a TikZ node. There should be a border around the image, with no gap. The border should have a specified line width. My problem is that the border seems to be drawn underneath ...
0
votes
1answer
48 views

How to increase size of rectangle and circle in \node and vertical lines inside the rectangle

\documentclass[12pt,table]{article} \begin{document} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows,positioning} \tikzstyle{arrow}=[thick,->,>=stealth] \usepackage{subcaption} \...
0
votes
1answer
101 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 ...
-4
votes
2answers
99 views

Hoffmansingleton graph I would like to learn how to draw this graph in latex - [closed]

I need ideas on how to draw the Hoffman Singleton graph in LaTeX.
0
votes
2answers
132 views

Tikz: positioning of circular framed photo in top right corner of CV, with control over the frame thickness and color, and x/y position

My question is about photo positioning in Tikz. I am writing a CV, in which I want to insert a photo on the top right corner, with a circular shape and a frame, thickness and color of which I can ...
1
vote
1answer
69 views

How to center a sign in a node?

I want to center the sign for the node in the middle. How do I do it? \documentclass{article} \usepackage{float} \usepackage{tikz} \tikzset{ remember picture, SYMBOLI/.style = {rectangle, ...
1
vote
2answers
106 views

What do “-to” and “pre=moveto” do in TikZ arrows?

On page 61/1318 TikZ manual there is an example which I simplify and change it a little bit to create the following picture: Here is my code: \documentclass{standalone} \usepackage{tikz} \...
3
votes
2answers
116 views

Vertical alignment of text in two TikZ nodes with and without math

When placing nodes next to each other, some with and some without math, the vertical alignment of the text ends up looking mismatched between the two nodes (example below). Is there an easy way to ...
0
votes
1answer
103 views

What does “on grid” do in TikZ?

On page 60/1318 TikZ manual there is an example to draw a Petri net as below: Below is my code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {arrows.meta,backgrounds,fit,positioning,...
1
vote
1answer
50 views

A Question Regarding TikZ [every label/.style={red}]

In the TikZ manual page 55/1318 there is an example to create a red label as below: Below is my code to repeat the example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {positioning} \...
0
votes
2answers
130 views

Draw a decagon in LaTeX

I need to draw a graph with 10 nodes in LaTeX. I thought about doing it with tikz and try to give exact coordinates to draw a decagon but I don't know what coordinates to give.
0
votes
1answer
31 views

How does the distance between the center of the north anchor and the north of the node vary by the string length inside the anchor? [closed]

I measured the distance between the center of the north anchor and north of a node and got 7.20068 pt which is 0.1 inches. This is for a especial case as below: Here is my code: \documentclass{...
5
votes
2answers
240 views

How to measure accurately the distance between TikZ nodes centers when using relative placement?

I want to measure accurately the distance between TikZ nodes centers when using relative placement. My answer is around 1.55 cm but this is ballpark. Below is my code: \documentclass{standalone} \...
1
vote
1answer
36 views

The Geometrical Meaning of inner sep in Adjusting the Node Size in TikZ

In the Tikz manual page 53/1318, there is an example to adjust the node size to get a group of circles and squares as below: The spacing between the two centers of the circles is exactly 1 cm. So ...
8
votes
2answers
459 views

A Question Regarding TikZ ellipse

In the Tik Z & PGF Manual for Version 2.10-CVS, page 130/880 there is an example to create a pair of a circle and an ellipse as below: Below is the code I used: \documentclass{standalone} \...
0
votes
1answer
38 views

Why fill work bad with nodes but okay with coordinates or anchors?

It seems to me that (path) fill command in tikz doesn't work quite well with (default) nodes. See the example below to understand what I mean. \documentclass{article} \usepackage{tikz} \begin{...
0
votes
1answer
48 views

Setting width of a TikZ node to textwidth

I am trying to create a colored box with some text in TikZ. Here is my dirty code: \documentclass[a4paper,12pt]{extreport} \usepackage{fontspec} \usepackage{pgf} \usetikzlibrary{calc} \usepackage{...
3
votes
1answer
96 views

Tikz foreach path between nodes starts at wrong position

This picture has been generated by following code. In red circles the edges start/end not on the correct side of the node. \documentclass[tikz]{standalone} % =========================================...

1
2 3 4 5
7