I want to set 1.15 line spacing (as there is option in microsoft word) for the entire content in book class. I referred to some question on this site. I found the following.
\linespread{1.667}
sets double space (2.0 line spacing as in microsoft word).
\linespread{1.25}
sets one and half space (1.5 line spacing as in microsoft word).
How to set line spacing 1.15 as required in microsoft word? Would the command \linespread{0.958}
set 1.15 line spacing as in microsoft word?
I also have another query. If in a class file it is set as \AtBeginDocument{\linespread{0.958}}
will it affect the entire content in book? Should I use it before or after \LoadClass{book}
?
Best Answer
Don't modify the low-level parameter
\linespread
directly, as doing so will also affect how material in footnotes and tables is spaced. (Of course, if your document has neither footnotes nor tables, you don't have to worry about this point, do you?) Instead, I suggest you load the setspace package and issue various\setstretch{xx}
directives, where "xx" is a stretch or shrinkage factor; a value of 1.0 is the default.I've performed a number of side by side tests with MS Word and LaTeX to determine which arguments of
\setstretch
correspond to the 1.15, 1.5, and 2.0 stretch settings of MS Word. All tests use "A4" as the default paper size. The font is Times Roman, the font size is 12pt in LaTeX and 12bp ("big points", aka "Adobe points") in Word. The LaTeX document class isbook
, and the margin width is 2.5cm on all four sides in both test documents.The LaTeX test document is as follows:
The file
blob.tex
has the following contents:If you have both a LaTeX and an MS Word installation at hand, you may verify for yourself that the MS Word line spacing options "Single", "1.5 Lines", "Double", and "Multiple - 1.15" correspond to
\setstretch{1.0}
,\setstretch{1.5}
,\setstretch{2.0}
, and\setstretch{1.2}
. Yes, that's1.2
, not1.15
, in the argument of the final\setstretch
directive.In case you're curious, the 1.0, 1.2, 1.5, and 2.0 stretch factors serve to place 48, 40, 32, and 24 lines of text per page in the test document defined above. (The stretch factor 1.15 would place 34, not 32, lines on the first page.)
Interestingly, the stretch factors of 1.5 and 2.0 do not correspond to the
onehalfspacing
anddoublespacing
options of thesetspace
package; the latter two options actually correspond to stretch factors of 1.241 and 1.655 if the main document font size is 12pt. Somewhat reassuringly, though, thesinglespacing
package option does correspond to a stretch factor of 1.0.Finally, a couple of screenshots, for (a) MS Word with line spacing option 1.15 and (b) LaTeX with
\setstretch{1.2}
.Observe that both documents have 32 lines of text on the left and 8 lines of text on the right.