Skip to content

Commit

Permalink
review-jsbook.cls: 天, 用紙サイズ, 行数, baselineをカスタムにしたときの処理をjsbook外に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
munepi committed Nov 15, 2018
1 parent a858d96 commit aac7aa1
Showing 1 changed file with 41 additions and 9 deletions.
50 changes: 41 additions & 9 deletions templates/latex/review-jsbook/review-jsbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,36 @@
\fi\fi

%% baseline
%% TL15のjsbook.clsまで面倒みないことでOK?
% \@ifundefined{jsc@setfontsize}{%
% \newdimen\jsc@mpt
% \newdimen\jsc@mmm
% \def\jsc@setfontsize#1#2#3{%
% \@setfontsize#1{#2\jsc@mpt}{#3\jsc@mpt}}
% \jsc@mpt=\jsc@magscale\p@
% \jsc@mmm=\jsc@magscale mm
% }\relax
\ifx\recls@linegap\@empty\else
\setlength{\baselineskip}{\dimexpr\Cwd+\recls@linegap}
\renewcommand{\normalsize}{%
\jsc@setfontsize\normalsize\@xpt\baselineskip% \@xiipt
\abovedisplayskip 11\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\abovedisplayshortskip \z@ \@plus3\jsc@mpt
\belowdisplayskip 9\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\belowdisplayshortskip \belowdisplayskip
\let\@listi\@listI}
\normalsize
\fi
\ifx\recls@baselineskip\@empty\else
\setlength{\baselineskip}{\recls@baselineskip}
\renewcommand{\normalsize}{%
\jsc@setfontsize\normalsize\@xpt\baselineskip% \@xiipt
\abovedisplayskip 11\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\abovedisplayshortskip \z@ \@plus3\jsc@mpt
\belowdisplayskip 9\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\belowdisplayshortskip \belowdisplayskip
\let\@listi\@listI}
\normalsize
\fi
\setlength{\Cvs}{\baselineskip}

Expand Down Expand Up @@ -335,10 +360,6 @@
\setlength\oddsidemargin{.5\oddsidemargin}
\addtolength\oddsidemargin{-1in}
\setlength\evensidemargin{\oddsidemargin}
\setlength\evensidemargin{\paperwidth}
\addtolength\evensidemargin{-2in}
\addtolength\evensidemargin{-\oddsidemargin}
\addtolength\evensidemargin{-\textwidth}
\edef\recls@gutter{\evensidemargin}
\fi
\else
Expand All @@ -352,11 +373,22 @@

%% 天、地
\ifx\recls@head@space\@empty
%% センター合わせにするなら
% \setlength\topmargin\paperheight
% \addtolength\topmargin{-\textheight}
% \edef\recls@head@space{\dimexpr\topmargin+1in+\headheight+\headsep}
% \setlength\topmargin{.5\topmargin}
\ifx\recls@paperwidth\@empty\else\ifx\recls@paperheight\@empty\else
\setlength\topmargin\paperheight
\addtolength\topmargin{-\textheight}
\edef\recls@head@space{\dimexpr\topmargin+1in+\headheight+\headsep}
\setlength\topmargin{.5\topmargin}
\addtolength\topmargin{-1in}
\addtolength\topmargin{-\headheight}\addtolength\topmargin{-\headsep}
\fi\fi
\ifx\recls@number@of@lines\@empty\else
\setlength\topmargin\paperheight
\addtolength\topmargin{-\textheight}
\edef\recls@head@space{\dimexpr\topmargin+1in+\headheight+\headsep}
\setlength\topmargin{.5\topmargin}
\addtolength\topmargin{-1in}
\addtolength\topmargin{-\headheight}\addtolength\topmargin{-\headsep}
\fi
\else
\setlength\topmargin{\recls@head@space}%
\addtolength\topmargin{-1in}
Expand Down

0 comments on commit aac7aa1

Please sign in to comment.