* The very last macro
@ 2009-03-25 9:21 luigi scarso
2009-03-25 12:01 ` Wolfgang Schuster
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 9:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
TIA
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 9:21 The very last macro luigi scarso
@ 2009-03-25 12:01 ` Wolfgang Schuster
2009-03-25 12:35 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Wolfgang Schuster @ 2009-03-25 12:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 12:01 ` Wolfgang Schuster
@ 2009-03-25 12:35 ` luigi scarso
2009-03-25 12:41 ` Wolfgang Schuster
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 12:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 1:01 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> 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?
hm
\def\normalend{FOO}
\starttext
hello
\stoptext
stops with
*
while
\def\normalend{FOO\end}
\starttext
hello
\stoptext
has an endless loop .
(what I expected is a pdf exactly like this
\starttext
hello
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 12:35 ` luigi scarso
@ 2009-03-25 12:41 ` Wolfgang Schuster
2009-03-25 12:52 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Wolfgang Schuster @ 2009-03-25 12:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 12:41 ` Wolfgang Schuster
@ 2009-03-25 12:52 ` luigi scarso
2009-03-25 12:57 ` Wolfgang Schuster
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 12:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 1:41 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 12:52 ` luigi scarso
@ 2009-03-25 12:57 ` Wolfgang Schuster
2009-03-25 13:11 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Wolfgang Schuster @ 2009-03-25 12:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 25.03.2009 um 13:52 schrieb luigi scarso:
> On Wed, Mar 25, 2009 at 1:41 PM, Wolfgang Schuster
> <schuster.wolfgang@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, if you don't say what do you
want to achieve there is no way to give you a answer.
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] 28+ messages in thread
* Re: The very last macro
2009-03-25 12:57 ` Wolfgang Schuster
@ 2009-03-25 13:11 ` luigi scarso
2009-03-25 13:19 ` Wolfgang Schuster
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 13:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 1:57 PM, Wolfgang Schuster
<schuster.wolfgang@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.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 13:11 ` luigi scarso
@ 2009-03-25 13:19 ` Wolfgang Schuster
2009-03-25 14:00 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Wolfgang Schuster @ 2009-03-25 13:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 13:19 ` Wolfgang Schuster
@ 2009-03-25 14:00 ` luigi scarso
2009-03-25 14:44 ` Wolfgang Schuster
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 14:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 2:19 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 14:00 ` luigi scarso
@ 2009-03-25 14:44 ` Wolfgang Schuster
2009-03-25 15:01 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Wolfgang Schuster @ 2009-03-25 14:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 14:44 ` Wolfgang Schuster
@ 2009-03-25 15:01 ` luigi scarso
2009-03-25 15:25 ` Peter Rolf
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 15:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
<schuster.wolfgang@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 "Something....reason." 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 15:01 ` luigi scarso
@ 2009-03-25 15:25 ` Peter Rolf
2009-03-25 15:31 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Peter Rolf @ 2009-03-25 15:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
luigi scarso schrieb:
> On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
> <schuster.wolfgang@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 "Something....reason." 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 15:25 ` Peter Rolf
@ 2009-03-25 15:31 ` luigi scarso
2009-03-25 15:40 ` Peter Rolf
2009-03-25 15:53 ` Aditya Mahajan
0 siblings, 2 replies; 28+ messages in thread
From: luigi scarso @ 2009-03-25 15:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Mar 25, 2009 at 4:25 PM, Peter Rolf <indiego@gmx.net> wrote:
> luigi scarso schrieb:
>>
>> On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
>> <schuster.wolfgang@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 "Something....reason." 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 15:31 ` luigi scarso
@ 2009-03-25 15:40 ` Peter Rolf
2009-03-25 15:53 ` Aditya Mahajan
1 sibling, 0 replies; 28+ messages in thread
From: Peter Rolf @ 2009-03-25 15:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
luigi scarso schrieb:
> On Wed, Mar 25, 2009 at 4:25 PM, Peter Rolf <indiego@gmx.net> wrote:
>
>> luigi scarso schrieb:
>>
>>> On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
>>> <schuster.wolfgang@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 "Something....reason." 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 15:31 ` luigi scarso
2009-03-25 15:40 ` Peter Rolf
@ 2009-03-25 15:53 ` Aditya Mahajan
2009-03-25 16:13 ` luigi scarso
1 sibling, 1 reply; 28+ messages in thread
From: Aditya Mahajan @ 2009-03-25 15:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2301 bytes --]
On Wed, 25 Mar 2009, luigi scarso wrote:
> On Wed, Mar 25, 2009 at 4:25 PM, Peter Rolf <indiego@gmx.net> wrote:
>> luigi scarso schrieb:
>>>
>>> On Wed, Mar 25, 2009 at 3:44 PM, Wolfgang Schuster
>>> <schuster.wolfgang@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 "Something....reason." 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
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 :-)
Aditya
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 28+ messages in thread
* Re: The very last macro
2009-03-25 15:53 ` Aditya Mahajan
@ 2009-03-25 16:13 ` luigi scarso
2009-03-26 8:56 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-25 16:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
> 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
\starttext
hello
\stoptext
I want be sure that
"..what ever.."
will never introduce differences with
\startext
my stuffs here
\stoptext
for *ever* "my stuff here" and for *ever* "..what ever.."
I believe that it's no possible.
Anyway
\def\LuigisWhateverShouldHappen{..what ever...}
\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\starttext
hello
\stoptext
can be good enought .
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-25 16:13 ` luigi scarso
@ 2009-03-26 8:56 ` Hans Hagen
2009-03-26 9:20 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2009-03-26 8:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 8:56 ` Hans Hagen
@ 2009-03-26 9:20 ` luigi scarso
2009-03-26 9:33 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 9:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
> \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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 9:20 ` luigi scarso
@ 2009-03-26 9:33 ` luigi scarso
2009-03-26 9:52 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 9:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> \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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 9:33 ` luigi scarso
@ 2009-03-26 9:52 ` Hans Hagen
2009-03-26 10:19 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2009-03-26 9:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 9:52 ` Hans Hagen
@ 2009-03-26 10:19 ` luigi scarso
2009-03-26 10:50 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 10:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
> \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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 10:19 ` luigi scarso
@ 2009-03-26 10:50 ` Hans Hagen
2009-03-26 13:08 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2009-03-26 10:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 10:50 ` Hans Hagen
@ 2009-03-26 13:08 ` luigi scarso
2009-03-26 13:58 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 13:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, Mar 26, 2009 at 11:50 AM, Hans Hagen <pragma@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 bad>0 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 13:08 ` luigi scarso
@ 2009-03-26 13:58 ` Hans Hagen
2009-03-26 14:14 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2009-03-26 13:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
luigi scarso wrote:
> On Thu, Mar 26, 2009 at 11:50 AM, Hans Hagen <pragma@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 13:58 ` Hans Hagen
@ 2009-03-26 14:14 ` luigi scarso
2009-03-26 14:53 ` Hans Hagen
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 14:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1521 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 1766 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 28+ messages in thread
* Re: The very last macro
2009-03-26 14:14 ` luigi scarso
@ 2009-03-26 14:53 ` Hans Hagen
2009-03-26 15:39 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: Hans Hagen @ 2009-03-26 14:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: The very last macro
2009-03-26 14:53 ` Hans Hagen
@ 2009-03-26 15:39 ` luigi scarso
2009-03-26 17:06 ` luigi scarso
0 siblings, 1 reply; 28+ messages in thread
From: luigi scarso @ 2009-03-26 15:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3440 bytes --]
>
> 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 bad>0 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
[-- Attachment #1.2: Type: text/html, Size: 4892 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 28+ messages in thread
* Re: The very last macro
2009-03-26 15:39 ` luigi scarso
@ 2009-03-26 17:06 ` luigi scarso
0 siblings, 0 replies; 28+ messages in thread
From: luigi scarso @ 2009-03-26 17:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3706 bytes --]
On Thu, Mar 26, 2009 at 4:39 PM, luigi scarso <luigi.scarso@gmail.com>wrote:
> 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 bad>0 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
[-- Attachment #1.2: Type: text/html, Size: 5502 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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] 28+ messages in thread
end of thread, other threads:[~2009-03-26 17:06 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 9:21 The very last macro luigi scarso
2009-03-25 12:01 ` Wolfgang Schuster
2009-03-25 12:35 ` luigi scarso
2009-03-25 12:41 ` Wolfgang Schuster
2009-03-25 12:52 ` luigi scarso
2009-03-25 12:57 ` Wolfgang Schuster
2009-03-25 13:11 ` luigi scarso
2009-03-25 13:19 ` Wolfgang Schuster
2009-03-25 14:00 ` luigi scarso
2009-03-25 14:44 ` Wolfgang Schuster
2009-03-25 15:01 ` luigi scarso
2009-03-25 15:25 ` Peter Rolf
2009-03-25 15:31 ` luigi scarso
2009-03-25 15:40 ` Peter Rolf
2009-03-25 15:53 ` Aditya Mahajan
2009-03-25 16:13 ` luigi scarso
2009-03-26 8:56 ` Hans Hagen
2009-03-26 9:20 ` luigi scarso
2009-03-26 9:33 ` luigi scarso
2009-03-26 9:52 ` Hans Hagen
2009-03-26 10:19 ` luigi scarso
2009-03-26 10:50 ` Hans Hagen
2009-03-26 13:08 ` luigi scarso
2009-03-26 13:58 ` Hans Hagen
2009-03-26 14:14 ` luigi scarso
2009-03-26 14:53 ` Hans Hagen
2009-03-26 15:39 ` luigi scarso
2009-03-26 17:06 ` luigi scarso
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).