Questions tagged [anchor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 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 ...
1
vote
1answer
35 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 ...
2
votes
0answers
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 ...
1
vote
2answers
45 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 ...
-2
votes
1answer
41 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) {+} ...
3
votes
1answer
57 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 ...
5
votes
2answers
128 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 ...
1
vote
1answer
41 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 ...
2
votes
1answer
164 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 ...
2
votes
2answers
186 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 ...
4
votes
1answer
957 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$}; ...
2
votes
1answer
102 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....
2
votes
1answer
132 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,...
2
votes
1answer
124 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} \...
1
vote
2answers
292 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 ...
3
votes
0answers
59 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 ...
1
vote
1answer
230 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?
1
vote
1answer
100 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} \...
3
votes
2answers
107 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 ...
1
vote
1answer
62 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 ...
0
votes
0answers
64 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 ...
0
votes
1answer
42 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 ...
1
vote
1answer
330 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 ...
0
votes
0answers
105 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 ...
0
votes
0answers
107 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} \...
4
votes
2answers
732 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 ...
1
vote
1answer
75 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 ...
0
votes
1answer
107 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 ...
2
votes
1answer
77 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: ...
4
votes
2answers
285 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 ...
6
votes
2answers
580 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] (...
1
vote
1answer
146 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} \...
4
votes
2answers
193 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: ...
2
votes
1answer
347 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. ...
1
vote
0answers
54 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 ...
4
votes
2answers
212 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 ...
4
votes
2answers
504 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 ...
1
vote
1answer
65 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 ...
5
votes
3answers
664 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] ...
1
vote
1answer
582 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} \...
2
votes
2answers
102 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'...
3
votes
3answers
389 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} \...
3
votes
1answer
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[...
2
votes
1answer
394 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 ...