Two questions about nodes at Tikz

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











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
usepackageamsmath
usepackageamsthm
usepackagefontspec

makeatletter

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


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

usepackagetikz
usetikzlibraryautomata

makeatother

usepackagepolyglossia
setdefaultlanguagehebrew
setotherlanguageenglish
begindocument
begincenter
begintikzpicture
node[state] (1) $1$;
endtikzpicture
parendcenter

begincenter
begintikzpicture
draw (1,1) node[circle,draw] $1$;
endtikzpicture
parendcenter
enddocument


Thank you!










share|improve this question























  • Add a MWE.
    – nidhin
    Nov 19 at 11:40










  • I added it! Thank you!
    – heblyx
    Nov 19 at 12:20











  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    Nov 19 at 13:09










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    Nov 19 at 13:29














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
usepackageamsmath
usepackageamsthm
usepackagefontspec

makeatletter

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


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

usepackagetikz
usetikzlibraryautomata

makeatother

usepackagepolyglossia
setdefaultlanguagehebrew
setotherlanguageenglish
begindocument
begincenter
begintikzpicture
node[state] (1) $1$;
endtikzpicture
parendcenter

begincenter
begintikzpicture
draw (1,1) node[circle,draw] $1$;
endtikzpicture
parendcenter
enddocument


Thank you!










share|improve this question























  • Add a MWE.
    – nidhin
    Nov 19 at 11:40










  • I added it! Thank you!
    – heblyx
    Nov 19 at 12:20











  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    Nov 19 at 13:09










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    Nov 19 at 13:29












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
usepackageamsmath
usepackageamsthm
usepackagefontspec

makeatletter

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


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

usepackagetikz
usetikzlibraryautomata

makeatother

usepackagepolyglossia
setdefaultlanguagehebrew
setotherlanguageenglish
begindocument
begincenter
begintikzpicture
node[state] (1) $1$;
endtikzpicture
parendcenter

begincenter
begintikzpicture
draw (1,1) node[circle,draw] $1$;
endtikzpicture
parendcenter
enddocument


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
usepackageamsmath
usepackageamsthm
usepackagefontspec

makeatletter

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


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

usepackagetikz
usetikzlibraryautomata

makeatother

usepackagepolyglossia
setdefaultlanguagehebrew
setotherlanguageenglish
begindocument
begincenter
begintikzpicture
node[state] (1) $1$;
endtikzpicture
parendcenter

begincenter
begintikzpicture
draw (1,1) node[circle,draw] $1$;
endtikzpicture
parendcenter
enddocument


Thank you!







tikz-pgf automata






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 13:29

























asked Nov 19 at 11:36









heblyx

781818




781818











  • Add a MWE.
    – nidhin
    Nov 19 at 11:40










  • I added it! Thank you!
    – heblyx
    Nov 19 at 12:20











  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    Nov 19 at 13:09










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    Nov 19 at 13:29
















  • Add a MWE.
    – nidhin
    Nov 19 at 11:40










  • I added it! Thank you!
    – heblyx
    Nov 19 at 12:20











  • @heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
    – Sigur
    Nov 19 at 13:09










  • @Sigur, I edit my MWE, now it's better?
    – heblyx
    Nov 19 at 13:29















Add a MWE.
– nidhin
Nov 19 at 11:40




Add a MWE.
– nidhin
Nov 19 at 11:40












I added it! Thank you!
– heblyx
Nov 19 at 12:20





I added it! Thank you!
– heblyx
Nov 19 at 12:20













@heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
– Sigur
Nov 19 at 13:09




@heblyx, your code contais a lot of non related commands, including font changing. It is not Minimal (MWE).
– Sigur
Nov 19 at 13:09












@Sigur, I edit my MWE, now it's better?
– heblyx
Nov 19 at 13:29




@Sigur, I edit my MWE, now it's better?
– heblyx
Nov 19 at 13:29










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
usetikzlibraryautomata
begindocument
begintikzpicture
node[state] (1) $1$;
endtikzpicture

