Questions tagged [tikz-calc]
The tikz-calc tag has no usage guidance.
72
questions
3
votes
2
answers
192
views
TikZ: How find min, max of x-values in list of coordinate pairs?
After several \coordinate pairs are created in a TikZ picture, how can I get the minimum and maximum values of the x-coordinates of those pairs, so as to use them further?
Toy example (does not ...
1
vote
0
answers
66
views
\NewDocumentCommand with TikZ calc library
recently I was doing a lot of various diagrams and found myself experimenting with the \newcommand to define labels and "variables". As such I wanted to expand and experiment with commands ...
2
votes
0
answers
71
views
Tikz calc distance modifier erros on rotated lines in matrix
I want to illustrate how to group together certain terms in an infinite table. So far I have made this:
I also want to group a₂b₃ with a₃b₂, and make another group for a₃b₃. So far i have made the ...
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}...
0
votes
0
answers
17
views
Wrong output from power operator in TikZ declare function [duplicate]
I'm using the TikZ declare function key and getting some weird results with squaring.
\begin{tikzpicture}[declare function={f(\x)=\x*\x;}]
\node {\pgfmathparse{f(-.5)} \pgfmathresult}; % outputs *...
9
votes
1
answer
289
views
Determine TikZ bend direction automatically
Consider the following example:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node (A) {A};
\node (B) [right=2cm of A] {B};
\draw[->,...
5
votes
2
answers
304
views
Drawing planar mechanisms in tikz
I am trying to improve this picture made in Word by using Tikz. I have made some advancements but there are some questions that kept me stuck.
Regarding the angles, I need to draw a line at some ...
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]{...
3
votes
0
answers
76
views
Why is $(O) + ($(X)!(O)!(D)$)$ is not projecting correctly [closed]
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
% Draw the axes
\draw[->] (-1,0) -- (7,0) node[right] {$x$};
\draw[->] (0,-1) --...
0
votes
0
answers
52
views
Generating 3D coordinates using let command
I want to create a tikz figure with 3d coordinates. I wanted to use 3D coordinates to make life easier, but when I implemented the cross-product using the let command, an error "Dimension too ...
4
votes
2
answers
218
views
Rotating a plane around its edge on TikZ
I'm trying to rotate the red plane in the right side around the its edge AB, the question is actually about rotating anything around a arbitrary path, I know the rotate around command and that I can ...
4
votes
2
answers
743
views
How to create a vertical timeline in LaTeX with proportional division of entries (possibly avoiding repetition of years)?
I could use some help in creating a vertical timeline with specific requirements. The timeline should display dates on the left side of a vertical line, with the corresponding labels on the right. The ...
3
votes
3
answers
155
views
TikZ node width depending on two nodes distance
I am trying to make a schematic, where I need to have a rectangle with the minimum width set to the distance between two other rectangle nodes.
I tried to follow the solutions from Compute the x ...
0
votes
1
answer
142
views
Page Background for Certain Pages Only
Consider the code:
\documentclass{article}
\usepackage{background}
\usetikzlibrary{calc}
\usepackage{lipsum}
\backgroundsetup{
color=black,
scale=1,
opacity=1,
angle=0,
contents={\tikz\draw[line ...
1
vote
0
answers
46
views
What are all the possibilities of the calc library to position a point or a line?
I know how to draw with the calc library
a perpendicular line of given length
a perpendicular line passing through a point
a line of any angle passing through a point
Are there any other ...