Skip to content

Commit

Permalink
Merge pull request #1501 from kmuto/webmaker-math
Browse files Browse the repository at this point in the history
webmaker,textmakerが数式画像を作り忘れているのを修正
  • Loading branch information
kmuto authored Apr 20, 2020
2 parents 65dbe1c + 9854fbd commit 18646ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/review/textmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/review/webmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 18646ff

Please sign in to comment.