Generalsingle spaced examples with expex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
znlznl
Posts: 2
Joined: Tue Mar 10, 2015 7:14 pm

single spaced examples with expex

Post by znlznl »

Hello all,

I'm formatting linguistics examples with the expex package. My body text needs to be double spaced, the glossed examples need to be singled spaced. Using advice from http://permalink.gmane.org/gmane.comp.t ... stics/1205, I'm trying the following code in my preamble: \lingset{everyex=\singlespace}.

This makes the example single spaced, but also pushes it down below the line with the number. Any advice for how to move it back up, so that the first gloss line is aligned with the number? (I can make it happen using \begin{singlespace}\end{singlespace} around every example, but this is a long paper and I'd rather not!)

MWE:

Code: Select all

\documentclass[12pt,a4paper]{article}

\usepackage{setspace}
\doublespace

\usepackage{expex}
\lingset{everyex=\singlespace} % remove double spacing in examples

\begin{document}
\ex 
\begingl
\gla el padre es alto //
\glb the father is tall //
\glft `The father is tall.' //
\endgl
\xe
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

znlznl
Posts: 2
Joined: Tue Mar 10, 2015 7:14 pm

single spaced examples with expex

Post by znlznl »

Found assistance elsewhere. The fix is small --- you need to use \lingset{Everyex=\singlespace} (with a captial 'E') not \lingset{everyex=\singlespace}.

Code: Select all

    \documentclass[12pt,a4paper]{article}

    \usepackage{setspace}
    \doublespace

    \usepackage{expex}
    \lingset{Everyex=\singlespace} % remove double spacing in examples

    \begin{document}
    \ex
    \begingl
    \gla el padre es alto //
    \glb the father is tall //
    \glft `The father is tall.' //
    \endgl
    \xe
    \end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: single spaced examples with expex

Post by Stefan Kottwitz »

Great that you solved it! And thank you for telling us the solution.

Stefan
LaTeX.org admin
Post Reply