Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not work. #1

Open
lukaszlew opened this issue Oct 17, 2018 · 2 comments
Open

Example does not work. #1

lukaszlew opened this issue Oct 17, 2018 · 2 comments

Comments

@lukaszlew
Copy link

I'd like to use your package for my paper, yet I get an error on the attached example.
Calling pdflatex LargeExample.tex returns:

! Package PGF Math Error: Unknown function `pax' (in 'pax 6').

See the PGF Math package documentation for explanation.
Type H for immediate help.
...

l.52 \inetwirefree(multiplex.pax 6)

Can you help?
Log and output: LargeExample.log, LargeExample.pdf.

@sallaccio
Copy link
Owner

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?

@sallaccio
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants