¿Es posible crear una lista con líneas que conecten elementos en el mismo nivel?

¿Es posible crear una lista con líneas que conecten elementos en el mismo nivel?

Estoy intentando replicar lo siguiente en LaTex:

una lista anidada con líneas que la conectan

¿Existe algún paquete que pueda hacerlo o una forma sencilla de hacerlo? Busqué por ahí, pero no pude encontrar nada que hiciera exactamente esto (probablemente debido a palabras clave incorrectas).

Gracias de antemano.

Respuesta1

dirtreees un paquete diseñado específicamente para este tipo de diagramas. Sin embargo, probablemente usaría el estilo edgede la biblioteca de Forest (con un nombre engañoso) folder.

\documentclass[border=10pt,multi,tikz]{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
  for tree={
    folder,
    grow'=0,
    align=left,
    % Sašo: http://chat.stackexchange.com/transcript/message/35178162#35178162
    child anchor=mid west,
  },
  [Things it is time to speak of \dots
    [Shoes
      [An invention designed to mitigate the\\disadvantages suffered by the wealthy as a\\result of inflicting roads on the poor.]
    ]
    [Ships
      [Occasionally to be found in bottles.]
    ]
    [Sealing was
      [Not to be confused with ceiling wax.]
    ]
    [Cabbages
      [{Plant of historical importance for its role\\in the production of a soup, ostensibly\\given from charity, but actually inflicted\\as punishment for misfortune.}]
    ]
    [Kings
      [Hereditary obsolescence.]
    ]
    [Why the sea is boiling hot
      [\emph{Non sequitur}.]
    ]
    [Whether pigs have wings
      [Falsehood.
        [\emph{A posteriori.}]
        [Contingent.]
      ]
    ]
  ]
\end{forest}
\end{document}

Carroll se revolverá en su tumba, sin duda.

Respuesta2

Esto funciona: (adaptación menor deejemplo)

\documentclass{minimal}
\usepackage{tikz}
%%%<
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
%%%>
\begin{comment}
:Title: Filesystem tree
:Tags: Trees; Styles
:Author: Frantisek Burian
:Slug: filesystem-tree
\end{comment}
\usetikzlibrary{trees}
\begin{document}
%\tikzstyle{every node}=[draw=black,thick,anchor=west]
%\tikzstyle{selected}=[draw=red,fill=red!30]
%\tikzstyle{optional}=[dashed,fill=gray!50]
\begin{tikzpicture}[%
  grow via three points={one child at (1.0,-0.7) and
  two children at (1.0,-0.7) and (1.0,-1.4)},
  edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
  \node {texmf}
    child { node {doc}}     
    child { node {fonts}}
    child { node {source}}
    child { node {tex}
      child { node {generic}}
      child { node {latex}}
      child { node {plain}}
    }
    child [missing] {}              
    child [missing] {}              
    child [missing] {}              
    child { node {texdoc}};
\end{tikzpicture}
\end{document}

ingrese la descripción de la imagen aquí

información relacionada