I am trying to create a package that will use grid typesetting (in the humanities, so not much of a problem) but that should allow the user to freely set the \baselinestretch. I am using the memoir class as a basis.
In order to do so, I have defined some font sizes, and calculated the amount of space which I should add, for instance after a \Large heading, so as to preserve the vertical alignment; then I am setting the lengths accordingly. So, for instance:
\renewcommand{\baselinestretch}{1.1}\selectfont
\renewcommand*{\normalsize}{\fontsize{12}{14.5}\selectfont}
\renewcommand*{\Large}{\fontsize{17}{22}\selectfont}
\def\addto@Large{7.7pt}
\setlength{\beforechapskip}{\addto@Large}
\addtolength{\beforechapskip}{\baselineskip}
It works so far, but I would like to be able to change \baselinestretch at will. In order to do that, I basically need to define my \addto@Large command for a stretch factor of one (so that would be 7pt here), and then multiply it by the \baselinestretch factor.
Is it possible, and if so, how can I do that?
dimexprorglueexprprovide by e-TeX. – Marco Daniel Jan 01 '12 at 23:08\addto@Largelength seems to assume single-line headings. So, why not define a variant of\Largewith "normalsized" line spacing (http://tex.stackexchange.com/questions/38613/defining-variants-of-small-and-large-that-use-normalsizes-line-spacing) and add multiples of\baselineskipbefore and after headings? – lockstep Jan 01 '12 at 23:09