begintikzpicture[every node/.append style=minimum width=2.5em]
draw (1,1) node[circle,draw] $1$;
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • Ooh, much simpler certainly :D
    – Phelype Oleinik
    Nov 19 at 13:47










  • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
    – marmot
    Nov 19 at 13:52










  • 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
    Nov 19 at 15:42

















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:



tikzstylestate= [state without output]


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



tikzstylestate 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:



tikzstyleevery state= 


MWE:



documentclassscrartcl
usepackagetikz
usetikzlibraryautomata
begindocument

begincenter
begintikzpicture
node[state] (1) $1$;
endtikzpicture
endcenter

begincenter
begintikzpicture
draw (1,1) node [circle,draw,minimum size=2.5em,every state] $1$;
endtikzpicture
endcenter

enddocument



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:



begintikzpicture[
every node/.style =
circle,draw,minimum size=2.5em,every state

]
draw (1,1) node $1$;
endtikzpicture





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
    usepackagetikz
    usetikzlibraryautomata
    begindocument
    begincenter
    begintikzpicture[every state/.style=minimum size=2cm,]
    node[state] (1) $1$;
    endtikzpicture

    begintikzpicture
    draw (1,1) node[circle,draw,minimum size=2cm] $1$;
    endtikzpicture
    endcenter
    enddocument


    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
      usetikzlibraryautomata
      begindocument
      begintikzpicture
      node[state] (1) $1$;
      endtikzpicture

      begintikzpicture[every node/.append style=minimum width=2.5em]
      draw (1,1) node[circle,draw] $1$;
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer




















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        Nov 19 at 13:47










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        Nov 19 at 13:52










      • 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
        Nov 19 at 15:42














      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
      usetikzlibraryautomata
      begindocument
      begintikzpicture
      node[state] (1) $1$;
      endtikzpicture

      begintikzpicture[every node/.append style=minimum width=2.5em]
      draw (1,1) node[circle,draw] $1$;
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer




















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        Nov 19 at 13:47










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        Nov 19 at 13:52










      • 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
        Nov 19 at 15:42












      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
      usetikzlibraryautomata
      begindocument
      begintikzpicture
      node[state] (1) $1$;
      endtikzpicture

      begintikzpicture[every node/.append style=minimum width=2.5em]
      draw (1,1) node[circle,draw] $1$;
      endtikzpicture
      enddocument


      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
      usetikzlibraryautomata
      begindocument
      begintikzpicture
      node[state] (1) $1$;
      endtikzpicture

      begintikzpicture[every node/.append style=minimum width=2.5em]
      draw (1,1) node[circle,draw] $1$;
      endtikzpicture
      enddocument


      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 19 at 13:46









      marmot

      77.5k487164




      77.5k487164











      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        Nov 19 at 13:47










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        Nov 19 at 13:52










      • 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
        Nov 19 at 15:42
















      • Ooh, much simpler certainly :D
        – Phelype Oleinik
        Nov 19 at 13:47










      • @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
        – marmot
        Nov 19 at 13:52










      • 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
        Nov 19 at 15:42















      Ooh, much simpler certainly :D
      – Phelype Oleinik
      Nov 19 at 13:47




      Ooh, much simpler certainly :D
      – Phelype Oleinik
      Nov 19 at 13:47












      @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
      – marmot
      Nov 19 at 13:52




      @PhelypeOleinik I don't know who of us gave the "correct" answer, if any. Let's see. ;-)
      – marmot
      Nov 19 at 13:52












      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
      Nov 19 at 15:42




      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
      Nov 19 at 15:42










      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:



      tikzstylestate= [state without output]


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



      tikzstylestate 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:



      tikzstyleevery state= 


      MWE:



      documentclassscrartcl
      usepackagetikz
      usetikzlibraryautomata
      begindocument

      begincenter
      begintikzpicture
      node[state] (1) $1$;
      endtikzpicture
      endcenter

      begincenter
      begintikzpicture
      draw (1,1) node [circle,draw,minimum size=2.5em,every state] $1$;
      endtikzpicture
      endcenter

      enddocument



      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:



      begintikzpicture[
      every node/.style =
      circle,draw,minimum size=2.5em,every state

      ]
      draw (1,1) node $1$;
      endtikzpicture





      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:



        tikzstylestate= [state without output]


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



        tikzstylestate 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:



        tikzstyleevery state= 


        MWE:



        documentclassscrartcl
        usepackagetikz
        usetikzlibraryautomata
        begindocument

        begincenter
        begintikzpicture
        node[state] (1) $1$;
        endtikzpicture
        endcenter

        begincenter
        begintikzpicture
        draw (1,1) node [circle,draw,minimum size=2.5em,every state] $1$;
        endtikzpicture
        endcenter

        enddocument



        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:



        begintikzpicture[
        every node/.style =
        circle,draw,minimum size=2.5em,every state

        ]
        draw (1,1) node $1$;
        endtikzpicture





        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:



          tikzstylestate= [state without output]


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



          tikzstylestate 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:



          tikzstyleevery state= 


          MWE:



          documentclassscrartcl
          usepackagetikz
          usetikzlibraryautomata
          begindocument

          begincenter
          begintikzpicture
          node[state] (1) $1$;
          endtikzpicture
          endcenter

          begincenter
          begintikzpicture
          draw (1,1) node [circle,draw,minimum size=2.5em,every state] $1$;
          endtikzpicture
          endcenter

          enddocument



          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:



          begintikzpicture[
          every node/.style =
          circle,draw,minimum size=2.5em,every state

          ]
          draw (1,1) node $1$;
          endtikzpicture





          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:



          tikzstylestate= [state without output]


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



          tikzstylestate 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:



          tikzstyleevery state= 


          MWE:



          documentclassscrartcl
          usepackagetikz
          usetikzlibraryautomata
          begindocument

          begincenter
          begintikzpicture
          node[state] (1) $1$;
          endtikzpicture
          endcenter

          begincenter
          begintikzpicture
          draw (1,1) node [circle,draw,minimum size=2.5em,every state] $1$;
          endtikzpicture
          endcenter

          enddocument



          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:



          begintikzpicture[
          every node/.style =
          circle,draw,minimum size=2.5em,every state

          ]
          draw (1,1) node $1$;
          endtikzpicture






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 19 at 13:45

























          answered Nov 19 at 13:39









          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
              usepackagetikz
              usetikzlibraryautomata
              begindocument
              begincenter
              begintikzpicture[every state/.style=minimum size=2cm,]
              node[state] (1) $1$;
              endtikzpicture

              begintikzpicture
              draw (1,1) node[circle,draw,minimum size=2cm] $1$;
              endtikzpicture
              endcenter
              enddocument


              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
                usepackagetikz
                usetikzlibraryautomata
                begindocument
                begincenter
                begintikzpicture[every state/.style=minimum size=2cm,]
                node[state] (1) $1$;
                endtikzpicture

                begintikzpicture
                draw (1,1) node[circle,draw,minimum size=2cm] $1$;
                endtikzpicture
                endcenter
                enddocument


                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
                  usepackagetikz
                  usetikzlibraryautomata
                  begindocument
                  begincenter
                  begintikzpicture[every state/.style=minimum size=2cm,]
                  node[state] (1) $1$;
                  endtikzpicture

                  begintikzpicture
                  draw (1,1) node[circle,draw,minimum size=2cm] $1$;
                  endtikzpicture
                  endcenter
                  enddocument


                  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
                  usepackagetikz
                  usetikzlibraryautomata
                  begindocument
                  begincenter
                  begintikzpicture[every state/.style=minimum size=2cm,]
                  node[state] (1) $1$;
                  endtikzpicture

                  begintikzpicture
                  draw (1,1) node[circle,draw,minimum size=2cm] $1$;
                  endtikzpicture
                  endcenter
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 19 at 13:54









                  nidhin

                  1,700920




                  1,700920



























                       

                      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

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay