Code Monkey home page Code Monkey logo

Comments (2)

sallaccio avatar sallaccio commented on June 27, 2024

Sorry I've taken so much time. It's that it's a rather dead project and I haven't been here in ages.
I'll try to look into it as soon as I can.

It would be so awesome if you actually use it, because I put so much time into it that if at least someone uses it is already something.

How far away is your paper?

from tikz-multinets.

sallaccio avatar sallaccio commented on June 27, 2024

What happened is that I left the possibility to overwrite some options one pre-created cells:

18 \newcommand{\multiplexor}
19	{\inetmulticellshape[very thick,inner sep=-3pt,isosceles triangle apex angle=90]{1}{3}}

defines a new type of cell that you can later re-use without redefining all its properties (just adding a name and label). But one could overwrite for instance the number of auxiliary ports, like in l.50:

50 \multiplexor[arity=7](multiplex){$T_{n+m}$}{rho.pal 1}++{1}

should create a cell with same parameters as the \multiplexor but with 7 auxiliary ports.
For some reason (maybe a breaking change I made by mistake), this overwrite does not work. So when the code says

52 \inetwirefree(multiplex.pax 6)
53 \inetabove(multiplex.pax 5){...}
54 \inetwirefree(multiplex.pax 4)

the cell does not have a 4th, 5th and 6th auxiliary ports, and breaks.
The workaround is to create another specific cell with 7 ports and use this instead. So you can add

\newcommand{\multiplexorTwo}
	{\inetmulticellshape[very thick,inner sep=-3pt,isosceles triangle apex angle=90]{1}{7}}

and change what was line 50 to

\multiplexorTwo(multiplex){$T_{n+m}$}{rho.pal 1}++{1}

and wherever you reference that cell, use \multiplexorTwo.

I'll try to look into this problem if it really a hasle and you planned to overwrite predefined cells a lot.

Let me know if it helps.

from tikz-multinets.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.