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 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