ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in \startdocument
@ 2017-01-24 19:53 Henri Menke
  2017-01-25 10:23 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2017-01-24 19:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear devs,

It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug.  The PDF subject is not set using metadata:subject but with metadata:subtitle.  This is not a big issue by itself but merely a little confusing.  What’s worse is that using metadata:subject throws an error which is completely unexpected at this point.  Below you find the error message and a MWE to reproduce.

---

! Undefined control sequence

<argument> \c!subject 
           =\documentvariable {metadata:subject}


---

\setupinteraction[state=start]

\startdocument
  [
    metadata:subject={Subject},
  ]

Hello World!
  
\stopdocument
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in \startdocument
  2017-01-24 19:53 Bug in \startdocument Henri Menke
@ 2017-01-25 10:23 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2017-01-25 10:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/24/2017 8:53 PM, Henri Menke wrote:
> Dear devs,
>
> It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug.  The PDF subject is not set using metadata:subject but with metadata:subtitle.  This is not a big issue by itself but merely a little confusing.  What’s worse is that using metadata:subject throws an error which is completely unexpected at this point.  Below you find the error message and a MWE to reproduce.
>
> ---
>
> ! Undefined control sequence
>
> <argument> \c!subject
>            =\documentvariable {metadata:subject}

ok, fixed in next beta

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-25 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 19:53 Bug in \startdocument Henri Menke
2017-01-25 10:23 ` Hans Hagen

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).