Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)












3















I'm new here and I only recently started to use LaTeX.



This is what I'm trying to achieve:



enter image description here



Notice the vertical lines and the oblique lines. Vertical lines represent headedness.



This is what I'm able to do:



enter image description here



This is the code:



documentclass[12pt]{article}
usepackage[usenames]{color} %used for font color
usepackage{amssymb} %maths
usepackage{amsmath} %maths
usepackage[utf8]{inputenc} %useful to type directly diacritic characters
usepackage{tipa}
usepackage{tikz-qtree}

begin{tikzpicture}[baseline]
tikzset{frontier/.style={distance from root=100pt}}
Tree
[.Pwd [.Ft [.$sigma$ [.æ ] ] [.$sigma$ [.l ] [.textipa{textschwa} ] ] ] [.Ft [.$sigma$ [.b ] [. æ ] ] [.$sigma$ [.m ] [.textipa{textschwa} ]] ] ]

end{tikzpicture}
end{document}









share|improve this question







New contributor




Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    3















    I'm new here and I only recently started to use LaTeX.



    This is what I'm trying to achieve:



    enter image description here



    Notice the vertical lines and the oblique lines. Vertical lines represent headedness.



    This is what I'm able to do:



    enter image description here



    This is the code:



    documentclass[12pt]{article}
    usepackage[usenames]{color} %used for font color
    usepackage{amssymb} %maths
    usepackage{amsmath} %maths
    usepackage[utf8]{inputenc} %useful to type directly diacritic characters
    usepackage{tipa}
    usepackage{tikz-qtree}

    begin{tikzpicture}[baseline]
    tikzset{frontier/.style={distance from root=100pt}}
    Tree
    [.Pwd [.Ft [.$sigma$ [.æ ] ] [.$sigma$ [.l ] [.textipa{textschwa} ] ] ] [.Ft [.$sigma$ [.b ] [. æ ] ] [.$sigma$ [.m ] [.textipa{textschwa} ]] ] ]

    end{tikzpicture}
    end{document}









    share|improve this question







    New contributor




    Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      3












      3








      3








      I'm new here and I only recently started to use LaTeX.



      This is what I'm trying to achieve:



      enter image description here



      Notice the vertical lines and the oblique lines. Vertical lines represent headedness.



      This is what I'm able to do:



      enter image description here



      This is the code:



      documentclass[12pt]{article}
      usepackage[usenames]{color} %used for font color
      usepackage{amssymb} %maths
      usepackage{amsmath} %maths
      usepackage[utf8]{inputenc} %useful to type directly diacritic characters
      usepackage{tipa}
      usepackage{tikz-qtree}

      begin{tikzpicture}[baseline]
      tikzset{frontier/.style={distance from root=100pt}}
      Tree
      [.Pwd [.Ft [.$sigma$ [.æ ] ] [.$sigma$ [.l ] [.textipa{textschwa} ] ] ] [.Ft [.$sigma$ [.b ] [. æ ] ] [.$sigma$ [.m ] [.textipa{textschwa} ]] ] ]

      end{tikzpicture}
      end{document}









      share|improve this question







      New contributor




      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm new here and I only recently started to use LaTeX.



      This is what I'm trying to achieve:



      enter image description here



      Notice the vertical lines and the oblique lines. Vertical lines represent headedness.



      This is what I'm able to do:



      enter image description here



      This is the code:



      documentclass[12pt]{article}
      usepackage[usenames]{color} %used for font color
      usepackage{amssymb} %maths
      usepackage{amsmath} %maths
      usepackage[utf8]{inputenc} %useful to type directly diacritic characters
      usepackage{tipa}
      usepackage{tikz-qtree}

      begin{tikzpicture}[baseline]
      tikzset{frontier/.style={distance from root=100pt}}
      Tree
      [.Pwd [.Ft [.$sigma$ [.æ ] ] [.$sigma$ [.l ] [.textipa{textschwa} ] ] ] [.Ft [.$sigma$ [.b ] [. æ ] ] [.$sigma$ [.m ] [.textipa{textschwa} ]] ] ]

      end{tikzpicture}
      end{document}






      tikz-qtree tipa qtree






      share|improve this question







      New contributor




      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      ScharlScharl

      183




      183




      New contributor




      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Scharl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          2














          If you consider switching to forest, then you only need to set the appropriate calign keys. (forest has IMHO many advantages over tikz-qtree and is based on tikz, so you can use all tikz stuff, too.)



          documentclass{article}
          usepackage[edges]{forest}
          usepackage{tipa}
          begin{document}
          begin{forest}
          for tree={parent anchor=south,where level={1}{calign=first}{calign=last}}
          [Pwd
          [Ft
          [$sigma$
          [ae ]
          ]
          [$sigma$
          [l ]
          [textipa{textschwa}
          ]
          ]
          ]
          [Ft
          [$sigma$
          [b ]
          [ae ]
          ]
          [$sigma$
          [m ]
          [textipa{textschwa}
          ]
          ]
          ]
          ]
          end{forest}
          end{document}


          enter image description here






          share|improve this answer


























          • Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

            – Scharl
            2 hours ago











          • @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

            – marmot
            2 hours ago











          • Thank you so much it looks wonderful!

            – Scharl
            2 hours ago



















          1














          It is not so difficult with TIkZ's matrix:



          documentclass[tikz]{standalone}
          usepackage{tipa}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}
          matrix (m) [matrix of nodes,nodes={minimum width=.8cm}] {%
          & & & & PWd & &\[2em]
          Ft & & & & Ft & &\[2em]
          $sigma$ & & $sigma$ & & $sigma$ & & $sigma$\[2em]
          `ae & l & textipa{textschwa} & b & 'ae & m & textipa{textschwa}\
          };
          draw (m-2-1.north) -- (m-1-5.south) -- (m-2-5.north);
          draw (m-3-1.north) -- (m-2-1.south) -- (m-3-3.north);
          draw (m-3-5.north) -- (m-2-5.south) -- (m-3-7.north);
          draw (m-4-1.north) -- (m-3-1.south);
          draw (m-4-2.north) -- (m-3-3.south) -- (m-4-3.north);
          draw (m-4-4.north) -- (m-3-5.south) -- (m-4-5.north);
          draw (m-4-6.north) -- (m-3-7.south) -- (m-4-7.north);
          end{tikzpicture}
          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',
            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
            });


            }
            });






            Scharl is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484534%2fdrawing-vertical-oblique-lines-in-metrical-tree-tikz-qtree-tipa%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














            If you consider switching to forest, then you only need to set the appropriate calign keys. (forest has IMHO many advantages over tikz-qtree and is based on tikz, so you can use all tikz stuff, too.)



            documentclass{article}
            usepackage[edges]{forest}
            usepackage{tipa}
            begin{document}
            begin{forest}
            for tree={parent anchor=south,where level={1}{calign=first}{calign=last}}
            [Pwd
            [Ft
            [$sigma$
            [ae ]
            ]
            [$sigma$
            [l ]
            [textipa{textschwa}
            ]
            ]
            ]
            [Ft
            [$sigma$
            [b ]
            [ae ]
            ]
            [$sigma$
            [m ]
            [textipa{textschwa}
            ]
            ]
            ]
            ]
            end{forest}
            end{document}


            enter image description here






            share|improve this answer


























            • Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

              – Scharl
              2 hours ago











            • @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

              – marmot
              2 hours ago











            • Thank you so much it looks wonderful!

              – Scharl
              2 hours ago
















            2














            If you consider switching to forest, then you only need to set the appropriate calign keys. (forest has IMHO many advantages over tikz-qtree and is based on tikz, so you can use all tikz stuff, too.)



            documentclass{article}
            usepackage[edges]{forest}
            usepackage{tipa}
            begin{document}
            begin{forest}
            for tree={parent anchor=south,where level={1}{calign=first}{calign=last}}
            [Pwd
            [Ft
            [$sigma$
            [ae ]
            ]
            [$sigma$
            [l ]
            [textipa{textschwa}
            ]
            ]
            ]
            [Ft
            [$sigma$
            [b ]
            [ae ]
            ]
            [$sigma$
            [m ]
            [textipa{textschwa}
            ]
            ]
            ]
            ]
            end{forest}
            end{document}


            enter image description here






            share|improve this answer


























            • Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

              – Scharl
              2 hours ago











            • @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

              – marmot
              2 hours ago











            • Thank you so much it looks wonderful!

              – Scharl
              2 hours ago














            2












            2








            2







            If you consider switching to forest, then you only need to set the appropriate calign keys. (forest has IMHO many advantages over tikz-qtree and is based on tikz, so you can use all tikz stuff, too.)



            documentclass{article}
            usepackage[edges]{forest}
            usepackage{tipa}
            begin{document}
            begin{forest}
            for tree={parent anchor=south,where level={1}{calign=first}{calign=last}}
            [Pwd
            [Ft
            [$sigma$
            [ae ]
            ]
            [$sigma$
            [l ]
            [textipa{textschwa}
            ]
            ]
            ]
            [Ft
            [$sigma$
            [b ]
            [ae ]
            ]
            [$sigma$
            [m ]
            [textipa{textschwa}
            ]
            ]
            ]
            ]
            end{forest}
            end{document}


            enter image description here






            share|improve this answer















            If you consider switching to forest, then you only need to set the appropriate calign keys. (forest has IMHO many advantages over tikz-qtree and is based on tikz, so you can use all tikz stuff, too.)



            documentclass{article}
            usepackage[edges]{forest}
            usepackage{tipa}
            begin{document}
            begin{forest}
            for tree={parent anchor=south,where level={1}{calign=first}{calign=last}}
            [Pwd
            [Ft
            [$sigma$
            [ae ]
            ]
            [$sigma$
            [l ]
            [textipa{textschwa}
            ]
            ]
            ]
            [Ft
            [$sigma$
            [b ]
            [ae ]
            ]
            [$sigma$
            [m ]
            [textipa{textschwa}
            ]
            ]
            ]
            ]
            end{forest}
            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 hours ago

























            answered 3 hours ago









            marmotmarmot

            117k5150283




            117k5150283













            • Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

              – Scharl
              2 hours ago











            • @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

              – marmot
              2 hours ago











            • Thank you so much it looks wonderful!

              – Scharl
              2 hours ago



















            • Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

              – Scharl
              2 hours ago











            • @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

              – marmot
              2 hours ago











            • Thank you so much it looks wonderful!

              – Scharl
              2 hours ago

















            Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

            – Scharl
            2 hours ago





            Is there a way to make lines meet (and touch) at every node with Forest? I have tried to use it but could not figure this one out.

            – Scharl
            2 hours ago













            @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

            – marmot
            2 hours ago





            @Scharl Sure, just add parent anchor=south. I edited the answer accordingly.

            – marmot
            2 hours ago













            Thank you so much it looks wonderful!

            – Scharl
            2 hours ago





            Thank you so much it looks wonderful!

            – Scharl
            2 hours ago











            1














            It is not so difficult with TIkZ's matrix:



            documentclass[tikz]{standalone}
            usepackage{tipa}
            usetikzlibrary{matrix}
            begin{document}
            begin{tikzpicture}
            matrix (m) [matrix of nodes,nodes={minimum width=.8cm}] {%
            & & & & PWd & &\[2em]
            Ft & & & & Ft & &\[2em]
            $sigma$ & & $sigma$ & & $sigma$ & & $sigma$\[2em]
            `ae & l & textipa{textschwa} & b & 'ae & m & textipa{textschwa}\
            };
            draw (m-2-1.north) -- (m-1-5.south) -- (m-2-5.north);
            draw (m-3-1.north) -- (m-2-1.south) -- (m-3-3.north);
            draw (m-3-5.north) -- (m-2-5.south) -- (m-3-7.north);
            draw (m-4-1.north) -- (m-3-1.south);
            draw (m-4-2.north) -- (m-3-3.south) -- (m-4-3.north);
            draw (m-4-4.north) -- (m-3-5.south) -- (m-4-5.north);
            draw (m-4-6.north) -- (m-3-7.south) -- (m-4-7.north);
            end{tikzpicture}
            end{document}


            enter image description here






            share|improve this answer






























              1














              It is not so difficult with TIkZ's matrix:



              documentclass[tikz]{standalone}
              usepackage{tipa}
              usetikzlibrary{matrix}
              begin{document}
              begin{tikzpicture}
              matrix (m) [matrix of nodes,nodes={minimum width=.8cm}] {%
              & & & & PWd & &\[2em]
              Ft & & & & Ft & &\[2em]
              $sigma$ & & $sigma$ & & $sigma$ & & $sigma$\[2em]
              `ae & l & textipa{textschwa} & b & 'ae & m & textipa{textschwa}\
              };
              draw (m-2-1.north) -- (m-1-5.south) -- (m-2-5.north);
              draw (m-3-1.north) -- (m-2-1.south) -- (m-3-3.north);
              draw (m-3-5.north) -- (m-2-5.south) -- (m-3-7.north);
              draw (m-4-1.north) -- (m-3-1.south);
              draw (m-4-2.north) -- (m-3-3.south) -- (m-4-3.north);
              draw (m-4-4.north) -- (m-3-5.south) -- (m-4-5.north);
              draw (m-4-6.north) -- (m-3-7.south) -- (m-4-7.north);
              end{tikzpicture}
              end{document}


              enter image description here






              share|improve this answer




























                1












                1








                1







                It is not so difficult with TIkZ's matrix:



                documentclass[tikz]{standalone}
                usepackage{tipa}
                usetikzlibrary{matrix}
                begin{document}
                begin{tikzpicture}
                matrix (m) [matrix of nodes,nodes={minimum width=.8cm}] {%
                & & & & PWd & &\[2em]
                Ft & & & & Ft & &\[2em]
                $sigma$ & & $sigma$ & & $sigma$ & & $sigma$\[2em]
                `ae & l & textipa{textschwa} & b & 'ae & m & textipa{textschwa}\
                };
                draw (m-2-1.north) -- (m-1-5.south) -- (m-2-5.north);
                draw (m-3-1.north) -- (m-2-1.south) -- (m-3-3.north);
                draw (m-3-5.north) -- (m-2-5.south) -- (m-3-7.north);
                draw (m-4-1.north) -- (m-3-1.south);
                draw (m-4-2.north) -- (m-3-3.south) -- (m-4-3.north);
                draw (m-4-4.north) -- (m-3-5.south) -- (m-4-5.north);
                draw (m-4-6.north) -- (m-3-7.south) -- (m-4-7.north);
                end{tikzpicture}
                end{document}


                enter image description here






                share|improve this answer















                It is not so difficult with TIkZ's matrix:



                documentclass[tikz]{standalone}
                usepackage{tipa}
                usetikzlibrary{matrix}
                begin{document}
                begin{tikzpicture}
                matrix (m) [matrix of nodes,nodes={minimum width=.8cm}] {%
                & & & & PWd & &\[2em]
                Ft & & & & Ft & &\[2em]
                $sigma$ & & $sigma$ & & $sigma$ & & $sigma$\[2em]
                `ae & l & textipa{textschwa} & b & 'ae & m & textipa{textschwa}\
                };
                draw (m-2-1.north) -- (m-1-5.south) -- (m-2-5.north);
                draw (m-3-1.north) -- (m-2-1.south) -- (m-3-3.north);
                draw (m-3-5.north) -- (m-2-5.south) -- (m-3-7.north);
                draw (m-4-1.north) -- (m-3-1.south);
                draw (m-4-2.north) -- (m-3-3.south) -- (m-4-3.north);
                draw (m-4-4.north) -- (m-3-5.south) -- (m-4-5.north);
                draw (m-4-6.north) -- (m-3-7.south) -- (m-4-7.north);
                end{tikzpicture}
                end{document}


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 hours ago

























                answered 3 hours ago









                JouleVJouleV

                12.8k22663




                12.8k22663






















                    Scharl is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Scharl is a new contributor. Be nice, and check out our Code of Conduct.













                    Scharl is a new contributor. Be nice, and check out our Code of Conduct.












                    Scharl is a new contributor. Be nice, and check out our Code of Conduct.
















                    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%2f484534%2fdrawing-vertical-oblique-lines-in-metrical-tree-tikz-qtree-tipa%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

                    Why is a white electrical wire connected to 2 black wires?

                    Waikiki

                    What are all the squawk codes?