The gb4e and cgloss4e packages

The two packages gb4e and cgloss4e together provide functionality for glosses, phrase structure rules and example numbering. The example numbering is easy to do and does subexample numbering easily, clearly and in a generally accepted format. Glosses are also fairly easy to use and marks indicating acceptability, grammaticality, attestedness etc. are possible. The phrase structure rules can be produced by defining new commands specifically for this task.

The name of the example counter for the exe environment provided by the gb4e package is exx, and the subcounters are xnumi, xnumi, xnumii, xnumiii and xnumvi, in order of sublevel.

If you’re using the numberwithin{xnumi}{chapter}, where numberwithin is from the amsmath package, to include the chapter number in the example number, you will want the example number to be reset at the beginning of each chapter, otherwise there is not much point in including the chapter number, other than to indicate which chapter an example is in. In order to reset the counter, call setcounter{exx}{0} at the beginning of each chapter.

Leave a comment

What do you have to say about this?

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: