[NTG-context] issue with \startattachment...\stopattachment

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Mar 5 21:17:16 CET 2019


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


More information about the ntg-context mailing list