Questions tagged [tikz-positioning]
The tikz-positioning tag has no usage guidance.
33
questions
0
votes
3
answers
98
views
tikz positioning library using 'at'
Firstly, is it better to use the syntax \node at (coord) {}' or \node[right=of coord] {}? I prefer putting the position of the node outside of the [], so I'm trying to use the positioning library ...
2
votes
4
answers
110
views
Align nodes along different paths in Tikz
I have a simple example here with three nodes and arrows connecting them, with labels on the arrows. However, I would like the labels to be vertically aligned (i.e., I want to move the 2 label up to ...
4
votes
1
answer
48
views
Relative positioning of pic elements
I've started using pic elements to avoid excessive copy-pasting, but I am likely doing something wrong when trying to place such elements using relative coordinates.
The vertical placement on the left ...
1
vote
1
answer
110
views
Feynman Diagrams inside circles
I'm trying to use tikz-feynman to draw Feynman diagrams encased in circles. I need the entire diagram to be inside a circle, with the lines touching the circle. This is necessary because these are ...
1
vote
0
answers
32
views
Relative positioning of tikz pic containing multiple nodes
I have a tikz pic that contains more than one node, but I am running into a problem when trying to position the pic relative to something else.
\documentclass{standalone}
\usepackage{tikz}
\...
1
vote
1
answer
40
views
TikZ: distance between edges of nodes
I want to be able to control the distance between the edges of nodes in TikZ. In the below example, I want the left edge of "Node B" to be exactly 5 cm from the right edge of Node A. However,...
1
vote
1
answer
44
views
Placing nodes along an ellipse with variables
My question is almost exactly the same as here: I would like to place a node along an ellipse, but using variables. I built a MWE based on the best rated answer:
\documentclass[tikz, border = 5mm]{...
0
votes
0
answers
27
views
Finding (or setting) the y-value of the bottom of draw curve
I have the following image code which works great for what I need. I've cut a ton of the drawing out to just focus on the piece that I need (it's a graduated cylinder with increment markings in the ...
0
votes
0
answers
39
views
centering pgfplots in a standalone PDF file
I am using pgfplots to plot figure as a single pdf file, and then include it into the main latex code for the document. A simple example is as following.
\documentclass[
border={0mm 0mm 0mm 0mm}, % ...
0
votes
2
answers
48
views
Can I create nodes along the path in this case?
Take this example from the doc:
\begin{tikzpicture}
\node foreach \name/\angle in {a/0,b/90,c/180,d/270}
(\name) at (\angle:1.5) {$\name$};
\path[->] (b) edge node[above ...
2
votes
1
answer
50
views
Fix node position in tikzpicture between \only-slides in beamer
I want to show a graph on a beamer slide. However, using
\begin{frame}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,semithick]
% Nodes
\node[draw,circle,fill=cyan!...
4
votes
2
answers
210
views
Force horizontal line between two scopes
I have two scopes and I want to draw an arrow from one to the other.
I want the red arrow to be horizontal and not oblique as it is now.
It is oblique because the node n is "lower" than ...
0
votes
1
answer
47
views
Equation is not centered inside the diamond node
Here is my code:
\tikzstyle{decision} = [diamond,
minimum width=2cm,
minimum height=1cm,
text centered,
draw=black,
fill=green!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{...
1
vote
1
answer
53
views
Connect two path without knowing the distance between them
Considering the following picture:
I would like to connect the two blue paths in order to obtain the red path like in the following picture:
But I would like a solution where I don't have to know ...
0
votes
0
answers
42
views
strange behavior when changing the x axis
I have a problem with my plot of a spectrum with shaded standard deviation. When I change the x axis, the whole graph is shifting. The problem does not occur, when I comment the fillbetween command.
...
2
votes
3
answers
174
views
Tikz: align baseline of multiple labels below nodes
I need some help with tikz. I have multiple nodes with labels and my problem is that the labels that are below a node are placed in such a way that their upper boundaries align. How can i change it ...
1
vote
2
answers
82
views
How to find coordinates of several points on the page using TikZ or \pdfsavepos or some other means?
I need to have the coordinates of several word-ends on a page typeset with XeLaTeX, with respect to the lower left corner of the page. For example, I would need a macro \getposition{label} that could ...
1
vote
1
answer
20
views
Setting the exact location where the path connects to the node in TikZ
I have connected 2 nodes with a path:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
\tikzmarknode[inner sep=2pt,draw]{surname}{\mbox{Kennedy}} was killed in ...
1
vote
1
answer
108
views
Decorated path plus filled node absolutely positioned
I want to combine an absolutely positioned (current page) node with a decorated path. The decorated text shall appear in the node, so that this unit can be positioned freely. Is that possible?
So far ...
2
votes
3
answers
76
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}}
...
8
votes
4
answers
1k
views
How can I make such a drawing in TikZ?
(The lines are not meant to be dashed. I'm using unicode box drawing characters, but apparently the font used by this site makes the drawing look dashed.)
┌──────┐ ┌────┐ ┌───────┐ ┌───┐ ┌────┐ ┌──────...
0
votes
1
answer
148
views
A tikz picture with a lot of nodes
I want to create a tikz picture that describes the different mark ups the user sees inside the lyx editor:
First question: The way I do it is placing on the canvas a few nodes that together form the ...
4
votes
1
answer
121
views
nicematrix & TikZ positionning
In the following output, I would like to change the start and the end of the red path: see the green arrows.
Here is my code.
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{nicematrix}
...
1
vote
1
answer
45
views
Place beamer frame title into parallelogram at top left corner
I am trying to place the title of each frame in a parallelogram that adjusts to the length of the title. I want the parallelogram to start at the same position of each frame, for example, at the top ...
1
vote
1
answer
37
views
TikZ - Positionning labels in a basic Venn digaramm
The code given below can produce the following diagram, but the positioning of the labels for the percent values are made by hand... Can this human activity be avoided?
MWE
\documentclass[tikz]{...
1
vote
1
answer
60
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 ...
3
votes
2
answers
185
views
How to position a two colored ellipse produced by the three lines below?
This is my code:
\begin{tikzpicture} [thick,x=1mm,y=1mm]
\draw (0:0) ellipse (10mm and 20mm);
\draw[fill=red] (0:0) -- (0:10 and 20) arc (0:180:10 and 20) -- cycle;
\draw[fill=blue] (0:0) -...
0
votes
1
answer
90
views
Partially highlight title in tcolorbox environment
I would like to improve my solution to the following goal. A tcolorbox environment with a title that is partially highlighted.
Thanks to the great answers here and the awesome tcolorbox docs. I ...
0
votes
1
answer
129
views
Creating hatched cells in a resized table\tabular
I'm writing an elsevier els-cas article and am trying to hatch some table cells for a table\tabular setting. It seemed to work fine until I used \resizebox and set the table size to \textwidth. The ...
1
vote
0
answers
35
views
How to align single character nodes at equivalent positions in side-by-side tikz pictures?
I would like to use tikz in combination with graphicx and subcaption to achieve automatically labeled subfigures that I can refer to in text. Here is my MWE:
\documentclass{article}
\usepackage{...
1
vote
1
answer
284
views
Beamer Customization - Add textual sidebar and adjust title
I would like to customize a presentation that already exists.
The first 3 slides would be standard. And the perosanilization would happen from the 4th slide onwards.
%% --------------------------------...
1
vote
0
answers
56
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 ...
4
votes
4
answers
556
views
TikZ foreach and relative node positioning [duplicate]
I want to use a foreach loop to position tikz nodes below each other.
\documentclass[tikz]{standalone}
\usetikzlibrary[positioning]
\begin{document}
\begin{tikzpicture}
\node (n1){First};
\foreach ...