adityam / filter

ConTeXt module to process contents of a start-stop environment through an external program
45 stars 10 forks source link

VIM: Support attachfile #11

Open adityam opened 11 years ago

adityam commented 11 years ago

It may be useful to support attach=yes for code snippets

\setupinteraction [state=start]
\starttext
  \attachment[file=attachfile.tex, title=Some file, author=Me]
\stoptext
adityam commented 11 years ago
\startsetups attachfile
  \expanded{\useattachment[\externalfilterparameter\c!reference]
                [\externalfilterparameter\c!title]
                [\externalfilterparameter\c!reference]
                [\externalfilterinputfile]}
\stopsetups

and then add

\defineexternalfilter
     [...]
     [...
        filtersetups={attachfile},
     ...]