+1 vote
in General IT Tips by (40.5k points)

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}

1 Answer

+2 votes
by (71.8k points)
selected by
 
Best answer

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}

Related questions

+1 vote
1 answer
+2 votes
1 answer
+2 votes
1 answer

...