From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \documentvariable (used in environment)
Date: Thu, 23 Jul 2020 06:36:26 +0200 [thread overview]
Message-ID: <7210cc4e-9006-500f-728e-e526bc193732@gmail.com> (raw)
In-Reply-To: <7d956ed7-147a-a77b-6b45-76c8f303fd1d@comcast.net>
Alan Braslau schrieb am 23.07.2020 um 00:21:
> 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?
What exactly doesn't work and do you get the same problems when you set
the values in the following minimal example (everything has to be in the
same file).
%%%% begin example
\setupdocument
[metadata:title={\documentvariable{title}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords}}]
\startdocument [title={My title}]
\input knuth
\stopdocument
%%%% end example
Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-07-23 4:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 22:21 Alan Braslau
2020-07-23 4:36 ` Wolfgang Schuster [this message]
2020-07-24 22:21 ` Alan Braslau
2020-07-25 8:20 ` Wolfgang Schuster
2020-07-25 8:40 ` Henning Hraban Ramm
2020-07-25 14:37 ` Alan Braslau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7210cc4e-9006-500f-728e-e526bc193732@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).