Nested ellipses in tikzpicture: Chomsky hierarchy The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Do we need more moderators?Painting an ellipse that fits a row of node but is not narrow and longRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Help understanding the coordinate system used in tikzInput/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to draw a square and its diagonals with arrows?

Can each chord in a progression create its own key?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Why can't devices on different VLANs, but on the same subnet, communicate?

Do warforged have souls?

Solving overdetermined system by QR decomposition

Nested ellipses in tikzpicture: Chomsky hierarchy

How do you keep chess fun when your opponent constantly beats you?

Using `min_active_rowversion` for global temporary tables

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Homework question about an engine pulling a train

Why doesn't shell automatically fix "useless use of cat"?

Is this wall load bearing? Blueprints and photos attached

how can a perfect fourth interval be considered either consonant or dissonant?

How to support a colleague who finds meetings extremely tiring?

Do ℕ, mathbbN, BbbN, symbbN effectively differ, and is there a "canonical" specification of the naturals?

Using dividends to reduce short term capital gains?

Is every episode of "Where are my Pants?" identical?

Why doesn't a hydraulic lever violate conservation of energy?

Mortgage adviser recommends a longer term than necessary combined with overpayments

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

How to make Illustrator type tool selection automatically adapt with text length

Could an empire control the whole planet with today's comunication methods?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?



Nested ellipses in tikzpicture: Chomsky hierarchy



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Do we need more moderators?Painting an ellipse that fits a row of node but is not narrow and longRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Help understanding the coordinate system used in tikzInput/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to draw a square and its diagonals with arrows?










2















I'd like to draw the Chomsky hierarchy using tikz, similar to:



Chomsky hierarchy



I have the following so far, for a subset of the hierarchy:



documentclass[11pt]article
usepackagetikz
usetikzlibraryshapes,arrows,calc
% ----------

begindocument
begintikzpicture
tikzstylevenn = [ellipse, minimum height=3em, minimum width=12em, draw]
node [venn] (cs) at (0, $re.south$) Context Sensitive;
node [venn, minimum height=10em] (re) at (0,0) Recursively Enumerable;
endtikzpicture
enddocument


How can I:



  1. Anchor all of the shapes to the same point in the centre at the bottom of the diagram?


  2. Align the text to the top of each ellipse - is shift appropriate here?










