I'd like to draw some linear Systems with tikz. The problem is the orientation of the Systems. Some have
- input on left - output on right
- input on right - output on left
- input above - output below
- input below - output above
So to handle all the variations with a single \command, i'd like to use the arguments
- ud (up down)
- du (down up)
- lr (left right)
- rl (right left)
So what I need is a switch in Latex to define the Orientationparameter.
pseudocode:
\drawSYS{Text}{lr}
Command: drawSYS
\switch #2
\case 'lr'
\def\ORIENTA left
\def\ORIENTB right
\case 'rl'
\def\ORIENTA right
\def\ORIENTB left
....
\endswitch
\node[anchor=\ORIENTA,\ORIENTB=1cm] () {foobar};
Is this even possible in Tex?
Thanks for your help.
anchor=east,rotate=90
. Oranchor=east,xscale=-1
. That's easy enough to do using styles. Does that sound like what you want?