Skip to content

Commit

Permalink
rename fontname, follow changes in jlreq.cls 20190401
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Apr 25, 2019
1 parent 0b3f368 commit edb9692
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions templates/latex/review-jlreq/review-base.sty
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,23 @@

\newcommand{\reviewbackslash}[0]{\textbackslash{}}

% 古いjlreq.clsへの互換(当面のad-hoc対応)
\ifdefined\jlreq@@makecaption@font@setting
\else
\let\jlreq@@makecaption@font@setting\jlreq@@makecaption@font
\let\jlreq@@makecaption@label@@font@setting\jlreq@@makecaption@label@font@setting
\fi

\renewcommand{\@makecaption}[2]{{% %本当はl,c,rを[]で指定したい
\reset@font\small
\vskip\abovecaptionskip
\jlreq@ifempty{#1}{%
\sbox\@tempboxa{{\jlreq@@makecaption@font #2}}}{%
\sbox\@tempboxa{{\jlreq@@makecaption@label@font #1}\review@intn@captionprefix{\jlreq@@makecaption@font #2}}}
\sbox\@tempboxa{{\jlreq@@makecaption@font@setting #2}}}{%
\sbox\@tempboxa{{\jlreq@@makecaption@label@font@setting #1}\review@intn@captionprefix{\jlreq@@makecaption@font@setting #2}}}
\ifdim \wd\@tempboxa >\hsize
\jlreq@ifempty{#1}{%
{\jlreq@@makecaption@font #2}}{%
{\jlreq@@makecaption@label@font #1}\review@intn@captionprefix{\jlreq@@makecaption@font #2}}\relax\par
{\jlreq@@makecaption@font@setting #2}}{%
{\jlreq@@makecaption@label@font@setting #1}\review@intn@captionprefix{\jlreq@@makecaption@font@setting #2}}\relax\par
\else
\global\@minipagefalse
\hbox to\hsize{\box\@tempboxa\hfil}% キャプションLeft
Expand Down

0 comments on commit edb9692

Please sign in to comment.