templates/latex/review-jlreq/review-base.sty in review-4.0.0 vs templates/latex/review-jlreq/review-base.sty in review-4.1.0

- old
+ new

@@ -1,5 +1,6 @@ +\ProvidesClass{review-base}[2020/01/02] % jlreq用基本設定 \def\recls@tmp{luatex}\ifx\recls@tmp\recls@driver \hypersetup{ pdftitle={\review@booktitlename}, pdfauthor={\review@autnames}, @@ -25,23 +26,23 @@ \long\def\review@ifempty#1{\expandafter\ifx\expandafter\relax\detokenize{#1}\relax\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi} % コードリスト装飾のデフォルト \newenvironment{reviewemlist}{% - \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=black!10,colframe=black!10,boxrule=0mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\xkanjiskip=\reviewlistxkanjiskip\fi\begin{alltt}}% + \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=black!10,colframe=black!10,boxrule=0mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\setxkanjiskip{\reviewlistxkanjiskip}\fi\begin{alltt}}% {\end{alltt}\end{tcolorbox}} \newenvironment{reviewlist}{% - \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=white,colframe=black,boxrule=0.15mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\xkanjiskip=\reviewlistxkanjiskip\fi\begin{alltt}}% + \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=white,colframe=black,boxrule=0.15mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\setxkanjiskip{\reviewlistxkanjiskip}\fi\begin{alltt}}% {\end{alltt}\end{tcolorbox}} \newenvironment{reviewsource}{% - \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=white,colframe=black,boxrule=0.15mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\xkanjiskip=\reviewlistxkanjiskip\fi\begin{alltt}}% + \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=white,colframe=black,boxrule=0.15mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\setxkanjiskip{\reviewlistxkanjiskip}\fi\begin{alltt}}% {\end{alltt}\end{tcolorbox}} \newenvironment{reviewcmd}{% - \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=black!99,coltext=white,colframe=black!99,boxrule=0mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\xkanjiskip=\reviewlistxkanjiskip\fi\begin{alltt}}% + \begin{tcolorbox}[skin=enhanced jigsaw,breakable,colback=black!99,coltext=white,colframe=black!99,boxrule=0mm,arc=0mm]\ifdefined\reviewlistxkanjiskip\setxkanjiskip{\reviewlistxkanjiskip}\fi\begin{alltt}}% {\end{alltt}\end{tcolorbox}} % 図 \newenvironment{reviewimage}{% \begin{figure}\begin{center}}{\end{center}\end{figure}} @@ -175,9 +176,18 @@ \DeclareRobustCommand{\reviewit}[1]{\textit{#1}} \DeclareRobustCommand{\reviewbold}[1]{\textbf{#1}} % allow break line in tt % contributed by @zr_tex8r +\g@addto@macro\pdfstringdefPreHook{% for PDF bookmarks + \def\reviewami#1{#1} + \def\reviewbreakall#1{#1} + \def\reviewballoon#1{#1} + \def\reviewbou#1{#1} + \def\reviewkw#1{#1} + \def\reviewstrike#1{#1} + \def\reviewunderline#1{#1} +} \newif\ifreview@ba@break \def\review@ba@end{\review@ba@end@} \DeclareRobustCommand{\reviewbreakall}[1]{% \begingroup \review@ba@breakfalse