Create transfomer symbol consisting of two circles












1















I am drawing a simple power system in a single line diagram and want to define a shape for a transformer, which looks like two partly overlapping circles. I have already defined styles for generators and impedances using tikzset. By doing this I can easily draw generators and impedances using the node command. However, I haven't figured out how to do this for the transformer as it consists of two circles not one. Does anyone know an easy way to define this transformer shape, such that I can easily create one with the the node command?



Transformer symbol










share|improve this question




















  • 1





    Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

    – JouleV
    Feb 4 at 10:13













  • Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 11:06






  • 2





    It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

    – StefanH
    Feb 4 at 11:22











  • Hi, the circuittikz also works :) Many thanks.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:10











  • See also tex.stackexchange.com/questions/431334/…

    – John Kormylo
    Feb 4 at 15:56
















1















I am drawing a simple power system in a single line diagram and want to define a shape for a transformer, which looks like two partly overlapping circles. I have already defined styles for generators and impedances using tikzset. By doing this I can easily draw generators and impedances using the node command. However, I haven't figured out how to do this for the transformer as it consists of two circles not one. Does anyone know an easy way to define this transformer shape, such that I can easily create one with the the node command?



Transformer symbol










share|improve this question




















  • 1





    Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

    – JouleV
    Feb 4 at 10:13













  • Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 11:06






  • 2





    It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

    – StefanH
    Feb 4 at 11:22











  • Hi, the circuittikz also works :) Many thanks.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:10











  • See also tex.stackexchange.com/questions/431334/…

    – John Kormylo
    Feb 4 at 15:56














1












1








1








I am drawing a simple power system in a single line diagram and want to define a shape for a transformer, which looks like two partly overlapping circles. I have already defined styles for generators and impedances using tikzset. By doing this I can easily draw generators and impedances using the node command. However, I haven't figured out how to do this for the transformer as it consists of two circles not one. Does anyone know an easy way to define this transformer shape, such that I can easily create one with the the node command?



Transformer symbol










share|improve this question
















I am drawing a simple power system in a single line diagram and want to define a shape for a transformer, which looks like two partly overlapping circles. I have already defined styles for generators and impedances using tikzset. By doing this I can easily draw generators and impedances using the node command. However, I haven't figured out how to do this for the transformer as it consists of two circles not one. Does anyone know an easy way to define this transformer shape, such that I can easily create one with the the node command?



Transformer symbol







shapes circuits






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 at 11:12







Sigurd Hofsmo Jakobsen

















asked Feb 4 at 10:05









Sigurd Hofsmo JakobsenSigurd Hofsmo Jakobsen

84




84








  • 1





    Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

    – JouleV
    Feb 4 at 10:13













  • Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 11:06






  • 2





    It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

    – StefanH
    Feb 4 at 11:22











  • Hi, the circuittikz also works :) Many thanks.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:10











  • See also tex.stackexchange.com/questions/431334/…

    – John Kormylo
    Feb 4 at 15:56














  • 1





    Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

    – JouleV
    Feb 4 at 10:13













  • Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 11:06






  • 2





    It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

    – StefanH
    Feb 4 at 11:22











  • Hi, the circuittikz also works :) Many thanks.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:10











  • See also tex.stackexchange.com/questions/431334/…

    – John Kormylo
    Feb 4 at 15:56








1




1





Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

– JouleV
Feb 4 at 10:13







Welcome to TeX.SE! To draw the above figure, you can use very simple TikZ command draw (0,0) circle (1cm); draw (0,1) circle (1cm); but please explain more about the size of the shape, how you use the shape, etc.

– JouleV
Feb 4 at 10:13















Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

– Sigurd Hofsmo Jakobsen
Feb 4 at 11:06





Hi, thanks for the reply. Your solution is how I do it now, but I was wondering how to define a style for this. I have added more details in my question now.

– Sigurd Hofsmo Jakobsen
Feb 4 at 11:06




2




2





It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

– StefanH
Feb 4 at 11:22





It sounds like you should take a look at circuitikz. Then you can do e.g. draw (0,0) to[ioosource] (0,2);

– StefanH
Feb 4 at 11:22













Hi, the circuittikz also works :) Many thanks.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:10





Hi, the circuittikz also works :) Many thanks.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:10













See also tex.stackexchange.com/questions/431334/…

– John Kormylo
Feb 4 at 15:56





See also tex.stackexchange.com/questions/431334/…

– John Kormylo
Feb 4 at 15:56










1 Answer
1






active

oldest

votes


















3














