[NTG-context] \appendtoks and structuring commands

Sam Ḥilluc shilluc at gmx.com
Tue Mar 24 20:48:12 CET 2015


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.


More information about the ntg-context mailing list