Two questions about nodes at Tikz











up vote
4
down vote

favorite












I saw this question How to change the size of nodes? and I wonder:




  1. If I want the nodes will be at the same size as automata nodes, what I need to fill at size? (or the scale).

  2. If I want make it for all the nodes (I assuming I need to write it at the beginning), what I need to write?


Here is an MWE:



 % Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
usepackage{amsmath}
usepackage{amsthm}
usepackage{fontspec}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

usepackage{tikz}
usetikzlibrary{automata}

makeatother

usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{center}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}
parend{center}

begin{center}
begin{tikzpicture}
draw (1,1) node[circle,draw] {$1$};
end{tikzpicture}
parend{center}
end{document}


Thank you!










share|improve this question
























  • Add a MWE.
    – nidhin
    2 days ago










  • I added it! Thank you!
    – heblyx
    2 days ago












  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    2 days ago










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    2 days ago















up vote
4
down vote

favorite












I saw this question How to change the size of nodes? and I wonder:




  1. If I want the nodes will be at the same size as automata nodes, what I need to fill at size? (or the scale).

  2. If I want make it for all the nodes (I assuming I need to write it at the beginning), what I need to write?


Here is an MWE:



 % Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
usepackage{amsmath}
usepackage{amsthm}
usepackage{fontspec}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

usepackage{tikz}
usetikzlibrary{automata}

makeatother

usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{center}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}
parend{center}

begin{center}
begin{tikzpicture}
draw (1,1) node[circle,draw] {$1$};
end{tikzpicture}
parend{center}
end{document}


Thank you!










share|improve this question
























  • Add a MWE.
    – nidhin
    2 days ago










  • I added it! Thank you!
    – heblyx
    2 days ago












  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    2 days ago










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    2 days ago













up vote
4
down vote

favorite









up vote
4
down vote

favorite











I saw this question How to change the size of nodes? and I wonder:




  1. If I want the nodes will be at the same size as automata nodes, what I need to fill at size? (or the scale).

  2. If I want make it for all the nodes (I assuming I need to write it at the beginning), what I need to write?


Here is an MWE:



 % Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
usepackage{amsmath}
usepackage{amsthm}
usepackage{fontspec}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

usepackage{tikz}
usetikzlibrary{automata}

makeatother

usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{center}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}
parend{center}

begin{center}
begin{tikzpicture}
draw (1,1) node[circle,draw] {$1$};
end{tikzpicture}
parend{center}
end{document}


Thank you!










share|improve this question















I saw this question How to change the size of nodes? and I wonder:




  1. If I want the nodes will be at the same size as automata nodes, what I need to fill at size? (or the scale).

  2. If I want make it for all the nodes (I assuming I need to write it at the beginning), what I need to write?


Here is an MWE:



 % Preview source code

%% LyX 2.3.1-1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
usepackage{amsmath}
usepackage{amsthm}
usepackage{fontspec}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
pdfpageheightpaperheight
pdfpagewidthpaperwidth


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

usepackage{tikz}
usetikzlibrary{automata}

makeatother

usepackage{polyglossia}
setdefaultlanguage{hebrew}
setotherlanguage{english}
begin{document}
begin{center}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}
parend{center}

begin{center}
begin{tikzpicture}
draw (1,1) node[circle,draw] {$1$};
end{tikzpicture}
parend{center}
end{document}


Thank you!







tikz-pgf automata






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked 2 days ago









heblyx

776818




776818












  • Add a MWE.
    – nidhin
    2 days ago










  • I added it! Thank you!
    – heblyx
    2 days ago












  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    2 days ago










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    2 days ago


















  • Add a MWE.
    – nidhin
    2 days ago










  • I added it! Thank you!
    – heblyx
    2 days ago












  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    2 days ago










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    2 days ago
















Add a MWE.
– nidhin
2 days ago




Add a MWE.
– nidhin
2 days ago












I added it! Thank you!
– heblyx
2 days ago






I added it! Thank you!
– heblyx
2 days ago














@heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
– Sigur
2 days ago




@heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
– Sigur
2 days ago












@Sigur, I edit my MWE, now it's better?
– heblyx
2 days ago




@Sigur, I edit my MWE, now it's better?
– heblyx
2 days ago










3 Answers
3






active

oldest

votes

















up vote
4
down vote



accepted










I interpret the question slightly different than Phelype. If you want all nodes in that picture to have the same size as the state nodes that come with automata, you only need to say every node/.append style={minimum width=2.5em}.



documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{automata}
begin{document}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}

