Questions tagged [tikz-positioning]
The tikz-positioning tag has no summary.
47 questions
1 vote
1 answer
55 views
tcolorbox: make a nested inner tcolorbox take up the entire width of the outer/parent tcolorbox
So, I kinda want the opposite of this question. More precisely, I want It seems that the tcbkeys enlarge left by and enlarge right by are the correct keys to use. This is my best attempt: \...
6 votes
1 answer
119 views
Has \subnode broken or am I doing something daft?
The following code compiles without error but gives unexpected (to me) results. In particular, the labels never 'settle'. As far as I can tell, LaTeX perpetually reports that the labels may have ...
1 vote
1 answer
55 views
declaring tikz shapes with makeshape combined with bounding boxes
I recently stumbled over this issue when declaring own tikz shapes with makeshape, but see for yourself: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,fit} \usepackage{...
3 votes
2 answers
81 views
Aligning nodes in a \foreach loop relative to another node in TikZ
Context : Hello, I'm trying to make a directed acyclic graph (DAG) where my numbers will be replaced by letters or symbols in the future, once I have correctly positioned my nodes. You can use ...
17 votes
1 answer
634 views
How to Optimize a TikZ Animation of Quicksort?
While revisiting some old notes on algorithms, I came across a code snippet illustrating the sorting of a vector using quicksort. I’m dissatisfied with how the nodes are defined relative to each other,...
1 vote
1 answer
108 views
Conflict between scope shift en node positioning
I am faced with an issue, ChatGPT and I can't seem to solve so here I am. \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz,pgfplots} \usetikzlibrary{calc,...
6 votes
2 answers
418 views
How to position the node with TikZ.positioning relative to specific angle?
I want to put a node relative to another with the position of 60° left below, just as follows. I want to shift the slope from 45 degree to 60 degree elegantly (without explicitly assigning the ...
1 vote
1 answer
65 views
Tikz standalone: Infinite compilation when combining nodes and background
The following MWE compiles infinitely when I combine a background and a trivial node (which I plan to position using the at argument and the positioning library, and which should at some point ...
1 vote
1 answer
80 views
Tikz path picture with relative positioning not centered
I'm trying to center an image inside a tikz circle. Using path picture this is very easy. But when the position of the node is defined via above right=-1cm and -1cm of, the image is not centered ...
2 votes
1 answer
103 views
Is there any way to draw a circuitikz bipole component between two points, but closer to one end?
Circuitikz draws components with beautiful symmetry between the endpoints, but what if I don't want the component centered? If I want to move the resistor closer to the top or bottom in the diagram ...
4 votes
2 answers
151 views
Control positioning of Tikz label of an edge
Here's my code: \usepackage{tikz} \usetikzlibrary{automata, positioning, arrows} \tikzset{ ->, % makes the edges directed >=stealth, % makes the arrow heads bold node distance=3cm, % specifies ...
0 votes
0 answers
129 views
Regarding tikz error
main.tex for MWE: \documentclass{report} \usepackage{csquotes} \usepackage{graphicx} \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4} \usepackage[tableposition=top]{caption} \usepackage{subcaption}...
0 votes
1 answer
64 views
How to set this tikzpicture on the right and texts on left of it using below mentioned preamble
\documentclass[11pt]{book} \usepackage[paperheight=9.5in,paperwidth=7.5in, top=1in, bottom=0.8in]{geometry} \setlength{\columnseprule}{0.4pt} \usepackage{amssymb,amsfonts} \usepackage{mathrsfs} \...
3 votes
1 answer
113 views
Place an anchor point between two shapes with regard to their bottom position
For some purposes, I want to place an anchor point between two nodes: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,positioning} \begin{document} \begin{tikzpicture} \node[...
0 votes
3 answers
297 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 ...