I'm writing a linguistics paper that uses a large amount of linguistic examples from a wide variety of languages, using the gb4e package. I want to be able to label each example with information about the language it comes from, as I've seen in some texts, sort of like this:
Language (family, citation, etc.) (1) example text glosses 'translation'
gb4e is great at formatting the examples themselves, but I can't seem to get the label placed where I want it, that is, placed immediately before the example and without an indent. Here's some example code:
\documentclass{article}
\usepackage{gb4e}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
Hungarian (Finn-Ugric, \emph{reference})
\begin{exe}
\ex \gll J\'anos h\'aza\\
John house.his\\
\glt `John's house'
\end{exe}
\lipsum[3]
\end{document}
If the label text is outside the exe environment, it's treated like a regular paragraph, but if I try to put it inside, it gives me an error. How can I make it look the way I want? I've looked at other packages that do numbered examples, but they don't seem to have solutions either, and they also don't have the same functionality as gb4e that I need.
Any help would be greatly appreciated.


lipsumpackage for introducing dummy text for better readability and focus, you can also use egreg'skantlipsumpackage for the same purpose. Please rollback if this is not desired. – percusse Mar 27 '12 at 3:19