[NTG-context] the last page of a document

2010-04-23 Thread Marius
Hello,

I am writing an environment for a document and there should be a page
with some text at the end of the document. In LaTeX I use
\AtEndDocument{} command, but how does one achieve the same effect in
ConTeXt?

Thanks,
Marius
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] the last page of a document

2010-04-23 Thread Taco Hoekwater

Marius wrote:

Hello,

I am writing an environment for a document and there should be a page
with some text at the end of the document. In LaTeX I use
\AtEndDocument{} command, but how does one achieve the same effect in
ConTeXt?


\appendtoks (stuff I want to do) \to\everystoptext

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] the last page of a document

2010-04-23 Thread Marius
On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater t...@elvenkind.com wrote:
 Marius wrote:

 Hello,

 I am writing an environment for a document and there should be a page
 with some text at the end of the document. In LaTeX I use
 \AtEndDocument{} command, but how does one achieve the same effect in
 ConTeXt?

 \appendtoks (stuff I want to do) \to\everystoptext

Thank you for the help, but with this command I have a little problem.
The two pages at the end of the attached document should be the same,
but, as given in this example, the \vfill command does not work as
expected, if added to the \appendtoks. The \vfill fills just half of
the page.


test2.pdf
Description: Adobe PDF document


test2.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] the last page of a document

2010-04-23 Thread Taco Hoekwater

Marius wrote:

On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater t...@elvenkind.com wrote:

Marius wrote:

Hello,

I am writing an environment for a document and there should be a page
with some text at the end of the document. In LaTeX I use
\AtEndDocument{} command, but how does one achieve the same effect in
ConTeXt?

\appendtoks (stuff I want to do) \to\everystoptext


Thank you for the help, but with this command I have a little problem.
The two pages at the end of the attached document should be the same,
but, as given in this example, the \vfill command does not work as
expected, if added to the \appendtoks. The \vfill fills just half of
the page.


That is because \stoptext adds another \vfill at the bottom of the
page. This works:

\appendtoks \page
must be at the top\vfill must be at the bottom\vfillneg
\to\everystoptext

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___