Difference between revisions of "Command/setupinterlinespace"
< Command
Jump to navigation
Jump to search
(Corrected units after clarification on mailing list.) |
Yatskovsky (talk | contribs) |
||
Line 70: | Line 70: | ||
== Example == | == Example == | ||
− | < | + | <context source="yes"> |
+ | \starttext | ||
+ | {\definedfont[Serif at 32pt]This is the long long long title of my book.\par} | ||
+ | |||
+ | {\definedfont[Serif at 32pt]\setupinterlinespace This is the long long long title of my book.\par} | ||
+ | \stoptext | ||
+ | </context> | ||
== See also == | == See also == |
Revision as of 11:39, 28 October 2011
\setupinterlinespace
Syntax
\setupinterlinespace[...]|[...,...=...,...]| | |
[...] | reset small medium auto big on off |
height | number |
depth | number |
line | dimension |
top | number |
bottom | number |
Description
can be used in 3 variants: 1. \setupinterlinespace (without any param) set line=2.8ex 2. \setupinterlinespace[...] reset small medium big on off 3. \setupinterlinespace[...,...=...,...] line: base interline spacing (baselineskip) (e.g. 3ex or 12pt) height: size of strut as multiple of line height (e.g. 0.72) depth: size of strut as multiple of line height (e.g. 0.28) top: topskip (as multiple of line height) bottom: maxdepth (as multiple of line height) stretch: (glue) line stretching
Comment
It seems, that \setupinterlinespace[line=XX\baselineskip] interacts badly with \setuplayout while \setupinterlinespace[big] works fine.
Example
\starttext {\definedfont[Serif at 32pt]This is the long long long title of my book.\par} {\definedfont[Serif at 32pt]\setupinterlinespace This is the long long long title of my book.\par} \stoptext