Questions tagged [anchor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 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[...
user avatar
3 votes
2 answers
107 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} \...
user avatar
  • 33
0 votes
2 answers
38 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 ...
user avatar
1 vote
1 answer
50 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/...
user avatar
2 votes
1 answer
91 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 {};...
user avatar
  • 303
1 vote
1 answer
64 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 ...
user avatar
  • 107
1 vote
1 answer
64 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 ...
user avatar
  • 1,163
2 votes
0 answers
26 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 ...
user avatar
1 vote
2 answers
47 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 ...
user avatar
  • 1,491
-2 votes
1 answer
44 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) {+} ...
user avatar
  • 304
3 votes
1 answer
83 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 ...
user avatar
5 votes
2 answers
144 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 ...
user avatar
1 vote
1 answer
46 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 ...
user avatar
  • 45
2 votes
1 answer
218 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 ...
user avatar
2 votes
2 answers
284 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 ...
user avatar
  • 275
4 votes
1 answer
1k 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$}; ...
user avatar
  • 275
2 votes
1 answer
139 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....
user avatar
2 votes
1 answer
209 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
163 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} \...
user avatar
2 votes
2 answers
369 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 ...
user avatar
3 votes
0 answers
61 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 ...
user avatar
  • 11.1k
2 votes
1 answer
293 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?
user avatar
  • 189
1 vote
1 answer
167 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} \...
user avatar
3 votes
2 answers
124 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 ...
user avatar
  • 12.9k
1 vote
1 answer
79 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 ...
user avatar
  • 25
0 votes
0 answers
85 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
1 vote
1 answer
384 views

Circuitikz: Anchor names of bipole terminals

I want to use the left and right terminal of a bipole as an anchor to continue drawing from there. Resistors offer the anchors left and right and they are almost what I need. However, they are too ...
user avatar
  • 13
0 votes
0 answers
136 views

Move anchor point of hyperref

In this LateX template : http://www.latextemplates.com/template/the-legrand-orange-book there are automatic pdf bookmarks that allow the reader to jump from part I to part II for example in Adobe ...
user avatar
  • 23
0 votes
0 answers
126 views

tikz: anchor to rectangle split on a fraction of a side

Is it possible to anchor to a rectangle with a specification not based on angles? For instance, in this example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \...
user avatar
  • 123
4 votes
2 answers
847 views

Hyperlinks to web sites using anchors sometimes don't work

I am not sure if this is an issue with how web sites are configured, or the hyperref pacakge. The following two links are correct (which you can verify by copying the first paramater to \href{}{} and ...
user avatar
1 vote
1 answer
104 views

assign different anchoring to nodes with negative coordinates in bar chart addplot

I need to make nodes with negative coodinates be anchor=east. How can I do that when I have nodes near coords style = {anchor = west,..} before \addplot? Should I create an individual \addplot for ...
user avatar
  • 105
0 votes
1 answer
157 views

Custom text anchor

TL;DR: How do I achieve what's in the picture in Latex? I am working on a personal manuscript of scripture, where I am stripping Biblical text of all chapter/verse markings, punctuation, etc. and ...
user avatar
  • 3
2 votes
1 answer
80 views

Coordinates of a subpart of label (or multiple nodes that preserve text spacing)

I have two equations (one on top of the other) and I'd like to relate elements of the first one to elements of the second one by drawing an arrow between them. I though of two ways to solve that: ...
user avatar
  • 298
4 votes
2 answers
335 views

tikz rectangle nodes fail to align

I'm trying to align 2 nodes (instr0 and instr1) to the left. I've followed How can I align two nodes to the left in TikZ? however it doesn't quite work as I'm getting the following error: ! Package ...
user avatar
  • 293
6 votes
2 answers
659 views

CircuiTikZ: Start ground relative to the closest component

Here is a short compilable example \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw node[ground]{} to [short,*-] (0,0) to [C] (...
user avatar
  • 527
1 vote
1 answer
162 views

How to change footnote anchors

I'm trying to write some code that lets me use footnotes inside stackrel multiple times in a single equation, and so far this is what I've come up with \documentclass{article} \usepackage{hyperref} \...
user avatar
  • 1,994
4 votes
2 answers
217 views

tikz-cd nested tikzpicture wrong center anchor

I want to place a tikzpicture in a node/cell of a tikz-cd diagram and then paint some more stuff in the inner tikzpicture. However, it seems that the nesting messes up the center anchor. Concretely: ...
user avatar
  • 302
2 votes
1 answer
414 views

Greater control of progress label positioning in pgfgantt

The following mwe is a bit of misuse of the pgfgantt package. It is supposed to show the relative effort of various subtasks making up a greater task and the state of completion of each subtask, etc. ...
user avatar
1 vote
0 answers
55 views

Anchored path compiling indefinitely

I want to make rounded corners on one side only like this: \tikz{ \fill[red] (0,0) +(8pt,8pt) arc (0:-90:8pt) -- (0,1) arc (90:0:8pt) } The points (0,0) and (0,1) in the above are placeholders. I ...
user avatar
  • 145
4 votes
2 answers
235 views

TikZ: flipping shape without moving anchors

When drawing game trees in TikZ, I use upwards-pointing triangle to denote the maximizing player 1 and downwards-pointing triangle for the minimizing player 2. However, my current solution doesnt make ...
user avatar
4 votes
2 answers
568 views

Forest: How do I automatically align tiers and have parent anchor=south

I am trying to make basic linguistic trees in Forest that do two things: 1) have the bottom leaves aligned on a single tier, and 2) have parent anchor=south. (Actually I have a third requirement as ...
user avatar
  • 147
1 vote
1 answer
76 views

Is it possible to jump to the image with href while not using captions?

I am using various figures throughout my documents without captions. In order to reference them I use the command \refstepcounter{figure} before labelling them with \label{fig:label}. However, when I ...
user avatar
  • 1,247
5 votes
3 answers
768 views

Define coordinate with anchor point

I have macros that use anchor points in pgfplots to access certain coordinate. For instance, in a graph I can invoke a macro such as: \newcommand*{\DoSomethingWithXAxis}{% \draw [ultra thick, blue] ...
user avatar
1 vote
1 answer
637 views

Draw comparator and invert it

I have drawn an error amplifier but I wanted to invert the terminals. And how to draw a comparator in circuitikz. There's a screenshot attached. \begin{figure}[h] \begin{center} \...
user avatar
  • 35
2 votes
2 answers
109 views

Efficient way of performing geometrical operations

I have to draw a series of regular (equiangular, actually) polygons, each of which is constructed by trisecting the sides of the previous polygon and subsequently cutting off its corners. Right now I'...
user avatar
  • 426
3 votes
3 answers
417 views

Define east/west anchors for a matrix with one column

I have the following code: \documentclass{article} \usepackage{amsmath} \usepackage[margin=0.5in]{geometry} \usepackage{rotating} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{matrix} \...
user avatar
  • 173
3 votes
1 answer
1k views

How to anchor a transistor along a direction with circuitikz

I'm drawing a simple nmos differential pair with a bias transistor and I want to connect the drain of the bias transistor to the midpoint of the sources of the differential pairs. \documentclass[...
user avatar
2 votes
1 answer
441 views

Positioning nodes problem with default anchor

Here is a MWE of my problem: \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \usetikzlibrary{quotes} \RequirePackage{luatex85} \begin{document} \def\a{1cm} \begin{tikzpicture}[ large ...
user avatar
  • 1,738