begin{tikzpicture}[every node/.append style={minimum width=2.5em}]
draw (1,1) node[circle,draw] {$1$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer





















  • Ooh, much simpler certainly :D
    – Phelype Oleinik
    2 days ago










  • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
    – marmot
    2 days ago










  • Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
    – heblyx
    2 days ago


















up vote
4
down vote













When you draw a node [state], you are drawing a node [circle,draw,minimum size=2.5em,every state].



How to figure this out:



The usetikzlibrary{<library>} command loads a tikzlibrary<library>.code.tex file. Searching for the tikzlibraryautomata.code.tex file in my TeX distribution I found it at /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/.



I opened the file and searched for state and found at the end of the file:



tikzstyle{state}=                [state without output]


so state is the same as state without output. Searching for the latter I found:



tikzstyle{state without output}=  [circle,draw,minimum size=2.5em,every state]


thus, state is the same as circle,draw,minimum size=2.5em,every state, with every state being empty by default:



tikzstyle{every state}=           


MWE:



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{automata}
begin{document}

begin{center}
begin{tikzpicture}
node[state] (1) {$1$};
end{tikzpicture}
end{center}

begin{center}
begin{tikzpicture}
draw (1,1) node [circle,draw,minimum size=2.5em,every state] {$1$};
end{tikzpicture}
end{center}

end{document}



enter image description here






Oh, and answering your second question, you can use more or less the same approach as in the package, but change the every node style. To change it globally you can use tikzset:



tikzset{
every node/.style = {
circle,draw,minimum size=2.5em,every state
}
}


or, for a single tikzpicture, you can pass this as an option:



begin{tikzpicture}[
every node/.style = {
circle,draw,minimum size=2.5em,every state
}
]
draw (1,1) node {$1$};
end{tikzpicture}





share|improve this answer






























    up vote
    2
    down vote













    Here is a minimum example to set the size of state to known value.



    documentclass[border=2mm]{standalone}
    usepackage{tikz}
    usetikzlibrary{automata}
    begin{document}
    begin{center}
    begin{tikzpicture}[every state/.style={minimum size=2cm},]
    node[state] (1) {$1$};
    end{tikzpicture}

    begin{tikzpicture}
    draw (1,1) node[circle,draw,minimum size=2cm] {$1$};
    end{tikzpicture}
    end{center}
    end{document}


    enter image description here






    share|improve this answer





















      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',
      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%2f460730%2ftwo-questions-about-nodes-at-tikz%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      4
      down vote



      accepted










      I interpret the question slightly different than Phelype. If you want all nodes in that picture to have the same size as the state nodes that come with automata, you only need to say every node/.append style={minimum width=2.5em}.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{automata}
      begin{document}
      begin{tikzpicture}
      node[state] (1) {$1$};
      end{tikzpicture}

      begin{tikzpicture}[every node/.append style={minimum width=2.5em}]
      draw (1,1) node[circle,draw] {$1$};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer





















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        2 days ago










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        2 days ago










      • Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
        – heblyx
        2 days ago















      up vote
      4
      down vote



      accepted










      I interpret the question slightly different than Phelype. If you want all nodes in that picture to have the same size as the state nodes that come with automata, you only need to say every node/.append style={minimum width=2.5em}.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{automata}
      begin{document}
      begin{tikzpicture}
      node[state] (1) {$1$};
      end{tikzpicture}

      begin{tikzpicture}[every node/.append style={minimum width=2.5em}]
      draw (1,1) node[circle,draw] {$1$};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer





















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        2 days ago










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        2 days ago










      • Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
        – heblyx
        2 days ago













      up vote
      4
      down vote



      accepted







      up vote
      4
      down vote



      accepted






      I interpret the question slightly different than Phelype. If you want all nodes in that picture to have the same size as the state nodes that come with automata, you only need to say every node/.append style={minimum width=2.5em}.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{automata}
      begin{document}
      begin{tikzpicture}
      node[state] (1) {$1$};
      end{tikzpicture}

      begin{tikzpicture}[every node/.append style={minimum width=2.5em}]
      draw (1,1) node[circle,draw] {$1$};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer












      I interpret the question slightly different than Phelype. If you want all nodes in that picture to have the same size as the state nodes that come with automata, you only need to say every node/.append style={minimum width=2.5em}.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{automata}
      begin{document}
      begin{tikzpicture}
      node[state] (1) {$1$};
      end{tikzpicture}

      begin{tikzpicture}[every node/.append style={minimum width=2.5em}]
      draw (1,1) node[circle,draw] {$1$};
      end{tikzpicture}
      end{document}


      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered 2 days ago









      marmot

      76.8k487161




      76.8k487161












      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        2 days ago










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        2 days ago










      • Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
        – heblyx
        2 days ago


















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        2 days ago










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        2 days ago










      • Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
        – heblyx
        2 days ago
















      Ooh, much simpler certainly :D
      – Phelype Oleinik
      2 days ago




      Ooh, much simpler certainly :D
      – Phelype Oleinik
      2 days ago












      @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
      – marmot
      2 days ago




      @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
      – marmot
      2 days ago












      Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
      – heblyx
      2 days ago




      Both of you gave me a great answers! Really - so first of all - Thank you for both! :) The reason I accept your answer @marmot it's because it simpler - but both answers were great and answer my questions!
      – heblyx
      2 days ago










      up vote
      4
      down vote













      When you draw a node [state], you are drawing a node [circle,draw,minimum size=2.5em,every state].



      How to figure this out:



      The usetikzlibrary{<library>} command loads a tikzlibrary<library>.code.tex file. Searching for the tikzlibraryautomata.code.tex file in my TeX distribution I found it at /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/.



      I opened the file and searched for state and found at the end of the file:



      tikzstyle{state}=                [state without output]


      so state is the same as state without output. Searching for the latter I found:



      tikzstyle{state without output}=  [circle,draw,minimum size=2.5em,every state]


      thus, state is the same as circle,draw,minimum size=2.5em,every state, with every state being empty by default:



      tikzstyle{every state}=           


      MWE:



      documentclass{scrartcl}
      usepackage{tikz}
      usetikzlibrary{automata}
      begin{document}

      begin{center}
      begin{tikzpicture}
      node[state] (1) {$1$};
      end{tikzpicture}
      end{center}

      begin{center}
      begin{tikzpicture}
      draw (1,1) node [circle,draw,minimum size=2.5em,every state] {$1$};
      end{tikzpicture}
      end{center}

      end{document}



      enter image description here






      Oh, and answering your second question, you can use more or less the same approach as in the package, but change the every node style. To change it globally you can use tikzset:



      tikzset{
      every node/.style = {
      circle,draw,minimum size=2.5em,every state
      }
      }


      or, for a single tikzpicture, you can pass this as an option:



      begin{tikzpicture}[
      every node/.style = {
      circle,draw,minimum size=2.5em,every state
      }
      ]
      draw (1,1) node {$1$};
      end{tikzpicture}





      share|improve this answer



























        up vote
        4
        down vote













        When you draw a node [state], you are drawing a node [circle,draw,minimum size=2.5em,every state].



        How to figure this out:



        The usetikzlibrary{<library>} command loads a tikzlibrary<library>.code.tex file. Searching for the tikzlibraryautomata.code.tex file in my TeX distribution I found it at /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/.



        I opened the file and searched for state and found at the end of the file:



        tikzstyle{state}=                [state without output]


        so state is the same as state without output. Searching for the latter I found:



        tikzstyle{state without output}=  [circle,draw,minimum size=2.5em,every state]


        thus, state is the same as circle,draw,minimum size=2.5em,every state, with every state being empty by default:



        tikzstyle{every state}=           


        MWE:



        documentclass{scrartcl}
        usepackage{tikz}
        usetikzlibrary{automata}
        begin{document}

        begin{center}
        begin{tikzpicture}
        node[state] (1) {$1$};
        end{tikzpicture}
        end{center}

        begin{center}
        begin{tikzpicture}
        draw (1,1) node [circle,draw,minimum size=2.5em,every state] {$1$};
        end{tikzpicture}
        end{center}

        end{document}



        enter image description here






        Oh, and answering your second question, you can use more or less the same approach as in the package, but change the every node style. To change it globally you can use tikzset:



        tikzset{
        every node/.style = {
        circle,draw,minimum size=2.5em,every state
        }
        }


        or, for a single tikzpicture, you can pass this as an option:



        begin{tikzpicture}[
        every node/.style = {
        circle,draw,minimum size=2.5em,every state
        }
        ]
        draw (1,1) node {$1$};
        end{tikzpicture}





        share|improve this answer

























          up vote
          4
          down vote










          up vote
          4
          down vote









          When you draw a node [state], you are drawing a node [circle,draw,minimum size=2.5em,every state].



          How to figure this out:



          The usetikzlibrary{<library>} command loads a tikzlibrary<library>.code.tex file. Searching for the tikzlibraryautomata.code.tex file in my TeX distribution I found it at /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/.



          I opened the file and searched for state and found at the end of the file:



          tikzstyle{state}=                [state without output]


          so state is the same as state without output. Searching for the latter I found:



          tikzstyle{state without output}=  [circle,draw,minimum size=2.5em,every state]


          thus, state is the same as circle,draw,minimum size=2.5em,every state, with every state being empty by default:



          tikzstyle{every state}=           


          MWE:



          documentclass{scrartcl}
          usepackage{tikz}
          usetikzlibrary{automata}
          begin{document}

          begin{center}
          begin{tikzpicture}
          node[state] (1) {$1$};
          end{tikzpicture}
          end{center}

          begin{center}
          begin{tikzpicture}
          draw (1,1) node [circle,draw,minimum size=2.5em,every state] {$1$};
          end{tikzpicture}
          end{center}

          end{document}



          enter image description here






          Oh, and answering your second question, you can use more or less the same approach as in the package, but change the every node style. To change it globally you can use tikzset:



          tikzset{
          every node/.style = {
          circle,draw,minimum size=2.5em,every state
          }
          }


          or, for a single tikzpicture, you can pass this as an option:



          begin{tikzpicture}[
          every node/.style = {
          circle,draw,minimum size=2.5em,every state
          }
          ]
          draw (1,1) node {$1$};
          end{tikzpicture}





          share|improve this answer














          When you draw a node [state], you are drawing a node [circle,draw,minimum size=2.5em,every state].



          How to figure this out:



          The usetikzlibrary{<library>} command loads a tikzlibrary<library>.code.tex file. Searching for the tikzlibraryautomata.code.tex file in my TeX distribution I found it at /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/.



          I opened the file and searched for state and found at the end of the file:



          tikzstyle{state}=                [state without output]


          so state is the same as state without output. Searching for the latter I found:



          tikzstyle{state without output}=  [circle,draw,minimum size=2.5em,every state]


          thus, state is the same as circle,draw,minimum size=2.5em,every state, with every state being empty by default:



          tikzstyle{every state}=           


          MWE:



          documentclass{scrartcl}
          usepackage{tikz}
          usetikzlibrary{automata}
          begin{document}

          begin{center}
          begin{tikzpicture}
          node[state] (1) {$1$};
          end{tikzpicture}
          end{center}

          begin{center}
          begin{tikzpicture}
          draw (1,1) node [circle,draw,minimum size=2.5em,every state] {$1$};
          end{tikzpicture}
          end{center}

          end{document}



          enter image description here






          Oh, and answering your second question, you can use more or less the same approach as in the package, but change the every node style. To change it globally you can use tikzset:



          tikzset{
          every node/.style = {
          circle,draw,minimum size=2.5em,every state
          }
          }


          or, for a single tikzpicture, you can pass this as an option:



          begin{tikzpicture}[
          every node/.style = {
          circle,draw,minimum size=2.5em,every state
          }
          ]
          draw (1,1) node {$1$};
          end{tikzpicture}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          Phelype Oleinik

          20.4k54277




          20.4k54277






















              up vote
              2
              down vote













              Here is a minimum example to set the size of state to known value.



              documentclass[border=2mm]{standalone}
              usepackage{tikz}
              usetikzlibrary{automata}
              begin{document}
              begin{center}
              begin{tikzpicture}[every state/.style={minimum size=2cm},]
              node[state] (1) {$1$};
              end{tikzpicture}

              begin{tikzpicture}
              draw (1,1) node[circle,draw,minimum size=2cm] {$1$};
              end{tikzpicture}
              end{center}
              end{document}


              enter image description here






              share|improve this answer

























                up vote
                2
                down vote













                Here is a minimum example to set the size of state to known value.



                documentclass[border=2mm]{standalone}
                usepackage{tikz}
                usetikzlibrary{automata}
                begin{document}
                begin{center}
                begin{tikzpicture}[every state/.style={minimum size=2cm},]
                node[state] (1) {$1$};
                end{tikzpicture}

                begin{tikzpicture}
                draw (1,1) node[circle,draw,minimum size=2cm] {$1$};
                end{tikzpicture}
                end{center}
                end{document}


                enter image description here






                share|improve this answer























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Here is a minimum example to set the size of state to known value.



                  documentclass[border=2mm]{standalone}
                  usepackage{tikz}
                  usetikzlibrary{automata}
                  begin{document}
                  begin{center}
                  begin{tikzpicture}[every state/.style={minimum size=2cm},]
                  node[state] (1) {$1$};
                  end{tikzpicture}

                  begin{tikzpicture}
                  draw (1,1) node[circle,draw,minimum size=2cm] {$1$};
                  end{tikzpicture}
                  end{center}
                  end{document}


                  enter image description here






                  share|improve this answer












                  Here is a minimum example to set the size of state to known value.



                  documentclass[border=2mm]{standalone}
                  usepackage{tikz}
                  usetikzlibrary{automata}
                  begin{document}
                  begin{center}
                  begin{tikzpicture}[every state/.style={minimum size=2cm},]
                  node[state] (1) {$1$};
                  end{tikzpicture}

                  begin{tikzpicture}
                  draw (1,1) node[circle,draw,minimum size=2cm] {$1$};
                  end{tikzpicture}
                  end{center}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 days ago









                  nidhin

                  1,530820




                  1,530820






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460730%2ftwo-questions-about-nodes-at-tikz%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

                      If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                      Alcedinidae

                      Can an atomic nucleus contain both particles and antiparticles? [duplicate]