Skip to content

Commit

Permalink
Merge pull request #1154 from kmuto/backward1
Browse files Browse the repository at this point in the history
TeX: Re:VIEW2向け互換性サポートの修正
  • Loading branch information
kmuto authored Oct 16, 2018
2 parents 546cb76 + 793cfe1 commit 72480f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.values
'footnotetext' => nil,
'texcommand' => 'uplatex',
'texoptions' => '-interaction=nonstopmode -file-line-error',
'texdocumentclass' => ['review-jsbook', ''],
'_texdocumentclass' => ['review-jsbook', ''],
'dvicommand' => 'dvipdfmx',
'dvioptions' => '-d 5 -z 9',
# for PDFMaker
Expand Down
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 72480f5

Please sign in to comment.