bin/review-compile in review-5.0.0 vs bin/review-compile in review-5.1.0
- old
+ new
@@ -7,15 +7,12 @@
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#
-require 'pathname'
+$LOAD_PATH.unshift(File.realpath('../lib', __dir__))
-bindir = Pathname.new(__FILE__).realpath.dirname
-$LOAD_PATH.unshift((bindir + '../lib').realpath)
-
require 'review'
require 'fileutils'
require 'optparse'
require 'yaml'
@@ -124,10 +121,10 @@
opts.on('--table=WIDTH', 'Default table width. (idgxml)') { |tbl| @config['tableopt'] = tbl }
opts.on('--listinfo', 'Append listinfo tag to lists to indicate begin/end. (idgxml)') { @config['listinfo'] = true }
opts.on('--chapref="before,middle,after"', 'Chapref decoration. (idgxml)') { |cdec| @config['chapref'] = cdec }
opts.on('--chapterlink', 'make chapref hyperlink') { @config['chapterlink'] = true }
opts.on('--stylesheet=file', 'Stylesheet file for HTML (comma separated)') { |files| @config['stylesheet'] = files.split(/\s*,\s*/) }
- opts.on('--mathml', 'Use MathML for TeX equation in HTML') { @config['mathml'] = true }
+ opts.on('--mathml', 'Use MathML for TeX equation in HTML') { @config['math_format'] = 'mathml' }
opts.on('--htmlversion=VERSION', 'HTML version.') do |v|
v = v.to_i
@config['htmlversion'] = v if [4, 5].include?(v)
end
opts.on('--epubversion=VERSION', 'EPUB version.') do |v|