# How to get the top of a tree to align with the example number and its bottom with the example text?

I am trying to get the example number to align with the top of the tree and any additional text to align with the bottom of the tree, but I seem to be able to do only one of those.

This code:

\documentclass{scrartcl}  \usepackage[linguistics]{forest} \usepackage{gb4e}  \begin{document} \begin{exe}     \ex     \begin{forest}         [This             [is                 [a]                 [tree]             ]             [just]         ]                    \end{forest}     and some text. \end{exe} \end{document} 


produces
, whereas this code:

\documentclass{scrartcl}  \usepackage[linguistics]{forest} \usepackage{gb4e}  \begin{document} \begin{exe}     \ex     \begin{forest}         [This             [is                 [a]                 [tree, baseline]             ]             [just]         ]                    \end{forest}     and some text. \end{exe} \end{document} 


produces this:

Both of them look ugly to me and are against common practice in linguistics as far as I can tell. What I want would be something like this:

I tried simply setting the bottom nodes to baseline and adding a line break after the beginning of the example, but that will introduce page breaks between the example's number and its content, which is really bad as well.

Replay

Category: vertical alignment Time: 2016-07-30 Views: 0