我希望在latex中构建以下图表,但找不到如何准确生成它的示例,主要问题是通过' x'
A
/ \
B C
|\ /|
| x |
|/ \|
D E
到目前为止,我已经尝试了“qtree”#39;和语言学{forest}'包。
答案 0 :(得分:0)
对于简单的图形/图形,我使用tikz
:
\documentclass{scrartcl}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}[node distance=4cm]
\node[draw=black,fill=white,circle,minimum size=1.5cm] (A) {A};
\node[draw=black,fill=white,circle,minimum size=1.5cm, below left of = A] (B) {B};
\node[draw=black,fill=white,circle,minimum size=1.5cm, below right of = A] (C) {C};
\node[draw=black,fill=white,circle,minimum size=1.5cm, below of = B, yshift=-3cm] (D) {D};
\node[draw=black,fill=white,circle,minimum size=1.5cm, below of = C, yshift=-3cm] (E) {E};
\draw (A) -- (B);
\draw (A) -- (C);
\draw (B) -- (D);
\draw (B) -- (E);
\draw (C) -- (E);
\draw (C) -- (D) node[draw=black,fill=white,circle,minimum size=1.5cm,midway] (X) {X};
\end{tikzpicture}
\end{center}
\end{document}