I am writing a document class where I want to set the default line spacing to be 1.5. How can I use the setspace package to achieve this? More particularly, where in my .cls file should I mention \onehalfspacing?
I have tried modifying \baselinestretch, but it does not work when I add \RequirePackage{setspace} in the .cls file.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
|
The error in your comment says, that So you could fix it by defining \@currsize yourself, such as by
but I recommend to define a font size in your class before you load
|
|||||||
|
|
The new documentclass is baz.cls
|
|||
|
|
\RequirePackage[onehalfspacing]{setspace}be sufficient? – egreg Jan 16 '12 at 12:08\RequirePackage[onehalfspacing]{setspace}, I am getting the error: Package: `setspace' 6.7 <2000/12/01> ) ! Undefined control sequence. \setstretch ...ef \baselinestretch {#1}\@currsize – user1145885 Jan 16 '12 at 12:17