diff options
Diffstat (limited to 'support/make4ht/make4ht-lib.lua')
-rw-r--r-- | support/make4ht/make4ht-lib.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/support/make4ht/make4ht-lib.lua b/support/make4ht/make4ht-lib.lua index 91418d18b5..0e9715a39d 100644 --- a/support/make4ht/make4ht-lib.lua +++ b/support/make4ht/make4ht-lib.lua @@ -194,9 +194,12 @@ Make.run = function(self) end end end - local lgfile = params.input and params.input .. ".lg" or nil + local lgfile = params.input and params.input .. ".lg" or nil + if params.builddir~="" then + lgfile = params.builddir .. "/" .. lgfile + end if lgfile then - self.lgfile = self.lgfile or mkutils.parse_lg(lgfile) + self.lgfile = self.lgfile or mkutils.parse_lg(lgfile, params.builddir) local lg = self.lgfile -- First convert images from lg files self:image_convert(lg["images"]) |