What I am looking for: a way to make a command that takes one input from its left side, and one from its right side.
I know this is possible, because there are commands in TeX such as \atop:
\atop takes in TWO inputs, and puts one on top of the other; but it does it by
Code: Select all
{a \atop b}
However, I don't need something that does what \atop does at all: eventually, I'm trying to draw logic circuits that look kind of like a labeled version of those at http://www.texample.net/tikz/examples/s ... -diagrams/
I've worked out most of the details on how to tweak this example to get something that'll work like
Code: Select all
\cor{\cnot{p}}{\cand{q}{\cnot{p}}}
Code: Select all
{\cnot{p} \cor {q \cand \cnot{p}}}
So... despite it generally being ill-advised, does anyone know how I can make a new command that'll take one input from each side?
Thanks!