add tag
निरंजन
I need some extra line-spacing in my document, but somebody suggested me not to change it globally. In his opinion it generates some extra unwanted space before figures and equations which looks bad. I want a simple environment by which I can set some value of baseline-stretch and renew it at the end of the environment. This is my sample code -

```
\documentclass{article}
\usepackage{environ}
\usepackage{lipsum}
\NewEnviron{height}{
\renewcommand{\baselinestretch}{1}
\BODY
\renewcommand{\baselinestretch}{2}
}
\renewcommand{\baselinestretch}{2}

\begin{document}
\lipsum[1-1][1-5]

\begin{height}
\lipsum[1-1][1-5]
\end{height}

\renewcommand{\baselinestretch}{1}
\lipsum[1-1][1-5]
\end{document}
```

It seems that `renewcommand` does not renew the base-line locally. I want an environment where the baseline values will be reset to the default. How to achieve it?
Top Answer
samcarter
One possible approach with the `setspace` package:


```
\documentclass{article}
\usepackage{lipsum}
\usepackage{setspace}

\doublespacing

\begin{document}
\lipsum[1-1][1-5]

\begin{singlespacing}
\lipsum[1-1][1-5]

\end{singlespacing}

\lipsum[1-1][1-5]


\begin{spacing}{3.141592654}
\lipsum[1-1][1-5]

\end{spacing}

\lipsum[1-1][1-5]

\end{document}
```

![Screen Shot 2020-05-11 at 13.41.06.png](/image?hash=3ea38cb2de2dcfbb354d3d24b7f0cd8ca6efe6017007736a295e512c2c7fbdeb)

(make sure to start a new paragraph at the end of the single space environment and beware of problems with displayed equations that @Skillmon mentioned in chat)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.