From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93362 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TeX markup in \setupinteraction for PDF metadata fields Date: Sun, 17 Jan 2016 23:43:54 +0100 Message-ID: <569C192A.1030504@gmail.com> References: <569BC8BD.3000708@gmail.com> <569BDD13.3020306@gmail.com> <20160117115549.494db3a5@cea.fr> <569BE704.2020806@gmail.com> <20160117153942.683a5b06@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4162138546239263628==" X-Trace: ger.gmane.org 1453070686 26619 80.91.229.3 (17 Jan 2016 22:44:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2016 22:44:46 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan BRASLAU Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 17 23:44:34 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKw3l-0001Kz-Bt for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jan 2016 23:44:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 920305D1A; Sun, 17 Jan 2016 23:44:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lbjqqyXpZhFX; Sun, 17 Jan 2016 23:44:10 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 686AC5F0D; Sun, 17 Jan 2016 23:44:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3CCE65938 for ; Sun, 17 Jan 2016 23:44:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZLaPKvMxWUOq for ; Sun, 17 Jan 2016 23:44:08 +0100 (CET) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 49BDC547 for ; Sun, 17 Jan 2016 23:43:58 +0100 (CET) Original-Received: by mail-wm0-f50.google.com with SMTP id n5so38678887wmn.0 for ; Sun, 17 Jan 2016 14:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=oaPnDy5qIQ5qkzy8KfgMMijLTUQ4pXTKrhdBhEcx8X8=; b=N8SUMKRyTz4IkXtGeEFbV1/U6a+yV+WrhoHi6fY41uZ6r0AWRAcf4S4PH/8/BEAGdD hbxpIi7GlPImpEbHhoNsNvVdXinJdxCN3Yb7naxkyLFYhySzMSND/c/GFjB71aUGvtX4 lPnv6f2pNKSKj1eD5Alce2vuQ0A32M1T3pzs8n+wRkJB3IUv17hkg0WdNv2qg5KWjHbj zGWhAMSRvbkiADJS03d15F5IRpUoy/11yF65DkdPBWixGUiOocw6aV/S2IV5rN1uSjiP 2Up9VV218FC7puxnyQqCrNHBX1DqrUIpn32mXuf0PuB8e4TOjZEuu6PiDHlw4p8dQ/zT 332A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=oaPnDy5qIQ5qkzy8KfgMMijLTUQ4pXTKrhdBhEcx8X8=; b=JrfYY8GDQygYdScsTII8Wf0ObRBj5NBoDc0xfnxBY/+nbSpbAJj1aEn8cNMUE96kKj 1GGib7vXFP/bp8vHPAhgZTdBZMsjt8R8g5KREHX1THMoPwsZamo6qK77yvviWhuk8/dJ HquJz94KMBOWJsjNRcj3R6C6OT1b/zbNs/t07i3cQRcqzG3pGoKlFr2YHlunfzVpgAp6 SwvQnsB015oegsyy4w2L+5rJgcGXKHPLTBB8ehzk/KRo+3KU53uy/xlOvXgCMxP6BVnw rNEVcrdmhUkd7FGxOcFByknGNFzOWLU4/wb2s/n70Q6dt9VJBYzb2Nb0RFzI8DC0M+ZB hCHg== X-Gm-Message-State: AG10YOQLxCiH4rRNWPyXr06rUcvymvSpB79NGP2R68bLWE7CvsKPQ5YKEptkUqObZO3UFw== X-Received: by 10.28.48.131 with SMTP id w125mr9242719wmw.18.1453070637830; Sun, 17 Jan 2016 14:43:57 -0800 (PST) Original-Received: from keima.localdomain (x2f29812.dyn.telefonica.de. [2.242.152.18]) by smtp.gmail.com with ESMTPSA id v82sm13019335wmv.12.2016.01.17.14.43.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jan 2016 14:43:57 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20160117153942.683a5b06@cea.fr> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93362 Archived-At: This is a multi-part message in MIME format. --===============4162138546239263628== Content-Type: multipart/alternative; boundary="------------080908070305050803050507" This is a multi-part message in MIME format. --------------080908070305050803050507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Alan BRASLAU > 17. Januar 2016 um 23:39 > On Sun, 17 Jan 2016 20:09:56 +0100 > > 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 I would separate both settings and put \setupdocument somewhere in the preamble. \setupdocument [metadata:title=\documentvariable{title}, metadata:author=\documentvariable{author}] \startdocument [title=My title, author=Me] ... \stopdocument Wolfgang --------------080908070305050803050507 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
17. Januar 2016 um 23:39
On Sun, 17 Jan 2016 20:09:56 +0100

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
I would separate both settings and put \setupdocument somewhere in the preamble.

\setupdocument
  [metadata:title=\documentvariable{title},
   metadata:author=\documentvariable{author}]

\startdocument
  [title=My title,
   author=Me]
...
\stopdocument

Wolfgang
--------------080908070305050803050507-- --===============4162138546239263628== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4162138546239263628==--