Hans,

the following sample shows an issue with attachments:

    \setupinteraction[state=start]
    \setupinteractionscreen[option=attachment]
    \setuppapersize[A5, landscape]
    \setuppagenumbering[location=]
    \starttext
    \input knuth\attachment[file=e.pdf, title=Attachment \letterhash1,
     author=ConTeXt, subtitle=χαλεπὰ τὰ καλά, method=hidden]
    \stoptext

method=hidden (http://pdf.ousia.tk/attachment-hidden.pdf) doesn’t
actually attach the file (http://pdf.ousia.tk/attachment-hidden.png).

But method=visible (http://pdf.ousia.tk/attachment-visible.pdf) attachs
the file (http://pdf.ousia.tk/attachment-visible.png)

I’m afraid that method=hidden was missing subtitle, file and name. I
would say that buffer is also missing there, but I don’t know what it
is used for.

The attached .diff file fixes the issue. I have tested it and it works
fine.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
--- scrn-wid.mkvi	2017-05-29 19:42:55.793331013 +0200
+++ mkiv/scrn-wid.mkvi	2017-05-29 20:11:11.356652995 +0200
@@ -222,6 +222,12 @@
   {\clf_insertattachment
      tag        {\currentattachment}%
      registered {\currentattachmentregistered}%
+     % title      {\attachmentparameter\c!title}%
+     subtitle   {\attachmentparameter\c!subtitle}%
+     % author     {\attachmentparameter\c!author}%
+     file       {\attachmentparameter\c!file}%
+     name       {\attachmentparameter\c!name}%
+     buffer     {\attachmentparameter\c!buffer}%
      method     {\v!hidden}%
    \relax}
 
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to