[NTG-context] TeX markup in \setupinteraction for PDF metadata fields

Alan BRASLAU alan.braslau at cea.fr
Sun Jan 17 23:39:42 CET 2016


On Sun, 17 Jan 2016 20:09:56 +0100
Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:

> But, if I want to use the title etc. in the title page, should I do
> something like:
> 
> \starttitlepagemakeup
> \getvariable{document}{metadata:title}
> \stoptitlepagemakeup
> It depends, when you want the title in the pdf without a manual
> setting with \setupinteraction you can use the value of
> “metadata:title” in your document.

Thanks, again, these are useful pointers.
In conclusion, good practice could be (but would this work?):

\startdocument
  [title=My title,
   metadata:title=\documentvariable{title},
   author=Me,
   metadata:author=\documentvariable{author}]
...
\stopdocument


Alan


More information about the ntg-context mailing list