6

In my thesis I have a lot of tables and some of them have a minipage for notes. For all thesis I'm using 1.5 in spacing. For this I'm using \linespread{1.5}. But I don't want the same spacing for minipage into the tables. That is, for the minipage inside the table should have 1.0 in spacing. How can I do that? Thank you.

  • 2
    Welcome to TeX.SX! Can you please add a full minimal working example so that people can see what packages etc you need to get your code to work (but don't add code that is not needed). This makes it much easier for people to help you. – Andrew Aug 14 '14 at 20:58
  • 1
    Have you considered not using \linespread at all, and instead loading the setspace package and executing the instruction \setstretch{1.5}? This alternative approach should give you what you need, in terms of automatically getting single-spacing in minipages. – Mico Aug 14 '14 at 20:59
  • 1
    You should consider using setspace. – cfr Aug 14 '14 at 20:59
  • If you really want to use \linespread directly, just put \linespread{1.0}\selectfont inside the minipage. But it's much easier to use setspace package. – Paul Gessler Aug 14 '14 at 20:59
  • 1
    @KeksDose - Done. :-) – Mico Aug 15 '14 at 14:45
3

(this is a slightly expanded version of my earlier comment)

Don't use the fairly low-level \linespread command to change from single-spacing to, say, one-and-one-half-spacing. As you've discovered, it affects not only the main body of the text but also the material inside minipages, tabular and array environments, footnotes, and so on.

Instead, load the setspace package (ideally with the option nodisplayskipstretch) and then execute the package's \setstretch command, say, \setstretch{1.5}.

\usepackage[nodisplayskipstretch]{setspace}
\setstretch{1.5}

The setspace package also offers macros with fairly descriptive names --\singlespacing (equivalent to \setstretch {1.0}), \onehalfspacing, and \doublespacing -- as well as environments with these names.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.