From 4b7765f5aaa57f6eeecd2e64e4815e5fde24aea9 Mon Sep 17 00:00:00 2001 From: takahashim Date: Wed, 27 Jan 2021 12:51:06 +0900 Subject: [PATCH] fix initialize ImgMath --- lib/review/builder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/review/builder.rb b/lib/review/builder.rb index 51833c215..8f0b2e91f 100644 --- a/lib/review/builder.rb +++ b/lib/review/builder.rb @@ -10,6 +10,7 @@ require 'review/textutils' require 'review/compiler' require 'review/sec_counter' +require 'review/img_math' require 'stringio' require 'fileutils' require 'tempfile' @@ -56,6 +57,7 @@ def bind(compiler, chapter, location) @tabwidth = nil @tsize = nil if @book && @book.config + @img_math ||= ReVIEW::ImgMath.new(@book.config) if words_file_path = @book.config['words_file'] if words_file_path.is_a?(String) words_files = [words_file_path]