TeX - LaTeX Asked on December 25, 2021
I want to create a circuit diagram in TeXstudio or LaTeX that contains 2 switch, 2 capacitor, an OTE symbol and a Pilot Light symbol.
I am attaching the snip of the required diagram.
I also want to know that is there any tools available using which I can convert an image file into a LaTeX code.
Here is my attempt using TikZ
and Circuitikz
as suggested by @Rmano.
Circuitikz
package is used only to add capacitor elements, it loads TikZ
package.arrows.meta
library is used to create OUT element.shapes
library is used to add cross shape to the PL element.Here is the corresponding code (not an optimized version):
documentclass[border=0.2cm]{standalone}
usepackage{circuitikz}
usetikzlibrary{arrows.meta,positioning,shapes}
begin{document}
begin{tikzpicture}[thick]
ctikzset{
capacitors/scale=0.7,
capacitors/thickness=0.8,
}
draw (-4.5,2.5) node[above]{$L_1$} -- ++(0,-5);
draw (-4.5,2.2) -- ++(0.75,0)node{$bullet$} -- ++(45:0.5) node[midway,below=0.2cm]{$I/1$}
++(0.1,-0.353)node{$bullet$} -- ++(0.25,0) edge[dashed] ++(0.5,0)++(0.5,0.3) -- ++(0,-5)node[midway](a){};
draw (-4.5,0) -- ++(0.75,0)node{$bullet$} -- ++(45:0.5) node[midway,below=0.2cm]{$I/2$}
++(0.1,-0.353)node{$bullet$} -- ++(0.25,0) edge[dashed] (a.center);
draw (a.center) to[C,l=$I/1$] ++(2,0)to[C,l=$I/2$] ++(1.5,0) coordinate(b);
draw [-{Parenthesis[reversed,scale=3]}] (b) -- ++(0.25,0) node[right=-0.2cm]{OUT} node[above right=0.2cm and -0.1cm]{$O/2$} ;
draw [{Parenthesis[reversed,scale=3]}-] (b)++(0.9,0) -- ++(0.75,0) coordinate(c);
draw (c) -- ++(0,2.5)
(c) -- ++(0,-2.5)
(c) -- ++(1.95,0) coordinate(d)
-- ++ (0,2.5) node[above]{$L_2$}
(d) -- ++(0,-2.5);
path (c) -- (d) node[midway,cross out,draw,minimum size=0.8cm]{};
path (c) -- (d) node[midway,circle,draw,fill=white](PL){PL};
draw[dotted,white] (c) -- ++(0.25,0);
node at (-3.55,3.25){Input};
node at (3.55,3.25){Output};
end{tikzpicture}
end{document}
Answered by LaTeXdraw-com on December 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP