3
votes
1answer
138 views

How to determine minimum width of rectangle with distance between two nodes

From similar questions and given examples about how to calculate distances between two points in the TikZ manual, I was not able to figure out how to extract from them a solution for my (probably ...
5
votes
1answer
365 views

Shrinking text in a node, such that the minimum width and minimum height are the actual width and height of the node

I want to shrink the text in a node such that the minimum height and width are the actual width and height of the node. I found this Shrinking text to the width of a node within a tikzpicture, but I ...
2
votes
2answers
2k views

TikZ: applying width to nodes programmatically, and 'Undefined control sequence pgf'

This is what I want to do: given two (horizontal) nodes, calculate the x distance between them, and produce a rectangular node with the same width as the x-distance between the nodes, placed below ...