Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review-jlreqでcoverimageを縦回転すると左上にずれる #1734

Closed
kmuto opened this issue Sep 6, 2021 · 2 comments
Closed

review-jlreqでcoverimageを縦回転すると左上にずれる #1734

kmuto opened this issue Sep 6, 2021 · 2 comments

Comments

@kmuto
Copy link
Owner

kmuto commented Sep 6, 2021

review-jlreqの縦書きモード(tate)では現状表紙と奥付まで回転してしまうので、ひとまず縦書きのときには戻すことを試みている。

review-base.sty

\if@reclscover
  \ifdefined\review@coverimage
    \ifrecls@coverfitpage
       \def\review@coverimageoption{width=\paperwidth,height=\paperheight}
    \fi
    \def\reviewcoverpagecont{%
      \ifvmode
      \expandafter\includefullpagegraphics\expandafter[angle=90,\review@coverimageoption]{\review@coverimage}
      \else
      \expandafter\includefullpagegraphics\expandafter[\review@coverimageoption]{\review@coverimage}
      \fi
      \cleardoublepage
    }
  \fi
  \ifdefined\review@coverfile
    \def\reviewcoverpagecont{\review@coverfile}
  \fi
\fi

angle=90にすると回転が戻る。
しかし、print, ebookともにセンター合わせが無効化されて、左上にずれた状態になってしまう。
縦書き時のincludefullpagegraphics計算の変更が必要?

@munepi
Copy link
Contributor

munepi commented Sep 6, 2021

@kmuto

縦書き時のincludefullpagegraphics計算の変更が必要?

はい、必要です。
実は、縦書きクラスファイルの基本版面(+ベースライン)のとり方に依って、若干ずらす量を変える必要が生じるかもしれません。
ちょっと、jlreqの縦書きモードの場合に、\includefullpagegraphicsを見てみます。

@kmuto
Copy link
Owner Author

kmuto commented Sep 7, 2021

#1738 で対応

@kmuto kmuto closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants