사양이 지정된 기본값 제거

사양이 지정된 기본값 제거

where기본 수준에서 트리의 모든 단어를 정렬하기 위해 선언을 지정했습니다 . 내 책에는 이 기본값에 맞지 않는 나무가 하나 포함되어 있을 수 있습니다. Specifier와 Adjunct가 기준선으로 푸시되지 않도록 기본값을 제거하려면 어떻게 해야 합니까?

\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}

답변1

tier로컬에서 비어 있도록 설정할 수 있습니다 .

\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}

여기에 이미지 설명을 입력하세요

관련 정보