# [LaTex] setspace package not working for documentclass memoir

+1 vote

I am using "\documentclass[12pt,oneside]{memoir}" for one of my latex documents. I need to set the spacing in longtable to 1, but the following code gives the error: "environment spacing undefined." If I change the "documentclass" to "article," it works fine. How can I set spacing in the document class "memoir"?

\begin{spacing}{1}

....

\end{spacing}

by (45.3k points)
selected by

I think "memoir" does not support the "setspace" package. That's why you get the error when you use the environment "spacing."

If you want to change the spacing in documentclass "memoir", you can use the "setSpacing" environment.

Here is an example to show how to use it. You can set the value of "v" to any number, e.g., 0.5, 1,1.25, 5,..., depending on the spacing you want. Also, you do not need to declare any special package for setSpacing.

\begin{setSpacing}{v}

\begin{longtable}{}

....

\end{longtable}

\end{setSpacing}