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

Questions tagged [anchor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Not able to anchor references in a custom bibliography environment

I am trying to have a file with two bibliographies, each of them with a different kind of labeling (one should show the labeling [1], [2],..., whilst the other one has a custom labeling [A-1], [A-2],.....
Alberto Debernardi's user avatar
3 votes
1 answer
66 views

Node in TikZ does not align picture into anchor

I struggle to align the picture to the bottom left corner; see the image below. The placeholder picture is taken from this site, and the code is below. \documentclass{standalone} \usepackage{amsmath} ...
Humphrey Appleby's user avatar
5 votes
3 answers
493 views

How to anchor between "X.north" and "X.north west"?

How can I get the dash-dotted line to appear between the other two? Currently, both lines are anchored to "A.north west" (and the regular dashed line is effectively at "A.north"). ...
Andrew's user avatar
  • 51
0 votes
1 answer
15 views

To which entities can I anchor nodes in pgfplots?

I find it difficult to read from the pgfplots manual, which entities I can refer to, e.g. to anchor nodes with further information. E.g. in the example below, what are some or all entities I can ...
MS-SPO's user avatar
  • 13.9k
1 vote
1 answer
84 views

TikZ strange default anchor behavior

I am using TeX Live 2023 downloaded from the site on WSL2 Ubuntu 22.04. Using XeTeX to generate PDF documents. xetex -v is XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023). As part of planning to work ...
Kishan Parekh's user avatar
1 vote
1 answer
35 views

Select precisely the departure of a line between nodes

I want to chose the departure of my lines between my nodes in somewhere between these anchors, for example I want to choose a anchor between north east and east. How can I do that? \documentclass[...
gaby8gaby's user avatar
0 votes
2 answers
103 views

Tikz node anchor and alignment

In tikz, I have a node with specified text width, so the text can break into multiple lines. I also have another circle with some text in it. I want the circle to be aligned as in the second picture, ...
totallyimmersed9's user avatar
1 vote
1 answer
42 views

Anchors not working on foreach-generated node names: "Unknown operator `c' or `ce' (in '0.center')."

So I try to generate a tikzpicture for the Pascal Triangle. This is my code & result so far: \begin{figure} \centering \begin{tikzpicture} \foreach \n in {0,...,7}{ \foreach \k in {0,.....
Krokant17's user avatar
1 vote
1 answer
65 views

Overlay a TikZ node into an mdframed

I'd like to place a small piece of text at the upper right of an mdframed box that I'm using to display source code for a program. Here's what I have tried: \begin{mdframed} \begin{minted}{swift} ...
Ray Toal's user avatar
  • 121
6 votes
3 answers
428 views

How to fix this TikZ picture making arrows depart from the center of their table cells

I'm trying to represent in LaTeX a binary tree implementing a map data structure. Someone told me TikZ was the best tool for that, but I'm failing to achieve my goal. I find TikZ... overhelming? After ...
Federico Prat's user avatar
2 votes
1 answer
120 views

Adding tikz nodes dynamically relative to anchor

I am trying to reconstruct a CV that I've originally built in InDesign in LaTeX and have come to the conclusion that I must redo it since I most likely will not find a tool to convert InDesign files (...
fieseler's user avatar
3 votes
1 answer
148 views

How can I force an arrow in TikZ to go horizontally into a node?

I'm trying to draw this diagram in tikzpicture with beamer: and I'm having troubles in drawing the arrows going horizontally into the right node (Couple instruction DataFrame). The best I could do is ...
Alessandro Bertulli's user avatar
0 votes
1 answer
69 views

Wrong anchor of algorithm2e with caption on top

I have the following MWE, where I use the package algorithm2e to print algorithms. However, I like the captions of the algorithms to be placed on the top (how to do this was already answered in this ...
KennyH's user avatar
  • 15
0 votes
0 answers
36 views

I'm trying to anchor a text node to the right of another text node

I'm trying to anchor a text node to the right of another named text node. At the top left corner should be "Mary read" (with a box around 'Mary'). Instead, the word 'read' appear to be to ...
Michael Barrie's user avatar
0 votes
1 answer
185 views

TikZ: Reduce distance of node to anchor

I want to reduce the distance that the node text gets placed relative to the anchor. I have two nodes like this to add labels to a point in the axis: \node[red] (point) at (1,0) {\(\bullet\)}; \node[...
AcademicCoder's user avatar
1 vote
1 answer
91 views

Tikz, anchor point and intersection

I'm using the following LaTeX code for Tikz: \begin{tikzpicture}[ noeud/.style={draw, circle}, triangle/.style={isosceles triangle, anchor=apex, ...
MathTolliob's user avatar
1 vote
1 answer
99 views

How to format (move and scale) only node label in forest decision tree

Since my real tree is too wide, I want to move and resize the node label -X_0+X_1>0 so that the red box at the end gets smaller because it dynamically adjusts its size to the nodes. The arrows and ...
vielfarbig's user avatar
3 votes
1 answer
323 views

Correct positioning of a node and a circuitikz component

I would like to mix "conventional" tikz node and circuitikz components in the same tikzpicture but I have problem with positioning them. For example, I would like to obtain this result: But ...
zetyty's user avatar
  • 777
1 vote
1 answer
54 views

Using anchors to position nodes in a relational manner

Suppose that I want to create 3 tikz nodes named a, b and c. The nodes should be positioned in the following relational manner: First of all, a's east anchor should be connected to b's west anchor. ...
Daniel De Wet's user avatar
1 vote
1 answer
56 views

Wrong link position when using the landscape environment

Consider the following MWE: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{danish} \usepackage{pdflscape} \usepackage{hyperref} \begin{document} \tableofcontents \begin{...
Svend Tveskæg's user avatar
0 votes
2 answers
43 views

Make parallel lines using nodes anchor points

How can I make the red line parallel to the two above, using T_C and T_zero anchor points? \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,intersections,...
user3713179's user avatar
0 votes
1 answer
50 views

Anchoring of link from ToC to Chapter not showing chapter title

My main issue is the anchoring of a chapter link: When clicking on the chapter from the ToC, the anchor puts the line below the chapter title at the top of your page. This results in not being able to ...
Hushus46's user avatar
  • 211
1 vote
2 answers
114 views

How to anchor a background image to a specific text instead of to a fixed location on the page?

I am making a thesis template for a university and am having trouble with designing the title page. They would like the seal of the university to be centered behind the student's name on the title ...
Stephen's user avatar
  • 17
0 votes
0 answers
73 views

tikzpicture ends up way outside the limits of the page

In my document which is defined as A4, I want to place our logo in the upper left corner of the first page. The code I'm using for this is: \begin{tikzpicture}[remember picture,overlay] \node[...
Eric J. Francois's user avatar
3 votes
2 answers
150 views

Change anchor location throughout TikZ foreach loop?

I have some TikZ code to generate a unit circle with N evenly spaced vectors going from the center to the circumference of the circle. \begin{tikzpicture} \newcommand\wpic{4} \newcommand\wcir{3} \...
nwsteg's user avatar
  • 133
0 votes
2 answers
125 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 ...
user3713179's user avatar
1 vote
1 answer
85 views

tikz - flatten/flush line with rectangle

I drew the following picture below. To extend squares, I attached lines at the corner angles, i.ex node.45. It can hardly be seen, but they are are not exacly in one line. How is it possible to flush/...
sellerBasti's user avatar
3 votes
1 answer
980 views

Draw to anchor of new node at coordinate in TikZ

Is there a way to directly draw to a new node, specifying the connection anchor but still center the node at the new coordinates. To exemplify: % Points at center of node \draw (root) -- (1,1) node {};...
Hans's user avatar
  • 325
1 vote
1 answer
682 views

Positioning a pgfplot inside tikz (understand anchors, rotation and scale)

I'm trying to rotate the plotting of a parabola above a tikzpicture. (For a parabola, I can achieve what I want without using pgfplots, but I need the same for more complicated plots.) I can't seen to ...
B. Dors's user avatar
  • 129
1 vote
1 answer
360 views

Node anchor too far away from node text

I'm using a loop to write several labels for line intersections, but perhaps for reasons of scale or something the labels are a bit too far away from the intersections. I can't fix each manually since ...
thosphor's user avatar
  • 1,203
3 votes
0 answers
64 views

Tikz/PGF Anchors at locations computed in \backgroundpath

I am trying to create an AO logic gate, which consists of three predefined shapes, as via \declarepgfshape. So far, I was able to define the shape in \backgroundpath. However, I want to have some ...
Marshmallow314's user avatar
1 vote
2 answers
64 views

On the strange label location using node, anchor and resistor

Let us assume that we have 2 resistors one on the positive x axis and the one on the negative x-axis, shown below: I want to label them by Rusing a node whose south anchor located at the north anchor ...
Aria's user avatar
  • 1,523
-1 votes
1 answer
73 views

Jump to different anchor in \draw chain

Sometimes chaining \draw commands comes in handy for me, e.g., in the following example: \begin{tikzpicture}[ box/.style={draw, minimum width=1.5cm, minimum height=1cm} ] \draw node[box] (ui) {+} ...
F1iX's user avatar
  • 368
3 votes
1 answer
222 views

How to anchor fork separation in forest trees

In the process of creating a family tree using forest, I have used forked edge style in the main for tree{}. However when the children node texts vary in length, the parent node's fork loses it's ...
Veera Raagavan's user avatar
5 votes
2 answers
182 views

How to make a node grow differently when other nodes are forked

I am a beginner in latex and am very interested in exploring it's wide range of features. I wanted to build a family tree and decided to use the forest package. I use this manual - forest_doc. I ...
Veera Raagavan's user avatar
1 vote
1 answer
84 views

Set PGF anchor position in custom pgfshape with pgfkey as string?

How can I go about using a pgfkey to place an anchor if the key is a string? Previous answers imply that setting anchors based on keys is possible using numerical keys (like this question on Creating ...
Aaron's user avatar
  • 45
2 votes
1 answer
707 views

Circuitikz: drawing an IC with pin on the top and bottom?

I want to be able to create a node that has anchors on the sides as well as on the top and bottom like in the block labelled "555 Astable" in the following picture (credits): The dipchip ...
First User's user avatar
2 votes
2 answers
899 views

How do you use an anchor of a TikZ circle?

I drew a circle with \draw (0,0) circle (3); and I want to put an arrow pointing to the right at the base of it. Something like \draw [-latex] (circle.south) -- ++(2,0); The alternative option ...
Kalcifer's user avatar
  • 275
4 votes
1 answer
5k views

What is the purpose of Anchors in TikZ?

Say I drew an arrow as \draw [thick, ->] (0,0) -- ++(2, 0); and now I want to give that arrow a label, $v$, at its tip using a node as \draw [thick, ->] (0,0) -- ++(2, 0) node[right]{$v$}; ...
Kalcifer's user avatar
  • 275
2 votes
1 answer
204 views

Arrows are shifted left tikz

I am having some issues recreating these Work breakdown structure. I have seen one similar example from TeXample.net (here source), but I am still not getting the exact thing like in the picture below....
johnny_1010's user avatar
2 votes
1 answer
587 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,...
user avatar
2 votes
1 answer
247 views

Placing the anchor next to decision node

I am trying to place an anchor next to decision node but with the current code I have, it places it at the end of the arrow. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
prananna's user avatar
2 votes
2 answers
818 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 ...
Hossein Rouhabadi's user avatar
3 votes
0 answers
75 views

Anchor at end of every line

Is it possible to fix any Anchor or any indicator at the end of each an every line of a document? Also note that Anchor/Indicator should not be displayed in the output. I am searching for this to ...
MadyYuvi's user avatar
  • 13.9k
2 votes
1 answer
619 views

Is there a beautiful Symbol of \anchor?

I wish to find a beautiful Symbol of \anchor. I can only find the anchor symbol in package dingbat, unfortunately, this anchor symbol is so ugly. Has somewhere cute anchor?
John's user avatar
  • 199
4 votes
1 answer
626 views

Hyperlink/Hypertarget Jumping to line below desired location

I have a custom commands for setting up two-way hyperlink/hypertargets: \documentclass[a4paper]{report} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref} \...
Renegade243's user avatar
3 votes
2 answers
209 views

How to "pin" a node to an anchor (also for later references)

First, a disclaimer: I cannot believe that I'm the first one asking that, so I probably missed an obvious answer. We can use anchors to position a node. But after positioning, the default anchor for ...
T. Verron's user avatar
  • 13.6k
1 vote
1 answer
142 views

Forest: Help with automatic anchoring of nodes relative to edges of other nodes

I have trees in forest, where each node in the tree is annotated with a superscript (index) and a subscript (outdex), which I instantiate as separate nodes and position in the left and right corner of ...
Any's user avatar
  • 25
0 votes
0 answers
147 views

Tikz aligning elements by their anchor positions

i found a lot of information about the positioning on Nodes, but i couldn't really apply the solutions to my problem. I have two nodes defined in a seperate file. The left one has an anchor RD1 and ...
MrDiver's user avatar
0 votes
1 answer
77 views

Anchor in nodes near coords is not working

In order to plot negative percentages under de bar en positive above de bar. I used the anchor argument, and used the dependence on visualization for each coord. However, my anchor is not working ...
Jeroenk's user avatar