ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issue with \startattachment...\stopattachment
@ 2019-03-05 19:57 Pablo Rodriguez
  2019-03-05 20:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2019-03-05 19:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setupinteraction[state=start]
    \starttext
    \startTEXpage[offset=1em]
    \startattachment
        [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf]
    Attached file.
    \stopattachment
    Attached on \currentdate.
    \stopTEXpage
    \stoptext

I have a question: shouldn’t be “Attached file.” typeset on the main text?

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: issue with \startattachment...\stopattachment
  2019-03-05 19:57 issue with \startattachment...\stopattachment Pablo Rodriguez
@ 2019-03-05 20:17 ` Wolfgang Schuster
  2019-03-05 20:46   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2019-03-05 20:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 05.03.19 um 20:57:
> Dear list,
> 
> I have the following sample:
> 
>      \setupinteraction[state=start]
>      \starttext
>      \startTEXpage[offset=1em]
>      \startattachment
>          [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf]
>      Attached file.
>      \stopattachment
>      Attached on \currentdate.
>      \stopTEXpage
>      \stoptext
> 
> I have a question: shouldn’t be “Attached file.” typeset on the main text?

No because

\startattachment
...
\stopattachment

is the same as

\startbuffer[...]
...
\stopbuffer

\attachment[buffer=...]

where you combine the buffer and \attachment in a single construct.

This does also mean the argument you pass to \startattachment is wrong.

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: issue with \startattachment...\stopattachment
  2019-03-05 20:17 ` Wolfgang Schuster
@ 2019-03-05 20:46   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2019-03-05 20:46 UTC (permalink / raw)
  To: ntg-context

On 3/5/19 9:17 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 05.03.19 um 20:57:
>> [...]
>> I have a question: shouldn’t be “Attached file.” typeset on the main text?
> 
> No because
> 
> \startattachment ... \stopattachment
> 
> is the same as
> 
> \startbuffer[...] ... \stopbuffer
> 
> \attachment[buffer=...]
> 
> where you combine the buffer and \attachment in a single construct.

Many thanks for your reply, Wolfgang.

I thought it could be used as a kind of link.

> This does also mean the argument you pass to \startattachment is wrong.
Of course, I was thinking of something different.

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-05 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 19:57 issue with \startattachment...\stopattachment Pablo Rodriguez
2019-03-05 20:17 ` Wolfgang Schuster
2019-03-05 20:46   ` 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).