1

I want to add some space between the sub-examples generated with package expex. Here is an MWE:

\documentclass{article}
\usepackage{lipsum}
\usepackage{expex}
\lingset{%
  belowglpreambleskip=-0.5ex,%
  aboveglftskip=-0.5ex%
}

\begin{document}
\pex
\a\begingl
\gla abcd//
\glb efgh//
\glft Add extra space after this.//
\endgl
\a\begingl
\gla abcd//
\glb efgh//
\glft No extra space after this.//
\endgl
\xe

\lipsum[1-1]

\pex
\a\begingl
\gla abcd//
\glb efgh//
\glft Add extra space after this.//
\endgl
\a\begingl
\gla abcd//
\glb efgh//
\glft No extra space after this.//
\endgl
\xe
\end{document}
0

1 Answer 1

3

Use the option interpartskip=<length> in lingset{...} to set a global option or use \pex[interpartskip=<length>] in a specific example.

a

\documentclass{article}
\usepackage{lipsum}
\usepackage{expex}
\lingset{%
    belowglpreambleskip=-0.5ex,%
    aboveglftskip=-0.5ex,%
    interpartskip=6ex % added <<<<<<<<<<<<<<<<<<
}

\begin{document}

    \pex
    \a\begingl
    \gla abcd//
    \glb efgh//
    \glft Add extra space after this.//
    \endgl
    \a\begingl
    \gla abcd//
    \glb efgh//
    \glft No extra space after this.//
    \endgl
    \xe
    
    \lipsum[1-1]
    
    \pex
    \a\begingl
    \gla abcd//
    \glb efgh//
    \glft Add extra space after this.//
    \endgl
    \a\begingl
    \gla abcd//
    \glb efgh//
    \glft No extra space after this.//
    \endgl
    \xe
\end{document}

Using expex.sty 5/1/2017 v5.1b

1
  • Thanks a lot. This works as expected.
    – Niranjan
    Commented Apr 11, 2022 at 3:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .