Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-calc]

The tag has no usage guidance.

1
vote
2answers
49 views

How to add ticks in a circle in TikZ

Referring to the question How to make add tick to node in tikz, how do I extend this to a circle shape in TikZ. A simple approach is to draw lines as ticks by calculating the coordinates. Sample ...
1
vote
1answer
59 views

Plotting my chart incorrectly in tikz

MWE \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{datavisualization} \usetikzlibrary{datavisualization.formats.functions} \usetikzlibrary{patterns,backgrounds} \def\mytypesetter#1{ \...
0
votes
1answer
79 views

How to draw animated isomorphic graphs?

I saw a nice question & answer over here, about creating an animation to demonstrate graph isomorphism. I'd like to do the same for these two examples: These two are isomorphic: These two aren't ...
2
votes
1answer
46 views

How to remove unit from variable?

I want to draw an arc of a certain length in cm, so I divide by the circumference in cm and multiply 360 to get the segment in degrees. (Is there a shortcut?) In my MWE b is the unitless number I want ...
5
votes
1answer
89 views

Calculations within Matrix Tikz

How can I tell tikz to make a calculation within a matrix. The same syntax outside does not work within as is shown in this MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,calc} ...
3
votes
1answer
70 views

Let Tikz do the Calculating

Most of the work has been done here except I want TiKz to calculate the y values at least. I try here below but need help with the syntax to finish \documentclass{article} \usepackage{tikz} \...
7
votes
5answers
404 views

TikZ: Understanding the usage of calc library

For the following MWE, I need to place block (yaw) {C} midway between (1) the middle point between (output) and (integrator) (2) and (sum2). So, how can I correct this syntax \node [block] (yaw) at ([...
4
votes
2answers
51 views

substitution in tikz calc

In this example \documentclass[tikz,border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (a) at (0, 0); \coordinate (b) at (1, 1); \...
2
votes
3answers
130 views

Using calc library with background package

Im trying to place a page border on every page using ornaments and the background package. I'd like to place this frame 0.6cm away from the border of the page and therefore I'm using the calc library ...
3
votes
1answer
42 views

TikZ, avoiding uneccessary ad-hoc coordinates calculation

I am wondering whether there would be a simpler way to get a similar figure: (1) avoid adjusting by hand the size of each coloured box, (2) avoid computing by hand the middle of each box from which ...
3
votes
1answer
118 views

Relative positioning of nodes to bounding box and to path operation

I just tried to use the relative positioning of nodes with respect to the current bounding box of a tikzpicture as proposed in Position node relative to current bounding box. The proposed solution ...
1
vote
1answer
128 views

Pgfplots: how to have “let” retrieve coordinates in the axis coordinate system? [duplicate]

This is a continuation of my previous question, but now I want to use pgfplots. In an axis environment, I add a node using the axes coordinate system. I would like to use let to retrieve the ...
6
votes
3answers
297 views

Spin Echo Diagram, Simplification and Scalability

I was able to create the following diagram of a spin echo sequence (NMR, NQR spectroscopy) using TikZ: It was produces using this code snippet: \begin{tikzpicture} \coordinate (yoffset) at (...
6
votes
2answers
182 views

Can we use `let` (from `TikZ`) inside a node's style definition?

I know how to use let from TikZ calc library into a path command and fix some parameter of a particular node on that path. But I would like to use inside node's style definition. As an example, ...
2
votes
1answer
134 views

Using a custom command inside Tikz-Calc

This my first question here, so I hope that I present it in an appropriate form. At the moment I'm generating lots of schematics using the TikZ-package and it's calc-Library. Therefore I use ...
2
votes
1answer
130 views

Tikz foreach loop and coordinate computation including scaling

I am trying to plot a number of lines from a point on the segment connecting points from a given list of points to the coordinate origin (0,0). Since I want to automate this procedure, I am using \...
4
votes
1answer
121 views

Combined rotations in tikz

How to make the center of a rotation in tikz evolve in a for loop, given a trigonometrical formula (that I reckon should be quite simple: l*cos and l*sin)? I am trying to make a scheme of the arm ...
1
vote
2answers
92 views

Conflict between personal macro and Babel French

I wrote a personal command that allows you to place a text next to a figure. This macro has been corrected for an incompatibility with the tikz calc library here: Personal command incompatible with ...
2
votes
1answer
120 views

Personal command incompatible with beamer class

On these thread: Personal command incompatible with tikz calc library the personal \compo command that allows you to place a figure next to a text has been corrected to work with the tikz calc library ...