Aditya Mahajan schrieb am 26.04.2021 um 18:02:
Von: Maier, Denis Christian (UB)
Gesendet: Donnerstag, 22. April 2021 15:15
An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
Betreff: Style options and setupinterlinespace

Hi,

the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:


These quick font switches are meant for changing the font style, alternative, or size of a few 
words: they do not change the bodyfont, so they don't affect interline spacing or math font 
sizes. So, if you want to change the font size of an entire paragraph, use 
\switchtobodyfont<https://wiki.contextgarden.net/Command/switchtobodyfont> described below 
in Complete Font 
Change<https://wiki.contextgarden.net/Font_Switching#Complete_font_change>. However, it is 
fine to use them as style directives in setup commands, that is, using them as an option for 
style=<https://wiki.contextgarden.net/Style_and_Color_Parameters>... in any setup command 
that accepts style option
 From this, I'd infer that a <style=tfx> or <style=\tfx> should change the 
interline spacing as well. But it does not seem to be the case as the example below shows.
Using style=\tfx is roughly equivalent to typing `\tfx` at an appropriate 
place. There is no automatic \setupinterlinespace after the style value is 
executed.

There is always the option to use \switchtobodyfont to change the font size which affects also the linespacing but in this case one need \setupinterlinespace after \tfx.

In older versions (a few months ago) even \switchtobodyfont didn't help here when you used the style-key to change the font size.

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to