Skip to content

[Bug] Open voltage arrow and label overlap #821

@wallscheid

Description

@wallscheid

Describe the bug
The automatically generated voltage label of an open circuit voltage arrow can overlap with the arrow, see
grafik

To Reproduce

\documentclass{article}
\usepackage[european, smartlabels]{circuitikz}
\begin{document}
\begin{circuitikz}[]
            \draw (0,2) to [open, o-o, voltage = straight] ++(0,-2)
            to ++(-4,0)
            to [vsource, v<=$u_\mathrm{in}(t)$, i=$i_\mathrm{in}(t)$] ++(0,2)
            to [variable european resistor] ++(4,0) ;
            \draw (0,2) to [open, v = $ u_\mathrm{in}(t)$, voltage = straight] (0,0);
 \end{circuitikz}
\end{document}

Operating system, LaTeX distribution
Win 11 pro, MikTeX-pdfTeX 4.19

Expected behavior
Label is properly left or right aligned without overlapping - compare voltage source on the left hand side of the above screenshot, where the behavior works as expected

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions