From c82a83cde26138a11376aca9510185f995d43497 Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Mon, 20 Apr 2020 15:53:54 +0900 Subject: [PATCH 1/2] fix webmaker didn't create math images caused by #1489 --- lib/review/webmaker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/review/webmaker.rb b/lib/review/webmaker.rb index 70cdfc18c..2b22d5139 100644 --- a/lib/review/webmaker.rb +++ b/lib/review/webmaker.rb @@ -118,7 +118,7 @@ def generate_html_files(yamlfile) copy_backmatter(@path) math_dir = "./#{@config['imagedir']}/_review_math" - if @config['imgmath'] && File.exist?("#{math_dir}/__IMGMATH_BODY__.tex") + if @config['imgmath'] && File.exist?("#{math_dir}/__IMGMATH_BODY__.map") make_math_images(math_dir) end From 9854fbdba4327f0e0f5c4f804aa85ebb2c5cdb3f Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Mon, 20 Apr 2020 15:56:58 +0900 Subject: [PATCH 2/2] forgotten on textmaker also. --- lib/review/textmaker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/review/textmaker.rb b/lib/review/textmaker.rb index 12f8c3bab..3a712fb0e 100644 --- a/lib/review/textmaker.rb +++ b/lib/review/textmaker.rb @@ -98,7 +98,7 @@ def execute(*args) end math_dir = "./#{@config['imagedir']}/_review_math_text" - if @config['imgmath'] && File.exist?(File.join(math_dir, '__IMGMATH_BODY__.tex')) + if @config['imgmath'] && File.exist?(File.join(math_dir, '__IMGMATH_BODY__.map')) make_math_images(math_dir) end end