Quantcast
Channel: Computing and adding a note in the middle of a figure in tikz - TeX - LaTeX Stack Exchange
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by AboAmmar for Computing and adding a note in the middle of a figure...

You are unnecessarily complicating simple things. What you want is just a singlecommand like this:\draw[draw=gray, very thin] (#1mm,#2mm) rectangle ++(-6mm,-6mm) node[pos=.5] {#3};and you can call it...

View Article



Image may be NSFW.
Clik here to view.

Answer by vi pa for Computing and adding a note in the middle of a figure in...

For get what you want you should wrap the calculations of x and y with braces. But as suggested by SebGlav in the comment, the code can be simplified using the calc library. The default units used by...

View Article

Computing and adding a note in the middle of a figure in tikz

I want to compute the middle of a geometric figure and create a node with some text on that coordinates. When trying to do some simple squares, I get! Package pgf Error: No shape named (0 is known.I'm...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images