Skip to content

Commit

Permalink
check makeindex flag and introduce 2 hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Sep 1, 2016
1 parent 42abfc8 commit 533b56c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/review/pdfmaker.rb
Expand Up @@ -215,10 +215,14 @@ def generate_pdf(yamlfile)
system_or_raise("#{texcommand} #{texoptions} book.tex")
end

if File.exist?("book.idx")
call_hook("hook_beforemakeindex")

if @config["makeindex"] && File.exist?("book.idx")
system_or_raise("#{makeindex_command} #{makeindex_options} book")
end

call_hook("hook_aftermakeindex")

system_or_raise("#{texcommand} #{texoptions} book.tex")
call_hook("hook_aftertexcompile")

Expand Down

0 comments on commit 533b56c

Please sign in to comment.