1

I would like to ask about numbered examples in linguistics. I am using gb4e for the numbering examples and forest for the syntactic trees. My question is how to put two syntactic trees in line. I would like to get the following result.

desirable result

However, to receive this structure, I did not use gb4e. It means that a. and b. in the figure is written in script directly.

The following is the script of this one.

\begin{exe}
\ex syntactic tree \\
        a. \begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
    \end{forest} \hspace{4ex}
    b. \begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
    \end{forest} \\
    c. \begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
    \end{forest}

\end{exe}

When I introduce the numbering code within this structure, I cannot get the figure above. What I would like to do is to put the two syntactic tree without break like the figure. The following is the code and result I have got from the code.

undesirable example

   \begin{exe}
    \ex derivation of tree
        \begin{xlist}
        \ex \begin{forest}
    [VP
        [DP]
        [V’
            [V]
            [DP]
        ]
    ]    
        \end{forest}
        \quad
        \ex \begin{forest}
    [VP
        [DP]
        [V’
            [V]
            [DP]
        ]
    ]    
        \end{forest}


        \end{xlist}
    \end{exe}

If you have an idea on how to implement the desirable one, could you tell me the idea?

Thank you.

  • Welcome to TeX.se. Please don't post code fragments. Instead make a compilable document that shows the problem. – Alan Munn May 1 '17 at 0:31
1

You can use the multicol package to put (small) trees and examples side by side.

For another kind of solution see:

\usepackage{gb4e}
\begin{document}
\begin{exe}
\ex syntactic tree
\begin{xlist}
\begin{multicols}{2}
\ex\begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
\end{forest}
\ex
\begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
\end{forest}
\end{multicols}
\ex\begin{forest} 
[VP
    [DP]
    [V’
        [V]
        [DP]
    ]
]
\end{forest}
\end{xlist}
\end{exe}
\end{document}

output of code

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.