share|improve this question


























    2















    I'd like to draw the Chomsky hierarchy using tikz, similar to:



    Chomsky hierarchy



    I have the following so far, for a subset of the hierarchy:



    documentclass[11pt]article
    usepackagetikz
    usetikzlibraryshapes,arrows,calc
    % ----------

    begindocument
    begintikzpicture
    tikzstylevenn = [ellipse, minimum height=3em, minimum width=12em, draw]
    node [venn] (cs) at (0, $re.south$) Context Sensitive;
    node [venn, minimum height=10em] (re) at (0,0) Recursively Enumerable;
    endtikzpicture
    enddocument


    How can I:



    1. Anchor all of the shapes to the same point in the centre at the bottom of the diagram?


    2. Align the text to the top of each ellipse - is shift appropriate here?










    share|improve this question
























      2












      2








      2








      I'd like to draw the Chomsky hierarchy using tikz, similar to:



      Chomsky hierarchy



      I have the following so far, for a subset of the hierarchy:



      documentclass[11pt]article
      usepackagetikz
      usetikzlibraryshapes,arrows,calc
      % ----------

      begindocument
      begintikzpicture
      tikzstylevenn = [ellipse, minimum height=3em, minimum width=12em, draw]
      node [venn] (cs) at (0, $re.south$) Context Sensitive;
      node [venn, minimum height=10em] (re) at (0,0) Recursively Enumerable;
      endtikzpicture
      enddocument


      How can I:



      1. Anchor all of the shapes to the same point in the centre at the bottom of the diagram?


      2. Align the text to the top of each ellipse - is shift appropriate here?










      share|improve this question














      I'd like to draw the Chomsky hierarchy using tikz, similar to:



      Chomsky hierarchy



      I have the following so far, for a subset of the hierarchy:



      documentclass[11pt]article
      usepackagetikz
      usetikzlibraryshapes,arrows,calc
      % ----------

      begindocument
      begintikzpicture
      tikzstylevenn = [ellipse, minimum height=3em, minimum width=12em, draw]
      node [venn] (cs) at (0, $re.south$) Context Sensitive;
      node [venn, minimum height=10em] (re) at (0,0) Recursively Enumerable;
      endtikzpicture
      enddocument


      How can I:



      1. Anchor all of the shapes to the same point in the centre at the bottom of the diagram?


      2. Align the text to the top of each ellipse - is shift appropriate here?







      tikz-pgf shapes






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Adam WilliamsAdam Williams

      1996




      1996




















          2 Answers
          2






          active

          oldest

          votes


















          2














          This is not a perfect solution, but it fits this particular case: write words above another node.



          documentclass[tikz]standalone
          usetikzlibraryshapes
          begindocument
          begintikzpicture
          node[above,ellipse,minimum height=2em,minimum width=4em,draw] (a) regular;
          node[above,ellipse,minimum height=4em,minimum width=8em,draw] (b) ;
          node[above,ellipse,minimum height=6em,minimum width=12em,draw] (c) ;
          node[above,ellipse,minimum height=8em,minimum width=16em,draw] (d) ;
          path (a.north) node[above] context-free
          (b.north) node[above] context-sensitive
          (c.north) node[above] recursively enumerable;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer






























            2














            Naively one may think this should be simple with fit but unfortunately ellipse fits are not tight by default. (See here for a tighter fit, but my naive attempt to use it did not yield the desired results.) So one may do it differently. Note that this is not absolutely fool-proof but can be made so with more efforts. However, for the case at hand it works.



            documentclass[11pt]article
            usepackagetikz
            usetikzlibraryshapes.geometric,calc
            begindocument
            begintikzpicture[font=sffamily]
            foreach X [count=Y,remember=Y as LastY] in
            regular,context free,context sensitive,recursively enumerable
            ifnumY=1
            node[ellipse,draw,outer sep=0pt] (F-Y) X;
            else
            node[anchor=south] (T-Y) at (F-LastY.north) X;
            path let p1=($([yshift=1ex]T-Y.north)-(F-LastY.south)$),
            p2=($(F-1.east)-(F-1.west)$),p3=($(F-1.north)-(F-1.south)$)
            in ($([yshift=1ex]T-Y.north)!0.5!(F-LastY.south)$)
            node[minimum height=y1,minimum width=y1*x2/y3,
            draw,ellipse,inner sep=0pt] (F-Y);
            fi
            endtikzpicture
            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',
              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%2f484541%2fnested-ellipses-in-tikzpicture-chomsky-hierarchy%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              This is not a perfect solution, but it fits this particular case: write words above another node.



              documentclass[tikz]standalone
              usetikzlibraryshapes
              begindocument
              begintikzpicture
              node[above,ellipse,minimum height=2em,minimum width=4em,draw] (a) regular;
              node[above,ellipse,minimum height=4em,minimum width=8em,draw] (b) ;
              node[above,ellipse,minimum height=6em,minimum width=12em,draw] (c) ;
              node[above,ellipse,minimum height=8em,minimum width=16em,draw] (d) ;
              path (a.north) node[above] context-free
              (b.north) node[above] context-sensitive
              (c.north) node[above] recursively enumerable;
              endtikzpicture
              enddocument


              enter image description here






              share|improve this answer



























                2














                This is not a perfect solution, but it fits this particular case: write words above another node.



                documentclass[tikz]standalone
                usetikzlibraryshapes
                begindocument
                begintikzpicture
                node[above,ellipse,minimum height=2em,minimum width=4em,draw] (a) regular;
                node[above,ellipse,minimum height=4em,minimum width=8em,draw] (b) ;
                node[above,ellipse,minimum height=6em,minimum width=12em,draw] (c) ;
                node[above,ellipse,minimum height=8em,minimum width=16em,draw] (d) ;
                path (a.north) node[above] context-free
                (b.north) node[above] context-sensitive
                (c.north) node[above] recursively enumerable;
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer

























                  2












                  2








                  2







                  This is not a perfect solution, but it fits this particular case: write words above another node.



                  documentclass[tikz]standalone
                  usetikzlibraryshapes
                  begindocument
                  begintikzpicture
                  node[above,ellipse,minimum height=2em,minimum width=4em,draw] (a) regular;
                  node[above,ellipse,minimum height=4em,minimum width=8em,draw] (b) ;
                  node[above,ellipse,minimum height=6em,minimum width=12em,draw] (c) ;
                  node[above,ellipse,minimum height=8em,minimum width=16em,draw] (d) ;
                  path (a.north) node[above] context-free
                  (b.north) node[above] context-sensitive
                  (c.north) node[above] recursively enumerable;
                  endtikzpicture
                  enddocument


                  enter image description here






                  share|improve this answer













                  This is not a perfect solution, but it fits this particular case: write words above another node.



                  documentclass[tikz]standalone
                  usetikzlibraryshapes
                  begindocument
                  begintikzpicture
                  node[above,ellipse,minimum height=2em,minimum width=4em,draw] (a) regular;
                  node[above,ellipse,minimum height=4em,minimum width=8em,draw] (b) ;
                  node[above,ellipse,minimum height=6em,minimum width=12em,draw] (c) ;
                  node[above,ellipse,minimum height=8em,minimum width=16em,draw] (d) ;
                  path (a.north) node[above] context-free
                  (b.north) node[above] context-sensitive
                  (c.north) node[above] recursively enumerable;
                  endtikzpicture
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 3 hours ago









                  JouleVJouleV

                  12.8k22663




                  12.8k22663





















                      2














                      Naively one may think this should be simple with fit but unfortunately ellipse fits are not tight by default. (See here for a tighter fit, but my naive attempt to use it did not yield the desired results.) So one may do it differently. Note that this is not absolutely fool-proof but can be made so with more efforts. However, for the case at hand it works.



                      documentclass[11pt]article
                      usepackagetikz
                      usetikzlibraryshapes.geometric,calc
                      begindocument
                      begintikzpicture[font=sffamily]
                      foreach X [count=Y,remember=Y as LastY] in
                      regular,context free,context sensitive,recursively enumerable
                      ifnumY=1
                      node[ellipse,draw,outer sep=0pt] (F-Y) X;
                      else
                      node[anchor=south] (T-Y) at (F-LastY.north) X;
                      path let p1=($([yshift=1ex]T-Y.north)-(F-LastY.south)$),
                      p2=($(F-1.east)-(F-1.west)$),p3=($(F-1.north)-(F-1.south)$)
                      in ($([yshift=1ex]T-Y.north)!0.5!(F-LastY.south)$)
                      node[minimum height=y1,minimum width=y1*x2/y3,
                      draw,ellipse,inner sep=0pt] (F-Y);
                      fi
                      endtikzpicture
                      enddocument


                      enter image description here






                      share|improve this answer





























                        2














                        Naively one may think this should be simple with fit but unfortunately ellipse fits are not tight by default. (See here for a tighter fit, but my naive attempt to use it did not yield the desired results.) So one may do it differently. Note that this is not absolutely fool-proof but can be made so with more efforts. However, for the case at hand it works.



                        documentclass[11pt]article
                        usepackagetikz
                        usetikzlibraryshapes.geometric,calc
                        begindocument
                        begintikzpicture[font=sffamily]
                        foreach X [count=Y,remember=Y as LastY] in
                        regular,context free,context sensitive,recursively enumerable
                        ifnumY=1
                        node[ellipse,draw,outer sep=0pt] (F-Y) X;
                        else
                        node[anchor=south] (T-Y) at (F-LastY.north) X;
                        path let p1=($([yshift=1ex]T-Y.north)-(F-LastY.south)$),
                        p2=($(F-1.east)-(F-1.west)$),p3=($(F-1.north)-(F-1.south)$)
                        in ($([yshift=1ex]T-Y.north)!0.5!(F-LastY.south)$)
                        node[minimum height=y1,minimum width=y1*x2/y3,
                        draw,ellipse,inner sep=0pt] (F-Y);
                        fi
                        endtikzpicture
                        enddocument


                        enter image description here






                        share|improve this answer



























                          2












                          2








                          2







                          Naively one may think this should be simple with fit but unfortunately ellipse fits are not tight by default. (See here for a tighter fit, but my naive attempt to use it did not yield the desired results.) So one may do it differently. Note that this is not absolutely fool-proof but can be made so with more efforts. However, for the case at hand it works.



                          documentclass[11pt]article
                          usepackagetikz
                          usetikzlibraryshapes.geometric,calc
                          begindocument
                          begintikzpicture[font=sffamily]
                          foreach X [count=Y,remember=Y as LastY] in
                          regular,context free,context sensitive,recursively enumerable
                          ifnumY=1
                          node[ellipse,draw,outer sep=0pt] (F-Y) X;
                          else
                          node[anchor=south] (T-Y) at (F-LastY.north) X;
                          path let p1=($([yshift=1ex]T-Y.north)-(F-LastY.south)$),
                          p2=($(F-1.east)-(F-1.west)$),p3=($(F-1.north)-(F-1.south)$)
                          in ($([yshift=1ex]T-Y.north)!0.5!(F-LastY.south)$)
                          node[minimum height=y1,minimum width=y1*x2/y3,
                          draw,ellipse,inner sep=0pt] (F-Y);
                          fi
                          endtikzpicture
                          enddocument


                          enter image description here






                          share|improve this answer















                          Naively one may think this should be simple with fit but unfortunately ellipse fits are not tight by default. (See here for a tighter fit, but my naive attempt to use it did not yield the desired results.) So one may do it differently. Note that this is not absolutely fool-proof but can be made so with more efforts. However, for the case at hand it works.



                          documentclass[11pt]article
                          usepackagetikz
                          usetikzlibraryshapes.geometric,calc
                          begindocument
                          begintikzpicture[font=sffamily]
                          foreach X [count=Y,remember=Y as LastY] in
                          regular,context free,context sensitive,recursively enumerable
                          ifnumY=1
                          node[ellipse,draw,outer sep=0pt] (F-Y) X;
                          else
                          node[anchor=south] (T-Y) at (F-LastY.north) X;
                          path let p1=($([yshift=1ex]T-Y.north)-(F-LastY.south)$),
                          p2=($(F-1.east)-(F-1.west)$),p3=($(F-1.north)-(F-1.south)$)
                          in ($([yshift=1ex]T-Y.north)!0.5!(F-LastY.south)$)
                          node[minimum height=y1,minimum width=y1*x2/y3,
                          draw,ellipse,inner sep=0pt] (F-Y);
                          fi
                          endtikzpicture
                          enddocument


                          enter image description here







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 26 mins ago

























                          answered 2 hours ago









                          marmotmarmot

                          117k5150283




                          117k5150283



























                              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%2f484541%2fnested-ellipses-in-tikzpicture-chomsky-hierarchy%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

                              Era Viking Índice Início da Era Viquingue | Cotidiano | Sociedade | Língua | Religião | A arte | As primeiras cidades | As viagens dos viquingues | Viquingues do Oeste e Leste | Fim da Era Viquingue | Fontes históricas | Referências Bibliografia | Ligações externas | Menu de navegação«Sverige då!»«Handel I vikingetid»«O que é Nórdico Antigo»Mito, magia e religião na volsunga saga Um olhar sobre a trajetória mítica do herói sigurd«Bonden var den verklige vikingen»«Vikingatiden»«Vikingatiden»«Vinland»«Guerreiras de Óðinn: As Valkyrjor na Mitologia Viking»1519-9053«Esculpindo símbolos e seres: A arte viking em pedras rúnicas»1679-9313Historia - Tema: VikingarnaAventura e Magia no Mundo das Sagas IslandesasEra Vikinge

                              What's the metal clinking sound at the end of credits in Avengers: Endgame?What makes Thanos so strong in Avengers: Endgame?Who is the character that appears at the end of Endgame?What happens to Mjolnir (Thor's hammer) at the end of Endgame?The People's Ages in Avengers: EndgameWhat did Nebula do in Avengers: Endgame?Messing with time in the Avengers: Endgame climaxAvengers: Endgame timelineWhat are the time-travel rules in Avengers Endgame?Why use this song in Avengers: Endgame Opening Logo Sequence?Peggy's age in Avengers Endgame

                              Are there legal definitions of ethnicities/races? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Legal definitions in the United StatesAre there truly legal limits on US interest rates?Are gender identity and sexual orientation federally protected?Why is there an apparent legal bias against digital services?What limits are there to the powers of individual judges in the United States legal system?Are women only scholarships legal under Irish / EU law?Is the term “race” defined by Public Law enacted by Congress of the United StatesIs there a legal definition of race in the US?Neighbors are spying for landlord on Renters is it legal?Are Protected Classes Bi-directional?