the last page of a document
![](https://secure.gravatar.com/avatar/2ffcba972651c47fd5edcfd3195c0222.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/2ffcba972651c47fd5edcfd3195c0222.jpg?s=120&d=mm&r=g)
On Fri, Apr 23, 2010 at 9:34 AM, 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
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.
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Marius wrote:
On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater
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
participants (2)
-
Marius
-
Taco Hoekwater