[pgf-tikz] circuitikz alignment

Hartmut Henkel hartmut_henkel at gmx.de
Wed Apr 12 15:28:04 CEST 2023


Hello,

in the pdfLaTeX snipplet below the line from point A to the inverting
input stub of the op-amp has a slight inclination. The line width is 0.4
pt (maybe bp), and from point A the line goes down by 0.3 pt until
reaching the stub (checked in inkscape after pdf2svg). In a larger
circuit this is well perceptible.

Increasing the PDF resolution does not help. It looks as if it can be
"corrected" by tweaking tripoles/op amp/input height/.initial, see the
commented lines below (which is not a solution).

Is this an issue (rounding?), which can be fixed?

Best Regards, Hartmut


\documentclass[a4paper,12pt]{article}
\pdfcompresslevel=0
\usepackage{circuitikz}

\makeatletter
%\ctikzset{tripoles/op amp/input height/.initial=.5}  % original
%\ctikzset{tripoles/op amp/input height/.initial=.51} % about better
\makeatother

\begin{document}
\begin{circuitikz}
\draw
  (1.5,-.5) node [op amp] (opamp) {}
  (0,0) node[left]{A}
  to [short] (opamp.-) ;
\end{circuitikz}
\end{document}



More information about the pgf-tikz mailing list.