ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* expansion inside PDF annotations
@ 2019-03-05 16:44 Pablo Rodriguez
  2019-03-06 21:34 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2019-03-05 16:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setupinteraction[state=start]
    \starttext
    \startTEXpage[offset=1em]
    Attached on \currentdate.
    \attachment
        [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf]
        [author={Attached on \currentdate},
         title={Attached on \currentdate}]
    \stopTEXpage
    \stoptext

How can I get \currentdate expanded in the PDF annotation?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 3+ messages in thread

* Re: expansion inside PDF annotations
  2019-03-05 16:44 expansion inside PDF annotations Pablo Rodriguez
@ 2019-03-06 21:34 ` Wolfgang Schuster
  2019-03-07 16:57   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2019-03-06 21:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 05.03.19 um 17:44:
> Dear list,
>
> I have the following sample:
>
>      \setupinteraction[state=start]
>      \starttext
>      \startTEXpage[offset=1em]
>      Attached on \currentdate.
>      \attachment
>          [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf]
>          [author={Attached on \currentdate},
>           title={Attached on \currentdate}]
>      \stopTEXpage
>      \stoptext
>
> How can I get \currentdate expanded in the PDF annotation?

Can you try \rawdate[] (the argument is mandatory).

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
___________________________________________________________________________________

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

* Re: expansion inside PDF annotations
  2019-03-06 21:34 ` Wolfgang Schuster
@ 2019-03-07 16:57   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2019-03-07 16:57 UTC (permalink / raw)
  To: ntg-context

On 3/6/19 10:34 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 05.03.19 um 17:44:
>> [...]
>>      \attachment
>>          [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf]
>>          [author={Attached on \currentdate},
>>           title={Attached on \currentdate}]
>>
>> How can I get \currentdate expanded in the PDF annotation?
> 
> Can you try \rawdate[] (the argument is mandatory).

Many thanks for your reply, Wolfgang.

This works fine, but I’m afraid this is a workaround (I mean, I cannot
even add the the \currentime [not to mention other commands]).

Full expansion would be extremely useful with all features that are
enabled by \setupinteraction.

I reported this issue before:
https://mailman.ntg.nl/pipermail/ntg-context/2017/089035.html.

Sorry, I don’t know whether this is real full expansion or prerolling.
This is the way Hans names both directives for bookmarks and PDF
document information:

    \enabledirectives[interaction.identity.preroll]
    \enabledirectives[references.bookmarks.preroll]

In any case, I think there is a good use for commands inside interactive
contents in ConTeXt.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2019-03-07 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 16:44 expansion inside PDF annotations Pablo Rodriguez
2019-03-06 21:34 ` Wolfgang Schuster
2019-03-07 16:57   ` Pablo Rodriguez

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