[NTG-context] Spurious space when using space=on with \startlines

2011-10-16 Thread Marco
Hi,

\startlines with  the space=on option produces  a spurious
space. Is that intended? I don't see a reason to introduce
a space.



\setuplines [style=mono]
\starttext

% for whatever
\startlines
for {\it whatever}
\stoplines

% for  whatever
\startlines [space=on]
for {\it whatever}
\stoplines

% Workaround
% for whatever
\startlines [space=on]
for {\it{}whatever} % or
for{\it whatever}
\stoplines

\stoptext



Regards

Marco Patzer


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space when using space=on with \startlines

2011-10-16 Thread Wolfgang Schuster

Am 16.10.2011 um 16:31 schrieb Marco:

 Hi,
 
 \startlines with  the space=on option produces  a spurious
 space. Is that intended? I don't see a reason to introduce
 a space.
 
 
 
 \setuplines [style=mono]
 \starttext
 
 % for whatever
 \startlines
 for {\it whatever}
 \stoplines
 
 % for  whatever
 \startlines [space=on]
 for {\it whatever}

for \italic{whatever}


You can use the commands \italic, \bold etc. which accept the text as argument
or you can define your own commands with \definehighlight or \definestyle which
will then also accept a argument like \italic above.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space when using space=on with \startlines

2011-10-16 Thread Marco
On 2011-10-16 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

  % for  whatever
  \startlines [space=on]
  for {\it whatever}
 
 for \italic{whatever}

This works, thanks.

However I  still don't know,  where the space  comes from,
since the space after \it is eaten by TeX.

Marco


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___