I use \setstretch{1.3}
to increase line spacing. It does increase line spacing in tabular
environments as well, which is what I want. But if the tabular
is in a figure
environment, line spacing is back down to 1.
This acrticle: baselinestretch vs. setspace suggests setting \renewcommand{\arraystretch}{1.2}
, but it will affect all my tabular
s, regardless of figure
environments.
Is there a way to force \setstretch
for figure
environments as well?
EDIT: Here is a MWE:
\documentclass{article}
\usepackage{lipsum}
\usepackage{setspace}
\begin{document}
\setstretch{1.3}
\lipsum[1]
\bigskip
\begin{tabular}{ r | r | r }
7168 & 1623040 & 28.30 \\
14336 & 3228672 & 28.15 \\
28160 & 6439936 & 28.59 \\
56320 & 12862464 & 28.55 \\
110592 & 25707520 & 29.06 \\
\end{tabular}
\begin{figure}[h]
\begin{tabular}{ r | r | r }
7168 & 1623040 & 28.30 \\
14336 & 3228672 & 28.15 \\
28160 & 6439936 & 28.59 \\
56320 & 12862464 & 28.55 \\
110592 & 25707520 & 29.06 \\
\end{tabular}
\end{figure}
\end{document}
\renewcommand{\arraystretch}{1.3}
after\begin{figure}
, so it will be localized there. Could you please add a minimal working example (MWE)? – egreg Mar 19 '14 at 12:49figure
environments only once at the beginnging of the document? – cxxl Mar 19 '14 at 12:53