Difference between revisions of "Command/setupinterlinespace"

From Wiki
Jump to navigation Jump to search
m (Added "definebodyfontenvironment" under "See also".)
Line 3: Line 3:
== [[Help:Reference|Syntax]] (autogenerated) ==
== [[Help:Reference|Syntax]] ==
== [[Help:Reference|Syntax]] ==

Revision as of 16:08, 12 November 2019


Syntax (autogenerated)

topnumber height

[...,...]on off reset auto small medium big number dimension



[...] reset small medium auto big on off
height number
depth number
line dimension
top number
bottom number


\setupinterlinespace sets up the distance between lines. can be used in three variants:

  • Without any keywords:
    The command sets the baselineskip to 2.8ex.
  • With a keyword:
    The following keywords are available:
    • reset
    • small
    • medium
    • big
    • on
    • off
  • Setting all the parameters involved in line positioning:\setupinterlinespace[...,...=...,...]
    • line: base interline spacing (baselineskip) (e.g. 3ex or 12pt)
    • height: size of strut as multiple of line (e.g. 0.72)
    • depth: size of strut as multiple of line (e.g. 0.28)
    • top: topskip (as multiple of line height)
    • bottom: maxdepth (as multiple of line height)
    • stretch: (glue) line stretching

When setting up the interlinespace, it matters which unit one chooses:

% interline space adapts itself to body font size

% set interlinespace to 12pt for every font size --- don't do this!

% set interlinespace for a particular body font size
% Useful if you think in terms of "nine-point type on eleven-point leading"

A final note: it seems that \setupinterlinespace[line=XX\baselineskip] interacts badly with \setuplayout while \setupinterlinespace[big] works fine.





% The interlinespace does not change automatically when the font changes
{   \definedfont[Serif at 32pt]
    This is the long long title of my book\crlf

% Invoking \setupinterlinespace sets baselineskip to 2.8ex of current font
{   \definedfont[Serif at 32pt]
    This is the long long title of my book\crlf


Example within \startnarrower...\stopnarrower

\setupinterlinespace[5] % this has no effect before \starttext

\input tufte % this is default, not 5
\input tufte % this is big

\input tufte % this is small

\input tufte % this is big again

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: