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 How to get the top of a tree to align with the example number and its bottom with the example text?
, 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: How to get the top of a tree to align with the example number and its bottom with the example text?

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:

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

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

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.151 (s). 12 q(s)