
Especifiqué una where
declaración para alinear todas las palabras de un árbol en el nivel base. Mi libro probablemente contiene un árbol que no se ajusta a este valor predeterminado. ¿Cómo me deshago del valor predeterminado para que el especificador y el adjunto no se reduzcan a la línea base?
\documentclass{minimal}
\usepackage{forest}
\forestset{
sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom,where n children=0{tier=word}{}}},
background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,edge={draw opacity=0.2}}}
}
\begin{document}
\begin{forest}
sn edges
[XP
[Specifier]
[X'
[Adjunct]
[X'
[Complement] [X] ] ] ]
\end{forest}
\end{document}
Respuesta1
Puede configurar localmente que tier
esté vacío:
\documentclass{article}
\usepackage{forest}
\forestset{
sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom,where n children=0{tier=word}{}}},
background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,edge={draw opacity=0.2}}}
}
\begin{document}
\begin{forest}
sn edges,
where n children=0{tier=}{}
[X
[Specifier]
[X'
[Adjunct]
[X'
[Complement] [X] ] ] ]
\end{forest}
\end{document}