Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [tikz-positioning]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
49 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 ...
Jason S's user avatar
  • 2,880
4 votes
2 answers
66 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 ...
RatherAmusing's user avatar
0 votes
0 answers
26 views

TikZ pgfplot 3d graph number positioning

Can you see the x-axis ticks (r_{AB})? There are two lines: I would like to make sure that the numbers lie underneath in the line that goes downwards. \documentclass[12pt]{article} \usepackage{tikz} ...
user3204810's user avatar
  • 1,539
0 votes
0 answers
90 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}...
SDe's user avatar
  • 1
0 votes
1 answer
40 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} \...
Noor Aslam's user avatar
3 votes
1 answer
78 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[...
Tianjian Qin's user avatar
0 votes
3 answers
118 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 ...
likethevegetable's user avatar
2 votes
4 answers
132 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 ...
Jeffrey Girard's user avatar
4 votes
1 answer
56 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 ...
Atcold's user avatar
  • 1,747
1 vote
1 answer
200 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 ...
Green05's user avatar
  • 141
1 vote
0 answers
36 views

Relative positioning of tikz pic containing multiple nodes [closed]

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} \...
Frink's user avatar
  • 47
1 vote
1 answer
88 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,...
TheDon's user avatar
  • 755
1 vote
1 answer
53 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]{...
mistral's user avatar
  • 105
0 votes
0 answers
29 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 ...
J M's user avatar
  • 1,102
0 votes
0 answers
41 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}, % ...
wxwuse's user avatar
  • 149
0 votes
2 answers
57 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 ...
Enlico's user avatar
  • 2,612
2 votes
1 answer
77 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!...
Rott's user avatar
  • 23
4 votes
2 answers
284 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 ...
tush's user avatar
  • 1,147
0 votes
1 answer
54 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{...
j.doe's user avatar
  • 131
1 vote
1 answer
61 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 ...
zetyty's user avatar
  • 777
0 votes
0 answers
43 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. ...
Excelsior's user avatar
  • 2,322
2 votes
3 answers
242 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 ...
Florian's user avatar
  • 299
1 vote
2 answers
184 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 ...
yannis's user avatar
  • 2,023
1 vote
1 answer
21 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 ...
Lars Malmsteen's user avatar
1 vote
1 answer
111 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 ...
gizeh's user avatar
  • 491
2 votes
3 answers
106 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}} ...
HRSE's user avatar
  • 123
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.) ┌──────┐ ┌────┐ ┌───────┐ ┌───┐ ┌────┐ ┌──────...
Enlico's user avatar
  • 2,612
0 votes
1 answer
154 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 ...
tush's user avatar
  • 1,147
4 votes
1 answer
172 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} ...
projetmbc's user avatar
  • 13.4k
1 vote
1 answer
50 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 ...
Mereven's user avatar
  • 13
1 vote
1 answer
39 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]{...
projetmbc's user avatar
  • 13.4k
1 vote
1 answer
63 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 ...
tush's user avatar
  • 1,147
3 votes
2 answers
186 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) -...
Henk Verkuyl's user avatar
0 votes
1 answer
104 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 ...
abdulhaq-e's user avatar
0 votes
1 answer
184 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 ...
JimV's user avatar
  • 3
1 vote
0 answers
37 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{...
Quappas's user avatar
  • 33
1 vote
1 answer
356 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. %% --------------------------------...
Júnior Mabulla's user avatar
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 ...
C.F.G's user avatar
  • 552
4 votes
4 answers
800 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 ...
Seamus's user avatar
  • 73.7k