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]