Peter Wilson, the author of Memoir, e-mailed me with the solution.
Props, and thanks for your time, Peter!
EK
Peter Wilson wrote:
I don't have, or use, Lyx so i can't test anything with it.
If you have just
\documentclass[...]{memoir}
%%\usepackage{setspace} with or without this
then you have to use memoir's line spacing commands (e.g.
\begin{Spacing}{1} instead of \begin{spacing}{1}). (I tried this with
your example redefinition of the quote environment and it worked.)
If you have
\documentclass[...]{memoir}
\DisemulatePackage{setspace}
\usepackage{setspace}
then you have to use setspace's line spacing commands (e.g.,
\begin{spacing}{1} --- your quote environment example worked following
\DisemulatePackage{setspace*}).*
You can't mix the two sets of commands/environments.
Memoir's implementation of the line spacing commands is a little
different than setspace's, resulting sometimes in different spacing;
in particular memoir's version eliminates some extra space that might
occur near/around display material. In one case just calling
\usepackage{setspace} had the result of insering a large space on one
page and moving about 6 or 8 lines to the following page even though
no spacing commands were used; this did not happen with memoir's
implementation. As the results might be different I choose to use
different names, but \DisemulatePackage{setspace} gives you the
opportunity to pick which set you want to use.
Peter W.
Eran Kaplinsky wrote:
The memoir class has been recently updated (Dec. 11) and changes have
been made to spacing commands.
As a result, a LyX document using the class will produce errors if
paragraph spacing is defined through the Edit>Paragraph menu.
For example, if your document is one-half spaced, but you'd like to
single space specific content, you will get an "environment undefined"
LateX error.
Furthermore, documents using a custom quote style from the memman.pdf
won't work. For example:
\makeatletter
\renewenvironment{quote}
{\begin{spacing}{1}\list{}{\rightmargin\leftmargin}%
\footnotesize\item\relax}
{\endlist\end{spacing}\noindent\hspace{-0.333em}}
\makeatother
The first problem can be overcome by keeping all paragraphs with
default spacing, and using ERT commands on a separate line, e.g.,
\SingleSpacing \OnehalfSpacing -- but I don't know what do about
custom spacing (say, half a cm) or the custom quote style.
Best,
EK