Re: [NTG-context] The very last macro

2009-03-26 Thread Hans Hagen

luigi scarso wrote:

You said that you wanted \LuigisWhateverShouldHappen macro to be executed,
which in turn means that \immediate\write18 is executed, the text Something
 reason is written to the pdf, and the macro \imediate\write18 is
executed.

If you do not want the text to be written to the pdf, do not add it to
\LuigisWhat... macro :-)

true, but not so robust.

\def\LuigisWhateverShouldHappen{..what ever...}
\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout


\everystoptext
\everygoodbye
\everylastgoodbye

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
 \everystoptext
 \everygoodbye
 \everylastgoodbye
I will never stop to learn  (and to make silly questions too, unfortunatly )

Many thanks
-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread Hans Hagen

luigi scarso wrote:

\everylastgoodbye

Not found.
Maybe \everylastshipout ?


\newtoks \everystoptext
\newtoks \everybye
\newtoks \everygoodbye
\newtoks \everynotabene   % this one is for collected error messages and so


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
 \newtoks \everynotabene   % this one is for collected error messages and so
not in minimals,
only minimals-beta

-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
 \everylastgoodbye
Not found.
Maybe \everylastshipout ?


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread Hans Hagen

luigi scarso wrote:

\newtoks \everynotabene   % this one is for collected error messages and so

not in minimals,
only minimals-beta


sure, and mostly meant for mkiv

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
On Thu, Mar 26, 2009 at 11:50 AM, Hans Hagen pra...@wxs.nl wrote:
 luigi scarso wrote:

 \newtoks \everynotabene   % this one is for collected error messages and
 so

 not in minimals,
 only minimals-beta

 sure, and mostly meant for mkiv
hmm,
maybe I  can make a bit of hacking to luatex.web,
maybe
final_cleanup; {prepare for death}




@ Now this is really it: \TeX\ starts and ends here.

The initial test involving |ready_already| should be deleted if the
\PASCAL\ runtime system is smart enough to detect such a ``mistake.''
@^system dependencies@

@p begin @!{|start_here|}
history:=fatal_error_stop; {in case we quit during initialization}
t_open_out; {open the terminal for output}
if ready_already=314159 then goto start_of_TEX;
@Check the ``constant'' values...@@;
if bad0 then
  begin wterm_ln('Ouch---my internal constants have been clobbered!',
'---case ',bad:1);
@.Ouch...clobbered@
  goto final_end;
  end;
initialize; {set global variables to their starting values}
@!init if not get_strings_started then goto final_end;
init_prim; {call |primitive| for each primitive}
init_str_ptr:=str_ptr; init_pool_ptr:=pool_ptr; fix_date_and_time;
tini@/
ready_already:=314159;
start_of_TEX: @Initialize the output routines@;
@Get the first line of input and prepare to start@;
history:=spotless; {ready to go!}
@Initialize synctex primitive@
main_control; {come to life}
final_cleanup; {prepare for death}
end_of_TEX: close_files_and_terminate;
final_end: ready_already:=0;
end.


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread Hans Hagen

luigi scarso wrote:

On Thu, Mar 26, 2009 at 11:50 AM, Hans Hagen pra...@wxs.nl wrote:

luigi scarso wrote:

\newtoks \everynotabene   % this one is for collected error messages and
so

not in minimals,
only minimals-beta

sure, and mostly meant for mkiv

hmm,
maybe I  can make a bit of hacking to luatex.web,
maybe
final_cleanup; {prepare for death}


why, what do you want to achieve; there are already such hooks

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
 why, what do you want to achieve; there are already such hooks
The original request was
sorry for the noise :
is there in mkiv a very last macro ?
I mean something like
\IamCallAtTheReallyEnd{..}
which does absolutly nothing to the pdf , and  after  which mkiv ends
without calls any other macro

Peter suggest to use \everylastshipout;
but this

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext

write
Something Luigi want to do for some unknown reason.

