Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I create a variable input/output node using a new command as in the following pictureVriableSizeNode

Say for example, I know that the node will have n inputs and m outputs, which I enter the name as an argument for the new command, and at the same time, use it easily to link a specific input to a specific output

share|improve this question
I'm sorry, but I don't understand the question. Are you looking to draw this picture, draw a similar (generalized) picture, or set up some sort of macro interface described by this picture? (haven't had my coffee yet) –  Steven B. Segletes Mar 21 at 13:46
It's the macros I'm looking for. I have to use the same block several times but with different number of inputs and outputs –  user2536125 Mar 21 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.