![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 6/16/2020 10:36 PM, Aditya Mahajan wrote:
Hi,
This question is motivated by a question of TeX.SE (https://tex.stackexchange.com/questions/549725/context-strange-issue-with-ty...).
Basically, the OP defined
\starttypescriptcollection[fira] ... \stoptypescriptcollection
\setuphead[section][style={\switchtobodyfont[fira,sans]}]
\starttext \section{section 1} \section{section 2} \section{section 3} \stoptext
and found that the first section was indented. As Wolfgang explained in a comment, this happens because of the newlines at the end of each \definesynonym in \starttypescriptcollection. Wolfgang also explained how to avoid this error.
I am wondering if it makes sense to change the definition of \starttypescriptcollection or \starttypescript so that newlines are automatically ignored (similar to \startsetups). could be but not watertight ... i'll send you some test
anyway, locally initializing a font is a bad idea, and there's a warning on the console about it ... one can say \usebodyfont[fira,sans] at the top and get it predefined Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------