* Spurious space when using space=on with \startlines
@ 2011-10-16 14:31 Marco
2011-10-16 16:11 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Marco @ 2011-10-16 14:31 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Spurious space when using space=on with \startlines
2011-10-16 14:31 Spurious space when using space=on with \startlines Marco
@ 2011-10-16 16:11 ` Wolfgang Schuster
2011-10-16 16:38 ` Marco
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-10-16 16:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Spurious space when using space=on with \startlines
2011-10-16 16:11 ` Wolfgang Schuster
@ 2011-10-16 16:38 ` Marco
0 siblings, 0 replies; 3+ messages in thread
From: Marco @ 2011-10-16 16:38 UTC (permalink / raw)
To: ntg-context
On 2011-10-16 Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-16 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-16 14:31 Spurious space when using space=on with \startlines Marco
2011-10-16 16:11 ` Wolfgang Schuster
2011-10-16 16:38 ` Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).