4
votes
1answer
76 views

How to reference the arguments defined in a “newcommand”?

What I am doing: I want to draw a picture (as shown below) to illustrate the contraction of some intervals to nodes in a line. First, I define a newcommand for interval (i.e., \op) with three ...
4
votes
1answer
117 views

How can I create one variable for coordinates?

Currently, if I want to make my TikZ images independant of coordinates, I use \newcommand\AX{0} \newcommand\AY{1} Can I create one coordiante for one point? How can I access the x-part or the ...
14
votes
4answers
456 views

How to create a macro with two or three ;-separated arguments?

I want to create in 2D a point with \defpoint(1;2){A} and in 3D with \defpoint(1;2;-5){A}. I prefer a solution with TeX but it would be interesting to see if LaTeX3 is useful in this situation. I ...