Hello,
I have put the following in an environment
\startenvironment MYENVIRONMENT
\setupdocument
[metadata:title={\documentvariable{title}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords}}]
\stopenvironment
and correct use would be
\environment MYENVIRONMENT
\startdocument [title={My title}]
\stopdocument
because, of course, the environment contains more than \setupdocument
such as font loading that should be done before the \startdocument.
The metadata does not get set properly, having to do with expansion or
other notions of TeX that I never seem to get right. What might be the
proper way of handling this?
Thank you
Alan