-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
Description
I noticed that the connection of the thermocouple
element is bad since the line caps are not lining up. You can see it in the picture below.
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to [thermocouple] ++(1,0);
\end{tikzpicture}
\end{document}
It gets better when you correct the left and right points of the component in its definition, but I have no idea, how you can adjust the joints for the thick part.
\pgfcircdeclarebipolescaled{misc}
{}
{\ctikzvalof{bipoles/thermocouple/height 2}}
{thermocouple}
{\ctikzvalof{bipoles/thermocouple/height}}
{\ctikzvalof{bipoles/thermocouple/width}}
{
\pgfpathmoveto{\pgfpoint{\pgf@circ@res@left-\pgfhorizontaltransformationadjustment*0.5*\pgflinewidth}{0}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@left-\pgfhorizontaltransformationadjustment*0.5*\pgflinewidth}{.5\pgf@circ@res@down}}
\pgfusepath{draw}
\pgfpathmoveto{\pgfpoint{\pgf@circ@res@left-\pgfhorizontaltransformationadjustment*0.5*\pgflinewidth}{.5\pgf@circ@res@down}}
\pgf@circ@setlinewidth{bipoles}{\pgfstartlinewidth}
\pgfpathlineto{\pgfpoint{0}{\pgf@circ@res@down}}
\pgfusepath{draw}
\pgfsetlinewidth{\pgfstartlinewidth}
\pgfpathmoveto{\pgfpoint{0}{\pgf@circ@res@down}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@right+\pgfhorizontaltransformationadjustment*0.5*\pgflinewidth}{.5\pgf@circ@res@down}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@right+\pgfhorizontaltransformationadjustment*0.5*\pgflinewidth}{0}}
\pgfusepath{draw}
}
Edit
I quickly scrolled through the manual and I think a lot of the switches and the viscoe
component may have the same problem. Also you can see it for the zig-zag resistors when you change the linewidth
as shown in the manual. (Probably every component that doesn't start/end with a horizontal line or a vertical line crossing the connection point? But that can get out of hands really fast I think.)