Closed fgfuchs closed 9 months ago
I don't know which version of yquant overleaf is running, but it is not the most current. I already made some improvements to scaled handling quite some time ago, however, thanks to this report, I also found some bugs in there, so that when I tried to run your example, it does not even compile. These are fixed with the previous commit.
However, the placement of the box is only slightly better, but still not correct. I'll have to see what else is missing.
Regarding the scaling of the text, this is because yquant defines /yquant/every circuit
by default to be every node/.prefix style={transform shape}
. You can simply disable this altogether or selectively, then nodes (text) will no longer be scaled/rotated/whatever transformations you have in effect. However, I don't think this is what you want to have (remember that every gate is also a node). You might want to selectively disable it for labels, so you can add every label/.append style={transform shape=false}]
to the tikzpicture
(this refers to the TikZ style every label
, not to the yquant style every label
!)
The lastest version should fix this. If you confirm, I'll push the new release to CTAN.
Thanks for the prompt response. It works now.
Describe the bug scaling does not work when boxes are included. they are moved outside the circuit, also it would be nice if text would not be scaled as well...
To Reproduce code for reproduction:
Expected output boxes are where they should be
Screenshots
![scale1 5](https://github.com/projekter/yquant/assets/2428162/8a1f9584-0d2d-49bc-b99f-35ffb163f745)
Environment whatever overleaf has