I'm having some troubles with captions in longtable tables. I'm trying to typset for a thesis (so am using a class that I didn't write) and my school requires double spacing for body text but single spacing for caption text. To the best that I can determine via google, longtable formats its captions with the formatting specified in the class. I'm using some normal tables and some longtable tables, so the caption formatting is different between tables, which looks odd…
I've found an answer to my almost exact question here but when I try to utilize the answer suggested there, I get an error saying that the "caption" package is not recommended for use and unsupported. That answer was published a few years ago so I'm not really sure what has changed since then.
Anyways, any help would be much appreciated! I'm a pretty basic latex user so appreciate any examples that I can cut/paste/fiddle so I can learn. Thanks!
Best Answer
I don't know what document class you are using, but reading your question it surely loads
setspace
and uses\doublespacing
.A way to avoid loading the
caption
package to customize thelongtable
caption spacing is to load theetoolbox
package and put the following line in your preamble:In this way you will have single spacing inside all your
longtable
s.Note also the line
to make the
longtable
caption span over the whole lineOutput:
EDIT
If you get any error, it means that your document class doesn't load
setspace
.In this case, replace the line
with
and it should be fine.