* \FlushStep eats all spaces
@ 2009-02-05 19:03 Peter Münster
2009-02-05 19:36 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Peter Münster @ 2009-02-05 19:03 UTC (permalink / raw)
To: ConTeXt list
Hello,
\FlushStep eats all kind of breakable spaces (" ", "\ " and "\space"):
\usemodule[pre-stepwise]
\setupinteraction[state=start]
\starttext
\StartSteps
bla \FlushStep bla\FlushStep
\StopSteps
\page
\StartSteps
bla\ \FlushStep\ bla\FlushStep
\StopSteps
\page
\StartSteps
bla\space\FlushStep\space bla\FlushStep
\StopSteps
\page
Workaround:\blank
\StartSteps
bla\FlushStep\relax\ bla\FlushStep
\StopSteps
\stoptext
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \FlushStep eats all spaces
2009-02-05 19:03 \FlushStep eats all spaces Peter Münster
@ 2009-02-05 19:36 ` Wolfgang Schuster
2009-02-05 20:49 ` Peter Münster
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-02-05 19:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 05.02.2009 um 20:03 schrieb Peter Münster:
> Hello,
>
> \FlushStep eats all kind of breakable spaces (" ", "\ " and "\space"):
>
> \usemodule[pre-stepwise]
> \setupinteraction[state=start]
Here is a ConTeXt version of LaTeX's \g@addto@macro macro.
\long\def\addmacro#1\to#2% better name needed
{\begingroup
\scratchtoks\expandafter{#2#1}%
\xdef#2{\the\scratchtoks}%
\endgroup}
\addmacro\relax\to\FlushStep
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \FlushStep eats all spaces
2009-02-05 19:36 ` Wolfgang Schuster
@ 2009-02-05 20:49 ` Peter Münster
2009-02-05 20:58 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Peter Münster @ 2009-02-05 20:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 5 Feb 2009, Wolfgang Schuster wrote:
> Here is a ConTeXt version of LaTeX's \g@addto@macro macro.
>
> \long\def\addmacro#1\to#2% better name needed
> {\begingroup
> \scratchtoks\expandafter{#2#1}%
> \xdef#2{\the\scratchtoks}%
> \endgroup}
>
> \addmacro\relax\to\FlushStep
This seems to be just another work-around.
Wouldn't it be better, to adjust the definition of FlushStep in
s-pre-60.tex?
Like this for example:
\def\FlushStep{\iftrialtypesetting\else\StopStep\NextStep\StartStep\fi\relax}
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \FlushStep eats all spaces
2009-02-05 20:49 ` Peter Münster
@ 2009-02-05 20:58 ` Wolfgang Schuster
2009-02-05 21:56 ` Peter Münster
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-02-05 20:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 05.02.2009 um 21:49 schrieb Peter Münster:
> On Thu, 5 Feb 2009, Wolfgang Schuster wrote:
>
>> Here is a ConTeXt version of LaTeX's \g@addto@macro macro.
>>
>> \long\def\addmacro#1\to#2% better name needed
>> {\begingroup
>> \scratchtoks\expandafter{#2#1}%
>> \xdef#2{\the\scratchtoks}%
>> \endgroup}
>>
>> \addmacro\relax\to\FlushStep
>
> This seems to be just another work-around.
> Wouldn't it be better, to adjust the definition of FlushStep in
> s-pre-60.tex?
>
> Like this for example:
> \def\FlushStep{\iftrialtypesetting\else\StopStep\NextStep\StartStep
> \fi\relax}
1. Only Hans can do this.
2. This is also what happens with my macro.
3. I think it's better to use my macro than to use manual patched
\FlushStep in your file.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-05 21:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 19:03 \FlushStep eats all spaces Peter Münster
2009-02-05 19:36 ` Wolfgang Schuster
2009-02-05 20:49 ` Peter Münster
2009-02-05 20:58 ` Wolfgang Schuster
2009-02-05 21:56 ` Peter Münster
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).