I am using the gb4e
package. When I have a list of examples, there is a large skip after the prose and before the first enumerated item. I do not want that skip there; instead, I want there to be double-spacing, as there is throughout the document. After the list has ended, I also want double-spacing between the last example and the rest of the prose below it.
\documentclass[12pt]{article}
\usepackage[margin=1in, left=1.25in, right=1.25in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\rhead{Name \thepage}
\cfoot{}
\usepackage{setspace}
\doublespacing
\usepackage{geometry}
\usepackage{url}
\usepackage{gb4e}
\begin{document}
Some prose goes here and goes on for a while. The spacing, as you can see, is double, but the space between the prose and the items below is more than double. It should not be.
\begingroup
\singlespace{
\begin{exe}[nosep]
\ex xyz
\ex xyz
\end{exe}
}
\endgroup
The prose resumes here and goes on for a while. Again, the spacing is double, as it should be.
\end{document}
It should not be. \begin{exe} \ex xyz \ex xyz \end{exe} The prose
It should not be. \begin{exe}\singlespacing \ex xyz \ex xyz \end{exe} The prose
then.\singlespacing
within theexe
environment and removing your\begingroup
/\endgroup
should work. If this still doesn't do exactly what you want, you can get finer control of spacing and other kinds of formatting with theexpex
package. That package even has a separate command\ex~
for examples that follow other examples so that there's less vertical space between them.