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

Bug with +() coordinates #569

Closed
Rmano opened this issue Jul 9, 2021 · 5 comments
Closed

Bug with +() coordinates #569

Rmano opened this issue Jul 9, 2021 · 5 comments
Assignees
Labels

Comments

@Rmano
Copy link
Collaborator

@Rmano Rmano commented Jul 9, 2021

See https://tex.stackexchange.com/questions/604366/how-do-i-fix-incorrect-label-placement

\documentclass[border=0.5cm]{standalone}
% \usepackage[oldvoltagedirection]{circuitikz}[=v0.8.3]
\usepackage[oldvoltagedirection]{circuitikz}


\begin{document}
\pgfcircversion
\begin{circuitikz}%[circuitikz/label/align=rotate]
\draw (0,0) to [L,l=$L_{nn}$] +(5,0);
\end{circuitikz}
\end{document}

gives:

image

@Rmano
Copy link
Collaborator Author

@Rmano Rmano commented Jul 9, 2021

This change to pgfcirclabel.tex:
pgfcirclabel.zip

seems to fix this:

image

@ctmalan
Copy link

@ctmalan ctmalan commented Jul 9, 2021

I am busy installing TexLive2021 on a new machine - will report tomorrow.

@ctmalan
Copy link

@ctmalan ctmalan commented Jul 10, 2021

Can confirm the error on: This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/W32TeX) (preloaded format=pdflatex 2021.7.10) 10 JUL 2021 10:39

Can also confirm that the upgated pgfcirclabel.tex fixed the issue.

@Rmano
Copy link
Collaborator Author

@Rmano Rmano commented Jul 10, 2021

Can you also please give the Pgf/Tikz version for failing and not failing? You can see them with \pgfversion...

Thanks for the test, I'll merge the fix as soon as I can (and do a release)

@Rmano
Copy link
Collaborator Author

@Rmano Rmano commented Jul 10, 2021

No need, I checked it with overleaf. This is a nasty combination of a bug fix on TikZ and an old change in circuitikz that worked thanks to the bug in TikZ... will merge soon.

@Rmano Rmano self-assigned this Jul 10, 2021
@Rmano Rmano added the bug label Jul 10, 2021
@Rmano Rmano closed this in #570 Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants