From 32715daf2158a537f6aa783a1931f3529c74b98a Mon Sep 17 00:00:00 2001 From: Munehiro Yamamoto Date: Mon, 6 Sep 2021 21:13:52 +0900 Subject: [PATCH 1/3] review-jlreq.cls (\includefullpagegraphics): supported tate mode --- templates/latex/review-jlreq/review-jlreq.cls | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/templates/latex/review-jlreq/review-jlreq.cls b/templates/latex/review-jlreq/review-jlreq.cls index 2625a5b1a..93d1e2c1c 100644 --- a/templates/latex/review-jlreq/review-jlreq.cls +++ b/templates/latex/review-jlreq/review-jlreq.cls @@ -32,6 +32,9 @@ \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 @@ -226,12 +229,29 @@ \edef\grnchry@gutter{\evensidemargin} \newcommand*\includefullpagegraphics{% \clearpage - \@ifstar + \ltx@ifstar {\@includefullpagegraphics}% {\thispagestyle{empty}\@includefullpagegraphics} } \newcommand*\@includefullpagegraphics[2][]{% + \iftdir + \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 @@ -247,6 +267,7 @@ \hss}% \vss}% \vss}% + \fi \clearpage } From 331c6abedaa22f04585936d3c87e11ba13dd7927 Mon Sep 17 00:00:00 2001 From: Munehiro Yamamoto Date: Mon, 6 Sep 2021 21:18:15 +0900 Subject: [PATCH 2/3] review-jsbook.cls (\includefullpagebraphics): supported tate mode --- .../latex/review-jsbook/review-jsbook.cls | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/templates/latex/review-jsbook/review-jsbook.cls b/templates/latex/review-jsbook/review-jsbook.cls index 40d37ea9e..d3240874b 100644 --- a/templates/latex/review-jsbook/review-jsbook.cls +++ b/templates/latex/review-jsbook/review-jsbook.cls @@ -39,6 +39,9 @@ \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 @@ -152,7 +155,7 @@ \xdef#1{\ifx\recls@hiddenfolio\@empty tombo,\fi#1}} %% \recls@set@hiddenfolio{} -%% : default, marusho-ink (丸正インキ), nikko-pc (日光企画), +%% : default, marusho-ink (丸正インキ), nikko-pc (日光企画), %% shippo (ねこのしっぽ) \def\recls@set@hiddenfolio#1{\ifx#1\@empty\else \@ifundefined{@makehiddenfolio@#1}{% @@ -401,12 +404,29 @@ \let\grnchry@gutter\recls@gutter \newcommand*\includefullpagegraphics{% \clearpage - \@ifstar + \ltx@ifstar {\@includefullpagegraphics}% {\thispagestyle{empty}\@includefullpagegraphics} } \newcommand*\@includefullpagegraphics[2][]{% + \iftdir + \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 @@ -422,6 +442,7 @@ \hss}% \vss}% \vss}% + \fi \clearpage } From f3b69befab057e5830130784eaf952f0fa8955a4 Mon Sep 17 00:00:00 2001 From: Munehiro Yamamoto Date: Tue, 7 Sep 2021 13:01:49 +0900 Subject: [PATCH 3/3] review-jlreq.cls, review-jsbook.cls (\includefullpagegraphics): replaced: \iftdir -> \if@tate --- templates/latex/review-jlreq/review-jlreq.cls | 2 +- templates/latex/review-jsbook/review-jsbook.cls | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/latex/review-jlreq/review-jlreq.cls b/templates/latex/review-jlreq/review-jlreq.cls index 93d1e2c1c..b20908a77 100644 --- a/templates/latex/review-jlreq/review-jlreq.cls +++ b/templates/latex/review-jlreq/review-jlreq.cls @@ -235,7 +235,7 @@ } \newcommand*\@includefullpagegraphics[2][]{% - \iftdir + \if@tate \vbox to \textheight{% \ifodd\c@page \vskip-\dimexpr\evensidemargin - \topskip + 1in\relax diff --git a/templates/latex/review-jsbook/review-jsbook.cls b/templates/latex/review-jsbook/review-jsbook.cls index d3240874b..878831bcc 100644 --- a/templates/latex/review-jsbook/review-jsbook.cls +++ b/templates/latex/review-jsbook/review-jsbook.cls @@ -290,6 +290,9 @@ % \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} @@ -410,7 +413,7 @@ } \newcommand*\@includefullpagegraphics[2][]{% - \iftdir + \if@tate \vbox to \textheight{% \ifodd\c@page \vskip-\dimexpr\evensidemargin - \topskip + 1in\relax