aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.context
diff options
context:
space:
mode:
authorTristan Stenner <ttstenner@gmail.com>2019-07-16 18:31:59 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-16 09:31:59 -0700
commit09f30d65e43c3099fb13960232576f06f0c29343 (patch)
tree798deb898d921b5434dc803ff3fe4ce243462da5 /data/templates/default.context
parent5454aad32474472a8f977c941e6f7d70e925bcc5 (diff)
downloadpandoc-09f30d65e43c3099fb13960232576f06f0c29343.tar.gz
Add option to include source files in ConTeXt PDFs (#5578)
Add a metadata option (`includesource`) to attach the source documents to the resulting PDF.
Diffstat (limited to 'data/templates/default.context')
-rw-r--r--data/templates/default.context5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/default.context b/data/templates/default.context
index f54b55e74..dcd2dde5d 100644
--- a/data/templates/default.context
+++ b/data/templates/default.context
@@ -105,6 +105,11 @@ $endif$
\setupxtable[body][]
\setupxtable[foot][bottomframe=on]
+$if(includesource)$
+$for(sourcefile)$
+\attachment[file=$curdir$/$sourcefile$,method=hidden]
+$endfor$
+$endif$
$for(header-includes)$
$header-includes$
$endfor$