From af84b9db7fece90caa80d73b8faa9de75dd9e568 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 6 Nov 2019 23:34:03 +0000 Subject: make4ht (5nov19) git-svn-id: svn://tug.org/texlive/trunk@52666 c570f23f-e606-0410-a88d-b1316a301751 --- .../make4ht/extensions/make4ht-ext-odttemplate.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua (limited to 'Master/texmf-dist/scripts/make4ht/extensions/make4ht-ext-odttemplate.lua') 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 -- cgit v1.2.3