\appendtoks and structuring commands
Hi list, I'm trying to leverage the structuring facilities of context. In my previous setup I added a title page automatically by using: \appendtoks \placetitle \to \everystarttext But now that I'm using environments and products, it doesn't seem to work. Here is a minimal (not) working example: % env.tex \startenvironment env \setuppapersize[A5] \appendtoks Title page \to \everystarttext \stopenvironment % prj.tex \startproject prj \environment env \stopproject % prd.tex \startproduct prd \project prj \starttext Bla bla \stoptext \stopproduct Note that when using \everystoptext rather than \everystarttext, it does work (it adds the text to the last page) So what am I doing wrong ? -- H.-E.
On 3/24/2015 8:48 PM, Sam Ḥilluc wrote:
Hi list,
I'm trying to leverage the structuring facilities of context. In my previous setup I added a title page automatically by using: \appendtoks \placetitle \to \everystarttext
But now that I'm using environments and products, it doesn't seem to work.
Here is a minimal (not) working example: % env.tex \startenvironment env \setuppapersize[A5] \appendtoks Title page \to \everystarttext \stopenvironment
% prj.tex \startproject prj \environment env \stopproject
% prd.tex \startproduct prd \project prj
\starttext Bla bla \stoptext \stopproduct
Note that when using \everystoptext rather than \everystarttext, it does work (it adds the text to the last page)
So what am I doing wrong ?
\startsetups [document:titlepage] bla bla \documentvariable{title} bla bla \stopsetups \setupdocument [before=\directsetup{document:titlepage}] \startdocument[title=Some title] ... \stopdocument ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2015-03-25 10:23, Hans Hagen wrote:
\startsetups [document:titlepage] bla bla \documentvariable{title} bla bla \stopsetups
\setupdocument [before=\directsetup{document:titlepage}]
\startdocument[title=Some title]
...
\stopdocument
Thanks. Can one always use `startdocument` rather than `starttext`, are there any drawbacks ? -- H.-E.
On 3/27/2015 11:27 PM, Sam Ḥilluc wrote:
On 2015-03-25 10:23, Hans Hagen wrote:
\startsetups [document:titlepage] bla bla \documentvariable{title} bla bla \stopsetups
\setupdocument [before=\directsetup{document:titlepage}]
\startdocument[title=Some title]
...
\stopdocument
Thanks.
Can one always use `startdocument` rather than `starttext`, are there any drawbacks ?
it's just a wrapper around starttext Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Sam Ḥilluc