Skip to content

Commit

Permalink
backward compatibility for cover option
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Oct 16, 2018
1 parent baed650 commit 793cfe1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/review/pdfmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,15 @@ def erb_config
'keepaspectratio'
end

if @config.check_version('2', exception: false)
@coverimageoption =
if @documentclass == 'ubook' || @documentclass == 'utbook'
'width=\\textheight,height=\\textwidth,keepaspectratio,angle=90'
else
'width=\\textwidth,height=\\textheight,keepaspectratio'
end
end

@locale_latex = {}
part_tuple = I18n.get('part').split(/\%[A-Za-z]{1,3}/, 2)
chapter_tuple = I18n.get('chapter').split(/\%[A-Za-z]{1,3}/, 2)
Expand Down

0 comments on commit 793cfe1

Please sign in to comment.