1
vote
1answer
137 views

Using variables to draw a tikz diagram

I am defind my own command to plat a diagram with tikz. Instead of constant values I rather want to pass numbers to my command which determine the height of the bars in my diagram. Problem: I am ...
5
votes
2answers
295 views

TikZ: Using optional arguments in after part of \newenvironment*

How can I pass the optional arguments to a node being drawn in the after part of a \newenvironment*? In the before part this is easy since I can simply use #1. I tried using \edef, but that ended up ...
9
votes
1answer
1k views

TikZ: \newcommand with optional TikZ options

I want to create a new command with some default TikZ options that you can override using an optional argument. If working as intended the code below would generate a red line between A and B, and a ...
4
votes
1answer
123 views

Where to look up argument for a function in TikZ?

For instance, (q_5) edge [loop above] node {a} (q_5) This is Automaton package, the one I want to look up is [loop above], I want to know what other options can I put in ...