diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
commit | f74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch) | |
tree | 3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv | |
parent | 1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff) |
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv b/Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv new file mode 100644 index 00000000000..b4b422ca59f --- /dev/null +++ b/Master/texmf-dist/tex/context/modules/mkiv/s-present-common.mkiv @@ -0,0 +1,43 @@ +%D \module +%D [ file=s-present-common, +%D version=2016.10.20, +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Common Helpers, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\startmodule[present-common] + +\startluacode + + -- sources -> presentations + -- tex/context/base/mkiv -> doc/context/presentations + + function commands.inputpresentationfile(name) + local mkivpath = file.pathpart(resolvers.findfile("context.mkiv")) + local filename = file.join(mkivpath,"../presentations",name) + if lfs.isfile(filename) then + context.input(filename) + return + end + filename = file.join(mkivpath,"../../../../doc/context/presentations",name) + if lfs.isfile(filename) then + context.input(filename) + return + end + context.starttext() + context.formatted.type("missing file: %s",name) + context.stoptext() + end + +\stopluacode + +\unexpanded\def\inputpresentationfile#1% + {\ctxcommand{inputpresentationfile("#1")}} + +\stopmodule |