A for loop is an answer for you here:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
mycirc/.pic={
foreach w in {0,1} {
draw (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here



Even you can change the design choices of your transformers:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
main/.style ={circle, inner sep=0pt, minimum size=0.6cm, dashed},
mycirc/.pic={
foreach w in {0,1} {
draw[main] (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here






share|improve this answer


























  • Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:08













  • @SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

    – Raaja
    Feb 4 at 12:16













  • Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:27











  • Ofc, I just didn't know it was a button for that.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:37






  • 1





    No problems, now you know :) Happy TeXing :D or must I say TikZing :D

    – Raaja
    Feb 4 at 12:42













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473300%2fcreate-transfomer-symbol-consisting-of-two-circles%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














A for loop is an answer for you here:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
mycirc/.pic={
foreach w in {0,1} {
draw (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here



Even you can change the design choices of your transformers:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
main/.style ={circle, inner sep=0pt, minimum size=0.6cm, dashed},
mycirc/.pic={
foreach w in {0,1} {
draw[main] (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here






share|improve this answer


























  • Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:08













  • @SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

    – Raaja
    Feb 4 at 12:16













  • Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:27











  • Ofc, I just didn't know it was a button for that.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:37






  • 1





    No problems, now you know :) Happy TeXing :D or must I say TikZing :D

    – Raaja
    Feb 4 at 12:42


















3














A for loop is an answer for you here:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
mycirc/.pic={
foreach w in {0,1} {
draw (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here



Even you can change the design choices of your transformers:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
main/.style ={circle, inner sep=0pt, minimum size=0.6cm, dashed},
mycirc/.pic={
foreach w in {0,1} {
draw[main] (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here






share|improve this answer


























  • Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:08













  • @SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

    – Raaja
    Feb 4 at 12:16













  • Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:27











  • Ofc, I just didn't know it was a button for that.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:37






  • 1





    No problems, now you know :) Happy TeXing :D or must I say TikZing :D

    – Raaja
    Feb 4 at 12:42
















3












3








3







A for loop is an answer for you here:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
mycirc/.pic={
foreach w in {0,1} {
draw (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here



Even you can change the design choices of your transformers:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
main/.style ={circle, inner sep=0pt, minimum size=0.6cm, dashed},
mycirc/.pic={
foreach w in {0,1} {
draw[main] (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here






share|improve this answer















A for loop is an answer for you here:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
mycirc/.pic={
foreach w in {0,1} {
draw (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here



Even you can change the design choices of your transformers:



documentclass{standalone}
usepackage{tikz}
begin{document}


tikzset{
main/.style ={circle, inner sep=0pt, minimum size=0.6cm, dashed},
mycirc/.pic={
foreach w in {0,1} {
draw[main] (0,w) circle (1cm);
}
}
}

begin{tikzpicture}
pic at (2,2) {mycirc};
end{tikzpicture}
end{document}


which will give you:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 4 at 12:00

























answered Feb 4 at 11:26









RaajaRaaja

3,64521037




3,64521037













  • Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:08













  • @SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

    – Raaja
    Feb 4 at 12:16













  • Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:27











  • Ofc, I just didn't know it was a button for that.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:37






  • 1





    No problems, now you know :) Happy TeXing :D or must I say TikZing :D

    – Raaja
    Feb 4 at 12:42





















  • Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:08













  • @SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

    – Raaja
    Feb 4 at 12:16













  • Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:27











  • Ofc, I just didn't know it was a button for that.

    – Sigurd Hofsmo Jakobsen
    Feb 4 at 12:37






  • 1





    No problems, now you know :) Happy TeXing :D or must I say TikZing :D

    – Raaja
    Feb 4 at 12:42



















Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:08







Hi, many thanks. Your solution looks exactly, like what I was thinking about. One question. Is it possible to change your code such that I can draw the shape using the following command: node[mycirc] (pos) {};. For the generator shape I get this behavior, when I write .style where you have written .pic.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:08















@SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

– Raaja
Feb 4 at 12:16







@SigurdHofsmoJakobsen It will not work (I think), because, it is not a style instead it is a picture ;) But if you want to draw it with mypic then you need to define a custom macro for that purpose (which is out-of-scope of this question here :D). [off-topic] IMHO, it is an over-kill :D

– Raaja
Feb 4 at 12:16















Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:27





Ok, many thanks. Yes, I don't want to define a custom macro, it does seem a bit overkill ;P. Anyway, your proposal work fine for my purpose :)

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:27













Ofc, I just didn't know it was a button for that.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:37





Ofc, I just didn't know it was a button for that.

– Sigurd Hofsmo Jakobsen
Feb 4 at 12:37




1




1





No problems, now you know :) Happy TeXing :D or must I say TikZing :D

– Raaja
Feb 4 at 12:42







No problems, now you know :) Happy TeXing :D or must I say TikZing :D

– Raaja
Feb 4 at 12:42




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473300%2fcreate-transfomer-symbol-consisting-of-two-circles%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents