4

I use the forestpackage to draw linguistic trees, and the linguexpackage to create numeric examples. But there seems to be a problem when I combine the two. The tree is not aligned with the number of the example (the XP should be aligned with (1)).

\documentclass{article}
\usepackage{forest}
\usepackage{linguex}

\begin{document}

\ex. \begin{forest}
       [XP [X] [compl ] ]
     \end{forest}

\end{document}

If I use the philexpackage instead of linguex, the result is exactly the same. So the issue seems to come from the forestpackage. Has anyone any idea how to fix that?

  • Section 2.4.1 in the manual of forest. – egreg Mar 25 '14 at 17:39
  • I'm sorry, but I can't find the information in this section... I tried to use a \hbox, but it doesn't work. – BonyHoax Mar 25 '14 at 17:49
  • Oh, I got it! It seems that the baselineoption is what I was looking for. It wasn't very clear though... – BonyHoax Mar 25 '14 at 17:51
5

If you want that the tree is rooted at the baseline of the first item, then section 2.4.1 in the manual of forest says

\documentclass{article}
\usepackage{forest}
\usepackage{linguex}

\begin{document}

\ex. \begin{forest} baseline
       [XP [X] [compl ] ]
     \end{forest}

\end{document}

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.