![森林包(树木)-树枝的方向](https://linux22.com/image/376481/%E6%A3%AE%E6%9E%97%E5%8C%85%EF%BC%88%E6%A0%91%E6%9C%A8%EF%BC%89-%E6%A0%91%E6%9E%9D%E7%9A%84%E6%96%B9%E5%90%91.png)
我正在尝试在节点“Raiz”的东边创建一些分支(如图所示)。我试过使用 grow=east,但没有成功。谢谢!!
以下是我使用的方法:
\documentclass[article]
\usepackage{forest}
\begin{document}
\begin{forest}
[Raiz
[laríngeo [vozeado]]
[lateral]
[nasal]
[Cavidade Oral
[P.A.C
[LABIAL]
[CORONAL[anterior]]
[DORSAL[recuado]]
]
[distensão retardada]
[contínuo]
]
]
\end{forest}
\end{document}
我不知道如何在“Raiz”中放入 [+consoante] 和 [soante]。我也不知道如何在单词之间保留 [ ],如图所示。
答案1
类似这样的事?
\documentclass[showtrims, 10pt]{memoir}
\usepackage{forest}
\begin{document}
\begin{forest}
[Raiz,blue!50!green
[laríngeo
[vozeado]
]
[lateral]
[nasal]
[Cavidade Oral
[P.A.C
[LABIAL]
[CORONAL
[anterior]
]
[DORSAL
[recuado]
]
]
[distensão retardada]
[contínuo]
]
[{[soante]},before drawing tree={y=0cm,x=1cm},blue!50!green,edge=blue!50!green,anchor=west]
[{[+consoante]},before drawing tree={y=0.95cm,x=1cm},blue!50!green,edge=blue!50!green,anchor=north west]
]
\end{forest}
\end{document}
答案2
% maybe this?
\documentclass[showtrims, 10pt]{article}
\usepackage{forest}
\begin{document}
\begin{forest}
[Raiz,blue!50!green
[Laríngeo
[{[vozeado]}]
]
[{[lateral]}]
[{[nasal]}]
[Cavidade Oral
[P.A.C
[LABIAL]
[CORONAL
[{[anterior]}]
]
[DORSAL
[{[recuado]}]
]
]
[{[distensão retardada]}]
[{[contínuo]}]
]
[{[soante]},before drawing tree={y=0cm,x=1cm},blue!50!green,edge=blue!50!green,anchor=west]
[{[+consoante]},before drawing tree={y=0.95cm,x=1cm},blue!50!green,edge=blue!50!green,anchor=north west]
]
\end{forest}
\end{document}
节点周围的花括号对于[nasal]
在节点中排版方括号是必需的,而不是被 Forest 作为树结构规范的一部分进行解析。