near the bottom of pdf (and I don't want it)
and BOOM! on log (which is a way to say that this macro was called)


Aditya suggests to put nothing to print in
\LuigisWhateverShouldHappen
and I said that it's no a robust solution .


BTW, for a specific document, this is actually a solution -- just need a bit
of test --

I'm almost sure that there is no solutions much differents from this one.
From luatex.web , around line 22423 :

@ We don't want to leave |main_control| immediately when a |stop| command
is sensed, because it may be necessary to invoke an \.{\\output} routine
several times before things really grind to a halt. (The output routine
might even say `\.{\\gdef\\end\{...\}}', to prolong the life of the job.)
Therefore |its_all_over| is |true| only when the current page
and contribution list are empty, and when the last output was not a
``dead cycle.''


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread Hans Hagen

luigi scarso wrote:

why, what do you want to achieve; there are already such hooks

The original request was
sorry for the noise :
is there in mkiv a very last macro ?
I mean something like
\IamCallAtTheReallyEnd{..}
which does absolutly nothing to the pdf , and  after  which mkiv ends
without calls any other macro

Peter suggest to use \everylastshipout;
but this

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext

write
Something Luigi want to do for some unknown reason.

near the bottom of pdf (and I don't want it)
and BOOM! on log (which is a way to say that this macro was called)


the problem is in your definition of 'end' and 'bottom'

the real final thing is \end and \everygoodbye happens just before that 
(the only calls after it are postponed error messages, which have no 
consequence for any pdf and the primitive \end which is really needed)


of course there can be pending conditional branches that needs to be 
finished; just try \appendtoks\tracingall\to\everygoodbye


You can also do something

\startluacode
table.insert(input.stop_actions, function()
texio.write_nl(I still have no clue why you need it.)
end)
\stopluacode

any other hook in itself will introduce a new situation of 'something 
done before the real \end'


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso

 the problem is in your definition of 'end' and 'bottom'

??
end := end of run
bottom := bottom of last page, in this case




 the real final thing is \end and \everygoodbye happens just before that
 (the only calls after it are postponed error messages, which have no
 consequence for any pdf and the primitive \end which is really needed)

yes, as I seen  in \def\stoptext


 of course there can be pending conditional branches that needs to be
 finished; just try \appendtoks\tracingall\to\everygoodbye

true



 You can also do something

 \startluacode
table.insert(input.stop_actions, function()
texio.write_nl(I still have no clue why you need it.)
end)
 \stopluacode


 ok thank you -- I like lua code  --



 any other hook in itself will introduce a new situation of 'something done
 before the real \end'


exactly what I mean:
any other hook in itself will introduce a new situation of 'something done
before the real \end'
that potentially can modify current page .




Consider this:
between
final_cleanup; {prepare for death}

and
end_of_TEX: close_files_and_terminate;

insert
{* MY HACK }
almost_death ;{I see state, but it's  'frozen' so any modification  will
never influence  pdf or dvi , only to log or terminal or external files}
{***}

in   almost_death you can do what ever you want -- you will never modify
(relevant part of ) state
that can influence final pdf or dvi .

==
@ Now this is really it: \TeX\ starts and ends here.

The initial test involving |ready_already| should be deleted if the
\PASCAL\ runtime system is smart enough to detect such a ``mistake.''
@^system dependencies@

@p begin @!{|start_here|}
history:=fatal_error_stop; {in case we quit during initialization}
t_open_out; {open the terminal for output}
if ready_already=314159 then goto start_of_TEX;
@Check the ``constant'' values...@@;
if bad0 then
  begin wterm_ln('Ouch---my internal constants have been clobbered!',
'---case ',bad:1);
@.Ouch...clobbered@
  goto final_end;
  end;
initialize; {set global variables to their starting values}
@!init if not get_strings_started then goto final_end;
init_prim; {call |primitive| for each primitive}
init_str_ptr:=str_ptr; init_pool_ptr:=pool_ptr; fix_date_and_time;
tini@/
ready_already:=314159;
start_of_TEX: @Initialize the output routines@;
@Get the first line of input and prepare to start@;
history:=spotless; {ready to go!}
@Initialize synctex primitive@
main_control; {come to life}
final_cleanup; {prepare for death}
{* MY HACK }
almost_death ;{I see state, but it's  'frozen' so any modification  will
never influence  pdf or dvi , only to log or terminal or external files}
{***}
end_of_TEX: close_files_and_terminate;
final_end: ready_already:=0;
end.

===


anyway,  as I wrote , this is not bad:

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext

\LuigisWhateverShouldHappen
can be made more robust -- for example you can find a way to nullify
Something...reason. so it doesn't appear on final pdf , and so on --



-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-26 Thread luigi scarso
On Thu, Mar 26, 2009 at 4:39 PM, luigi scarso luigi.sca...@gmail.comwrote:

 the problem is in your definition of 'end' and 'bottom'

 ??
 end := end of run
 bottom := bottom of last page, in this case




 the real final thing is \end and \everygoodbye happens just before that
 (the only calls after it are postponed error messages, which have no
 consequence for any pdf and the primitive \end which is really needed)

 yes, as I seen  in \def\stoptext


 of course there can be pending conditional branches that needs to be
 finished; just try \appendtoks\tracingall\to\everygoodbye

 true



 You can also do something

 \startluacode
table.insert(input.stop_actions, function()
texio.write_nl(I still have no clue why you need it.)
end)
 \stopluacode


  ok thank you -- I like lua code  --



 any other hook in itself will introduce a new situation of 'something done
 before the real \end'


 exactly what I mean:
 any other hook in itself will introduce a new situation of 'something done
 before the real \end'
 that potentially can modify current page .




 Consider this:
 between
 final_cleanup; {prepare for death}

 and
 end_of_TEX: close_files_and_terminate;

 insert
 {* MY HACK }
 almost_death ;{I see state, but it's  'frozen' so any modification  will
 never influence  pdf or dvi , only to log or terminal or external files}
 {***}

 in   almost_death you can do what ever you want -- you will never modify
 (relevant part of ) state
 that can influence final pdf or dvi .

 ==

 @ Now this is really it: \TeX\ starts and ends here.

 The initial test involving |ready_already| should be deleted if the
 \PASCAL\ runtime system is smart enough to detect such a ``mistake.''
 @^system dependencies@

 @p begin @!{|start_here|}
 history:=fatal_error_stop; {in case we quit during initialization}
 t_open_out; {open the terminal for output}
 if ready_already=314159 then goto start_of_TEX;
 @Check the ``constant'' values...@@;
 if bad0 then
   begin wterm_ln('Ouch---my internal constants have been clobbered!',
 '---case ',bad:1);
 @.Ouch...clobbered@
   goto final_end;
   end;
 initialize; {set global variables to their starting values}
 @!init if not get_strings_started then goto final_end;
 init_prim; {call |primitive| for each primitive}
 init_str_ptr:=str_ptr; init_pool_ptr:=pool_ptr; fix_date_and_time;
 tini@/
 ready_already:=314159;
 start_of_TEX: @Initialize the output routines@;
 @Get the first line of input and prepare to start@;
 history:=spotless; {ready to go!}
 @Initialize synctex primitive@
 main_control; {come to life}
 final_cleanup; {prepare for death}
 {* MY HACK }
 almost_death ;{I see state, but it's  'frozen' so any modification  will
 never influence  pdf or dvi , only to log or terminal or external files}
 {***}
 end_of_TEX: close_files_and_terminate;
 final_end: ready_already:=0;
 end.

 ===


 anyway,  as I wrote , this is not bad:

 \def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
 Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}


For example, this looks a bit better -- no
Something Luigi want to do for some unknown reason.

\def\LuigisWhateverShouldHappen{%
\vbox to 0pt{\vss\hbox to 0pt{\hss \immediate\write16{BOOOM!}Something Luigi
want to do for some unknown reason.
\immediate\write16{BOOOM!


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Wolfgang Schuster


Am 25.03.2009 um 10:21 schrieb luigi scarso:


sorry for the noise :
is there in mkiv a very last macro ?
I mean something like
\IamCallAtTheReallyEnd{..}
which does absolutly nothing to the pdf , and  after  which mkiv ends
without calls any other macro.


\normalend?

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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Wolfgang Schuster


Am 25.03.2009 um 13:35 schrieb luigi scarso:


(what I expected is a pdf exactly like this
\starttext
hello
\stoptext
)


\appendtoks\LuigisWhateverShouldHappen\to\everybye

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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread luigi scarso
On Wed, Mar 25, 2009 at 1:41 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 25.03.2009 um 13:35 schrieb luigi scarso:

 (what I expected is a pdf exactly like this
 \starttext
 hello
 \stoptext
 )

 \appendtoks\LuigisWhateverShouldHappen\to\everybye
hm
\def\LuigisWhateverShouldHappen{FOO}
\appendtoks\LuigisWhateverShouldHappen\to\everybye
\starttext
hello
\stoptext

has FOO on second page

-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread luigi scarso
On Wed, Mar 25, 2009 at 1:57 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 25.03.2009 um 13:52 schrieb luigi scarso:

 On Wed, Mar 25, 2009 at 1:41 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 25.03.2009 um 13:35 schrieb luigi scarso:

 (what I expected is a pdf exactly like this
 \starttext
 hello
 \stoptext
 )

 \appendtoks\LuigisWhateverShouldHappen\to\everybye

 hm
 \def\LuigisWhateverShouldHappen{FOO}
 \appendtoks\LuigisWhateverShouldHappen\to\everybye
 \starttext
 hello
 \stoptext

 has FOO on second page

 What do you expect?

 'FOO' is text and invokes the OTR,
true

if you don't say what do you
 want to achieve there is no way to give you a answer.



hmm I always wrote

(what I expected is a pdf exactly like this
\starttext
hello
\stoptext
)

see
a few lines from the bottom of my second mail

Of course there is always a way to modify  bin/context ...and so on --
but I don't mean this .


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Wolfgang Schuster


Am 25.03.2009 um 14:11 schrieb luigi scarso:


if you don't say what do you
want to achieve there is no way to give you a answer.


hmm I always wrote

(what I expected is a pdf exactly like this
\starttext
hello
\stoptext
)

see a few lines from the bottom of my second mail


What should I see?


Of course there is always a way to modify  bin/context ...and so on --
but I don't mean this .


And how could this help?

If you don't want text in your output write it after \stoptext.

\starttext
Text in the PDF.
\stoptext
Ignored text.

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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread luigi scarso
On Wed, Mar 25, 2009 at 2:19 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 25.03.2009 um 14:11 schrieb luigi scarso:

 if you don't say what do you
 want to achieve there is no way to give you a answer.

 hmm I always wrote

 (what I expected is a pdf exactly like this
 \starttext
 hello
 \stoptext
 )

 see a few lines from the bottom of my second mail

 What should I see?
this text (quoted now)

(what I expected is a pdf exactly like this
\starttext
hello
\stoptext
)

It was  a few lines from the bottom of my second mail .



 If you don't want text in your output write it after \stoptext.

 \starttext
 Text in the PDF.
 \stoptext
 Ignored text.

no :

\starttext
Text in the PDF.
\stoptext
\AlsoIgnoredMacro

\AlsoIgnoredMacro
is ignored ie it's no called .



Let's start again:

suppose that
\appendtoks\LuigisWhateverShouldHappen\to\everybye
works

So between

\def\LuigisWhateverShouldHappen{FOO}
\appendtoks\LuigisWhateverShouldHappen\to\everybye
\starttext
hello
\stoptext

and this

\starttext
hello
\stoptext

must be no differences at all.

And also
between

\def\LuigisWhateverShouldHappen{..what ever macro I like to write here ..}
\appendtoks\LuigisWhateverShouldHappen\to\everybye
\starttext
hello
\stoptext

and this

\starttext
hello
\stoptext

must be no differences at all.

But in both situations I want to be sure  that
\LuigisWhateverShouldHappen
will be the last  macro called .

I'm not saying that this macro exists;
(of course one  can manipulate /bin/context (or others  scripts)
even rewrite \stoptext )


-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Wolfgang Schuster


Am 25.03.2009 um 15:00 schrieb luigi scarso:


I'm not saying that this macro exists;
(of course one  can manipulate /bin/context (or others  scripts)
even rewrite \stoptext )



\def\LuigisWhateverShouldHappen{Something Luigi want to do for some  
unknown reason.}


\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}

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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread luigi scarso
On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 25.03.2009 um 15:00 schrieb luigi scarso:

 I'm not saying that this macro exists;
 (of course one  can manipulate /bin/context (or others  scripts)
 even rewrite \stoptext )


 \def\LuigisWhateverShouldHappen{Something Luigi want to do for some unknown
 reason.}

 \let\luigissavednormalend\normalend

 \def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}

hmm

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}


\starttext
hello
\stoptext


Ok , I don't see Somethingreason. in pdf ,but 
do you see BOOOM! in output or log ?

I don't -- so I can't say that \LuigisWhateverShouldHappen it's the
last macro before end run :( .

Your solution  looks like a macro or  text after \stoptext  -- we have
already seen it -- .



I start to suspect that this macro does  not exists .

-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Peter Rolf

luigi scarso schrieb:

On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
  

Am 25.03.2009 um 15:00 schrieb luigi scarso:



I'm not saying that this macro exists;
(of course one  can manipulate /bin/context (or others  scripts)
even rewrite \stoptext )
  

\def\LuigisWhateverShouldHappen{Something Luigi want to do for some unknown
reason.}

\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}



hmm

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}


\starttext
hello
\stoptext


Ok , I don't see Somethingreason. in pdf ,but 
do you see BOOOM! in output or log ?

I don't -- so I can't say that \LuigisWhateverShouldHappen it's the
last macro before end run :( .

Your solution  looks like a macro or  text after \stoptext  -- we have
already seen it -- .



I start to suspect that this macro does  not exists .

  

try

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout

Best wishes,  Peter

--
 Es ist doch ein Trost,
  das Geldgier manchmal blöd macht.

- Kottan in Kottan ermittelt, Folge 9: Die Einteilung -



___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread luigi scarso
On Wed, Mar 25, 2009 at 4:25 PM, Peter Rolf indi...@gmx.net wrote:
 luigi scarso schrieb:

 On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:


 Am 25.03.2009 um 15:00 schrieb luigi scarso:



 I'm not saying that this macro exists;
 (of course one  can manipulate /bin/context (or others  scripts)
 even rewrite \stoptext )


 \def\LuigisWhateverShouldHappen{Something Luigi want to do for some
 unknown
 reason.}

 \let\luigissavednormalend\normalend

 \def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}


 hmm

 \def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
 Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

 \let\luigissavednormalend\normalend

 \def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}


 \starttext
 hello
 \stoptext


 Ok , I don't see Somethingreason. in pdf ,but 
 do you see BOOOM! in output or log ?

 I don't -- so I can't say that \LuigisWhateverShouldHappen it's the
 last macro before end run :( .

 Your solution  looks like a macro or  text after \stoptext  -- we have
 already seen it -- .



 I start to suspect that this macro does  not exists .



 try

 \appendtoks\LuigisWhateverShouldHappen \to \everylastshipout




\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext


hmm,
'Something Luigi want to do for some unknown reason.'
appears (without quote) at very end of page 1



-- 
luigi
___
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
___


Re: [NTG-context] The very last macro

2009-03-25 Thread Peter Rolf

luigi scarso schrieb:

On Wed, Mar 25, 2009 at 4:25 PM, Peter Rolf indi...@gmx.net wrote:
  

luigi scarso schrieb:


On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

  

Am 25.03.2009 um 15:00 schrieb luigi scarso:




I'm not saying that this macro exists;
(of course one  can manipulate /bin/context (or others  scripts)
even rewrite \stoptext )

  

\def\LuigisWhateverShouldHappen{Something Luigi want to do for some
unknown
reason.}

\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}



hmm

\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\let\luigissavednormalend\normalend

\def\normalend{\luigissavednormalend\LuigisWhateverShouldHappen}


\starttext
hello
\stoptext


Ok , I don't see Somethingreason. in pdf ,but 
do you see BOOOM! in output or log ?

I don't -- so I can't say that \LuigisWhateverShouldHappen it's the
last macro before end run :( .

Your solution  looks like a macro or  text after \stoptext  -- we have
already seen it -- .



I start to suspect that this macro does  not exists .


  

try

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout






\def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext


hmm,
'Something Luigi want to do for some unknown reason.'
appears (without quote) at very end of page 1



  

same here. i haven't expected the text in this area. interesting :)


--
 Es ist doch ein Trost,
  das Geldgier manchmal blöd macht.

- Kottan in Kottan ermittelt, Folge 9: Die Einteilung -



___
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
___