[table of contents]

Appendix B Linguistic Examples with gb4e and linguex

The msu-thesis class has been tested with both the gb4e package, and the linguex package. Unfortunately some versions of gb4e use old font commands, and so does linguex, so if you encounter problems with either package, load the class with the oldfontcommands option. Since linguistic examples are usually single spaced, even in theses, you should use the \singlegloss command (from the cgloss4e package loaded by both gb4e and linguex) to make your glosses examples singlespaced. The default mode for examples themselves is to make them doublespaced. If you want all examples to be single spaced (which looks better if the examples take up more than one line) you need to put the following code in your preamble, which redefines the exe environment to be single spaced. The \patchcommand macro is part of memoir. Other patching commands such as those provided by the etoolbox package could also be used.

\patchcommand{\exe}{\SingleSpacing}{}

For the linguex package, you can use the following code:

\patchcommand{\ex}{\SingleSpacing}{} 
\renewcommand{\ExEnd}{% 
    \ifnum\theExDepth=0\global\unembeddedfalse\DoubleSpacing\else% 
          \end{list}\addtocounter{ExDepth}{-1}\ExEnd\fi}