templates/latex/review-jsbook/review-jsbook.cls in review-5.2.0 vs templates/latex/review-jsbook/review-jsbook.cls in review-5.3.0

- old
+ new

@@ -20,11 +20,11 @@ % THE SOFTWARE. \IfFileExists{plautopatch.sty}{\RequirePackage{plautopatch}}{} \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{review-jsbook} - [2021/01/12 v5.1 Re:VIEW pLaTeX class modified for jsbook.cls] + [2021/08/23 v5.3 Re:VIEW pLaTeX class modified for jsbook.cls] \def\recls@error{\ClassError{review-jsbook}} \def\recls@warning{\ClassWarning{review-jsbook}} \def\recls@warningnoline{\ClassWarningNoLine{review-jsbook}} \def\recls@info{\ClassInfo{review-jsbook}} @@ -37,16 +37,22 @@ %% fixes to LaTeX2e \RequirePackage{fix-cm}%%\RequirePackage{fix-cm,exscale} \IfFileExists{latexrelease.sty}{}{\RequirePackage{fixltx2e}} +%% amsmath: override \@ifstar with \new@ifnextchar in amsgen.sty +\let\ltx@ifstar\@ifstar%%as \@ifstar of LaTeX kernel + %% graphicx: added nosetpagesize \IfFileExists{platexrelease.sty}{%% is bundled in TL16 or higher release version \PassOptionsToPackage{nosetpagesize}{graphicx}%%for TL16 or higher version }{} -\RequirePackage{xkeyval,everypage}%%,etoolbox +\RequirePackage{xkeyval}%%,etoolbox +\IfFileExists{everypage-1x.sty}{% is bundled in TL20 or higher +\RequirePackage{everypage-1x} +}{\RequirePackage{everypage}} %% useful helpers \newcommand\recls@get@p@[2]{% \edef#2{\expandafter\@recls@GET@P@\the#1}} {\catcode`p=12\catcode`t=12\gdef\@recls@GET@P@#1pt{#1}}% @@ -147,11 +153,11 @@ %% \recls@set@tombowpaper{<papersize>} \def\recls@set@tombowpaper#1{% \xdef#1{\ifx\recls@hiddenfolio\@empty tombo,\fi#1}} %% \recls@set@hiddenfolio{<preset>} -%% <preset>: default, marusho-ink (丸正インキ), nikko-pc (日光企画), +%% <preset>: default, marusho-ink (丸正インキ), nikko-pc (日光企画), %% shippo (ねこのしっぽ) \def\recls@set@hiddenfolio#1{\ifx#1\@empty\else \@ifundefined{@makehiddenfolio@#1}{% \recls@error{Not define such hiddenfolio: #1}}\relax %% set hiddenfolio preset @@ -282,10 +288,13 @@ \LoadClass{jsbook} % \typeout{!!! magscale: \jsc@magscale} % \typeout{!!! mag: \the\mag}%%=> 1000 -> OK +%% compatibility for jlreq.cls +\let\if@tate\iftdir + %% override papersize with custom papersize \ifx\recls@paperwidth\@empty\else\ifx\recls@paperheight\@empty\else \setlength{\paperwidth}{\recls@paperwidth} \setlength{\paperheight}{\recls@paperheight} \def\recls@tmp{print}\ifx\recls@cameraready\recls@tmp\else @@ -396,17 +405,34 @@ %% include fullpage graphics \let\grnchry@head\recls@head@space \let\grnchry@gutter\recls@gutter \newcommand*\includefullpagegraphics{% \clearpage - \@ifstar + \ltx@ifstar {\@includefullpagegraphics}% {\thispagestyle{empty}\@includefullpagegraphics} } \newcommand*\@includefullpagegraphics[2][]{% + \if@tate \vbox to \textheight{% + \ifodd\c@page + \vskip-\dimexpr\evensidemargin - \topskip + 1in\relax + \else + \vskip-\dimexpr\oddsidemargin - \topskip + 1in\relax + \fi + \vbox to \paperwidth{\vss + \hbox to \textwidth{% + \hskip-\grnchry@head\relax + \hbox to \paperheight{\hss + \rotatebox{90}{\includegraphics[#1]{#2}}% + \hss}% + \hss}% + \vss}% + \vss}% + \else + \vbox to \textheight{% \vskip-\grnchry@head \vbox to \paperheight{\vss \hbox to \textwidth{% \ifodd\c@page \hskip-\dimexpr\oddsidemargin + 1in\relax @@ -417,9 +443,10 @@ \includegraphics[#1]{#2}% \hss}% \hss}% \vss}% \vss}% + \fi \clearpage } %% 空ページ \newcommand\oneblankpage{\clearpage\thispagestyle{empty}%