Difference between revisions of "Layout and Positioning"
(adjusted height/depth ration for a constant interlinespace) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
In order to preserve a constant interlinespace (esp. when using a quite small one, in footnotes or such) it can be sometimes necessary to chance the predefined ration of height/depth: | In order to preserve a constant interlinespace (esp. when using a quite small one, in footnotes or such) it can be sometimes necessary to chance the predefined ration of height/depth: | ||
+ | <texcode> | ||
\starttext | \starttext | ||
\hbox to \hsize \bgroup \showbaselines \showstruts | \hbox to \hsize \bgroup \showbaselines \showstruts | ||
Line 14: | Line 15: | ||
\egroup | \egroup | ||
\stoptext | \stoptext | ||
+ | </texcode> | ||
+ | (The values .79 and .21 in the example are dependent on the actual font used.) | ||
− | + | [[Category:Old_Content]] |
Latest revision as of 14:51, 8 June 2020
In order to preserve a constant interlinespace (esp. when using a quite small one, in footnotes or such) it can be sometimes necessary to chance the predefined ration of height/depth:
\starttext \hbox to \hsize \bgroup \showbaselines \showstruts \ruledvtop \bgroup \hsize.45\hsize \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt] \begstrut \input tufte \endstrut \endgraf \egroup \hss \ruledvtop \bgroup \hsize.45\hsize \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt,height=.79,depth=.21] \begstrut \input tufte \endstrut \endgraf \egroup \egroup \stoptext
(The values .79 and .21 in the example are dependent on the actual font used.)