使用模板,我成功绘制了一个图表。该图表完全符合我的要求,但有一个例外:我想避免从标题(博弈论讲义)开始的线条。即使这应该很容易,但我似乎无法擦除它们。输出如下:
MWE 可以在这里看到:
\documentclass[margin=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning,shadows,trees}
\tikzset{basic/.style={text width=22em},root/.style={basic,thin,align=center,fill=white!100},level 2/.style = {basic,draw,thin,align=center,fill=white!100,text width=16em},level 3/.style = {basic,thin,align=center,fill=gray!10,text width=14em}}
\begin{document}
\begin{tikzpicture}[level 1/.style={sibling distance=60mm},]
\node[root]{\textbf{\Large{Game Theory Lecture Notes}}}
child {node[level 2] (c1) {\textbf{\large{General Introduction}} \\ \small{Chapters 1 --- 2}}}
child {node[level 2] (c2) {\textbf{\large{Non-Cooperative Games}} \\ \small{Chapters 3 --- 7}}}
child {node[level 2] (c3) {\textbf{\large{Cooperative Games}} \\ \small{Chapters 8 --- 9}}}
child {node[level 2] (c4) {\textbf{\large{Advanced Topics}} \\ \small{Chapters 10 --- 12}}};
\begin{scope}[every node/.style={level 3}]
\node [below of = c1, yshift=-10pt] (c11) {\textbf{Choice Theory} \\\small{Chapter 1}};
\node [below of = c11, yshift=-10pt] (c12) {\textbf{Game Theory} \\\small{Chapter 2}};
\node [below of = c2, yshift=-10pt] (c21) {\textbf{Normal Form Games} \\\small{Chapter 3}};
\node [below of = c21, yshift=-10pt] (c22) {\textbf{Extensive Form Games} \\\small{Chapter 4}};
\node [below of = c22, yshift=-10pt] (c23) {\textbf{Equilibrium Concepts} \\\small{Chapter 5}};
\node [below of = c23, yshift=-10pt] (c24) {\textbf{Repeated Games} \\\small{Chapter 6}};
\node [below of = c24, yshift=-10pt] (c25) {\textbf{Incomplete Information} \\\small{Chapter 7}};
\node [below of = c3, yshift=-10pt] (c31) {\textbf{Bargaining Theory} \\\small{Chapter 8}};
\node [below of = c31, yshift=-10pt] (c32) {\textbf{Coalitional Games} \\\small{Chapter 9}};
\node [below of = c4, yshift=-10pt] (c41) {\textbf{Epistemic Game Theory} \\\small{Chapter 10}};
\node [below of = c41, yshift=-10pt] (c42) {\textbf{Lexicographic Beliefs} \\\small{Chapter 11}};
\node [below of = c42, yshift=-10pt] (c43) {\textbf{Algorithmic Game Theory} \\\small{Chapter 12}};
\end{scope}
\end{tikzpicture}
\end{document}
如果有人知道如何删除这些行,我会非常高兴。谢谢大家的时间。
答案1
为了删除线条,必须更改样式edge from parent
中的选项level 1
。将其设置为空即可:
\begin{tikzpicture}[level 1/.style={sibling distance=60mm, edge from parent path=}]