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

XOR gate in pgflibraryshapes.gates.logic.IEC.code.tex allows only 2 legs #376

Closed
pgf-tikz-bot opened this issue Dec 23, 2015 · 2 comments · May be fixed by #1205
Closed

XOR gate in pgflibraryshapes.gates.logic.IEC.code.tex allows only 2 legs #376

pgf-tikz-bot opened this issue Dec 23, 2015 · 2 comments · May be fixed by #1205

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: coenig
Timestamp: 2015-12-23 15:07:01.593000

The xor gate IEC in the file pgflibraryshapes.gates.logic.IEC.code.tex (starting at line 477) does not support 3 or more legs although all the other gates do.

I'm not sure if this is a bug or a conscious decision, but simply setting the according constant from 2 to 1024 (as is the case for the other gates) seems to resolve the problem.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: mo-gul
Timestamp: 2018-12-23 19:23:55.737000

  • Description has changed:

Diff:


--- old
+++ new
@@ -1,3 +1,3 @@
-The XOR gate in the file pgflibraryshapes.gates.logic.IEC.code.tex (starting at line 477) does not support 3 or more legs although all the other gates do.
+The `xor gate IEC` in the file `pgflibraryshapes.gates.logic.IEC.code.tex` (starting at line 477) does not support 3 or more legs although all the other gates do.
 
 I'm not sure if this is a bug or a conscious decision, but simply setting the according constant from 2 to 1024 (as is the case for the other gates) seems to resolve the problem.

  • status: open --> closed-invalid

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: mo-gul
Timestamp: 2018-12-23 19:23:56.082000

I am pritty sure that this is done by intention. The corresponding manual section one can read the number of allowed inputs for each of the gates and for xor gate IEC and xnor gate IEC it is explicitly written that two inputs (only) are allowed.

I can follow this "decision" when I read https://en.wikipedia.org/w/index.php?title=XOR_gate&oldid=874532784#More_than_two_inputs. Hopefully you agree that the decision for two inputs (only) was most likely on purpose.

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

Successfully merging a pull request may close this issue.

2 participants