Re: [dev-context] Line endings with \starttypescript

2020-06-17 Thread Hans Hagen

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-typescript). 



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
-
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


[dev-context] Line endings with \starttypescript

2020-06-16 Thread Aditya Mahajan

Hi,

This question is motivated by a question of TeX.SE 
(https://tex.stackexchange.com/questions/549725/context-strange-issue-with-typescript).

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).

Aditya

___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context