Difference between revisions of "setuplocalinterlinespace"
Jump to navigation
Jump to search
(Created page with "In some situations one may be willing to have a different interlinespace in a particular part of text, header, etc. To this end one can use the command <texcode> \setupinterline...") |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
<texcode> | <texcode> | ||
− | \ | + | \setuplocalinterlinespace |
</texcode> | </texcode> | ||
Line 16: | Line 16: | ||
<context source=yes mode=mkiv> | <context source=yes mode=mkiv> | ||
\setuppapersize[A5][A5] | \setuppapersize[A5][A5] | ||
− | \setupinterlinespace[line=3.2ex] % global setting (\setupinterlinespace[3.2ex] == \setupinterlinespace[line=3.2ex]) | + | \setupinterlinespace[line=3.2ex] % global setting |
+ | % (\setupinterlinespace[3.2ex] == \setupinterlinespace[line=3.2ex]) | ||
\starttext | \starttext | ||
Line 39: | Line 40: | ||
\input ward | \input ward | ||
− | \stop % an empty line or \par before the end the group is necessary | + | \stop % an empty line or \par before the end of the group is necessary |
\stoptext | \stoptext | ||
</context> | </context> | ||
+ | |||
+ | [[Category:Basics]] |
Latest revision as of 16:09, 8 June 2020
In some situations one may be willing to have a different interlinespace in a particular part of text, header, etc. To this end one can use the command
\setuplocalinterlinespace
or its synonym
\switchtointerlinespace
Either of these commands should be enclosed in a \start...\stop pair. The arguments taken by \setuplocalinterlinespace or its synonym \switchtointerlinespace are analogous to the dimensions used in \setupinterlinespace. Below is an example, with some explanations of the commands.
\setuppapersize[A5][A5] \setupinterlinespace[line=3.2ex] % global setting % (\setupinterlinespace[3.2ex] == \setupinterlinespace[line=3.2ex]) \starttext \input ward \blank \setupinterlinespace[big] % big = 1.5 * global value (small = 1x, medium = 1.25x) \input ward \blank \setupinterlinespace[reset] % here we go back to the global interlinespace set before \input ward \blank \start \setuplocalinterlinespace[line=4ex] % here a local value for the interlinespace is set \input ward \stop % an empty line or \par before the end of the group is necessary \stoptext