Command/setupinterlinespace

From ConTeXt wiki
Jump to: navigation, search

\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.

Those used to traditional typography specifications (e.g. "eleven point type on fourteen point leading" written as 11/14) would use the following:

\setupbodyfont [11pt]            % 12pt is the default font size
\setupinterlinespace [line=14pt] % default: line=2.8ex



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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox