Kirill Davidov schrieb am 15.09.2024 um 20:01:
Ah, that helps. Then, one more question. I assume line=2.8ex is
equivalent to single line spacing, yes? Do I therefore naively multiply
that by, say, 1.5 to get 1.5 line spacing? Thanks!

Yes, the default value is 2.8ex and the medium, big and numeric values (e.g. \setupinterlinespace[2]) are multiples of it but you should be aware it is depends on the font which specifies the value of ex.

An alternative to the default relative setting are absolute values, e.g. \setupinterlinespace[line=16pt].

When your try to reproduce the spacing of another system like MS Word how it specifies the meaning one and half or double spacing because there is no standardized method to set the value, below are a few examples (where I tried to reproduce the MS Word settings but I can be wrong here).

%%%% begin example
% \definefontfamily [aptos] [rm] [Aptos Serif]
% \definefontfamily [aptos] [ss] [Aptos]
%
% \setupbodyfont[aptos,ss]

\startdocument

\bold{ConTeXt 1x:} \samplefile{dijkstra}

\blank

\setupinterlinespace[2]% relative value

\bold{ConTeXt 2x:} \samplefile{dijkstra}

\blank

\setupinterlinespace[line=\dimexpr\bodyfontsize+8pt\relax]

\bold{Word 1x:} \samplefile{dijkstra}

\blank

\setupinterlinespace[line=\dimexpr1.15\bodyfontsize+8pt\relax]

\bold{Word 1.15x:} \samplefile{dijkstra}

\blank

\setupinterlinespace[line=\dimexpr2\bodyfontsize+8pt\relax]

\bold{Word 2x:} \samplefile{dijkstra}

\stopdocument
%%%% end example

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to