LaTeX-Package-Repositories/setspace

Line spacing in longtable environment

Opened this issue · 2 comments

The setspace package prevents settings for line spacing getting effective in floating environments like table for instance. This is desired behavior. But in contrast to that in longtable environments line spacing is applied. Therefore tables created with tabular in a table environment look different than tables created with longtable.

Is this intended as well?

setspace is even older than longtable (I think) so asking what was originally intended is hard to answer.

However the feature request seems reasonable modulo the usual concerns about compatibility effects on existing documents, I'll see what I can do. @FrankMittelbach any thoughts?

It is certainly odd this way but what setspace prevents is linespacing in floats so a tabular set without a surrounding float environment would get linespaced. So the question is what are longtables: considered to be like floats or like \begin{center}\begin{tabular}... or if both when to apply line spacing and when not (when they have no "caption"?)

So it isn't really a clear cut answr in my opinion what would be the correct design.

And by the way, unconditionally suppressing linespacing in floats seems to me also not absolutely the right thing to do, in theory it should probably configurable too

\usepackage[floats,text,footnotes]{setspace}

with "text" being the default. This way one could even do longtable and leav it to the user if that should be linespaced or not