summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-11-06 23:34:03 +0000
committerKarl Berry <karl@freefriends.org>2019-11-06 23:34:03 +0000
commitaf84b9db7fece90caa80d73b8faa9de75dd9e568 (patch)
tree745ebd7a73950d0e7099c47a66b6b3deefb2f4bd /Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua
parent73e3f7c059fcd8089c33c01b6034e5ad3c9d50d6 (diff)
make4ht (5nov19)
git-svn-id: svn://tug.org/texlive/trunk@52666 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua')
-rw-r--r--Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua b/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua
new file mode 100644
index 00000000000..3b0af2a6999
--- /dev/null
+++ b/Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua
@@ -0,0 +1,16 @@
+local M = {}
+
+local filter = require "make4ht-filter"
+
+-- this extension only works for the ODT format
+M.test = function(format)
+ return format=="odt"
+end
+
+M.modify_build = function(make)
+ local process = filter {"odttemplate"}
+ make:match("4oy$", process)
+ return make
+end
+
+return M