这样的图不知在latex或者tikz中能否实现呢

发布于 2021-12-21 15:54:15

这样的图不知在latex或者tikz中能否实现呢?主要是前面的点(有点像列表环境)还有竖线。
2b80f7ac2dca31f0ad70fd770eb29b5.png

查看更多

关注者
1
被浏览
1.2k
1 个回答
雾月
雾月 2021-12-21
这家伙很懒,什么也没写!
\documentclass{standalone}

\usepackage{forest}

\begin{document}

\forestset{
  declare dimen register=itemize folder indent,
  itemize folder indent=.6em,
  itemize rect/.style={tikz+={\fill ([xshift=-.9em,yshift=-2pt].child anchor) circle(1pt);}},
  itemize folder/.style={
    parent anchor=-children last,
    anchor=parent first,
    calign=child,
    calign primary child=1,
    for descendants={itemize rect},
    for children={
      child anchor=parent,
      anchor=parent first,
      edge={rotate/.option=!parent.grow},
      edge path={
        \noexpand\path[\forestoption{edge}]([xshift=\forestregister{itemize folder indent}]!u.parent anchor) |- ([yshift=-2pt].child anchor)\forestoption{edge label};
      },
    },
    after packing node={
      if n children=0{}{
        tempdiml=l_sep()-l("!1"),
        tempdims={-abs(max_s("","")-min_s("",""))-s_sep()},
        for children={
          l+=tempdiml,
          s+=tempdims()*(reversed()-0.5)*2,
        },
      },
    },
  }
}

\begin{forest}
    for root={itemize folder indent=.8em},
    for tree={grow'=0,itemize folder,font=\ttfamily,inner ysep=0pt,l sep=1.7em}
    [Baby Linear Functional analysis
      [normed space
        [$L^p$ space]
        [Banach fixed point theorem]
        [Hahn-Banach theorem
          [separation of convex sets]
          [weak convergence/dual operator,inner ysep=-2.5pt]
          [Banach-Mazur theorem]
          [Banach-Alaoglu-Bourbaki Theorem]
        ]
        [Baire Category theorem
          [Uniform boundedness principle]
          [Open mapping theorem]
          [Closed graph theorem]
        ]
      ]
      [Hilbert space
        [projections]
        [Riesz representation]
        [Fourier series]
        [Lax-Milgram theorem]
        [Self adjoint operators
          [Eigenvalue problem]
          [Spectral theorem]
        ]
      ]
    ]
\end{forest}

\end{document}

间距自己调吧。
image.png

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览