From f6521d0397099ac8f7ab24895c0a5321851706d3 Mon Sep 17 00:00:00 2001 From: aminophen Date: Mon, 22 Aug 2016 16:53:49 +0900 Subject: [PATCH] exppl2e.sty: initialize \pltx@foot@penalty in \@footnotetext --- exppl2e.sty | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/exppl2e.sty b/exppl2e.sty index 1f81b29..0d3ed5c 100644 --- a/exppl2e.sty +++ b/exppl2e.sty @@ -263,6 +263,7 @@ % {Add new counter \pltx@foot@penalty}% %<*plcore|platexrelease> \ifx\@undefined\pltx@foot@penalty \newcount\pltx@foot@penalty \fi +\pltx@foot@penalty\z@ % %\plEndIncludeInRelease %\plIncludeInRelease{0000/00/00}{\pltx@foot@penalty} @@ -286,11 +287,11 @@ %<*plcore|platexrelease> % \end{macrocode} % \begin{macrocode} -\def\footnote{\inhibitglue\pltx@foot@penalty\z@ +\def\footnote{\inhibitglue \@ifnextchar[\@xfootnote{\stepcounter\@mpfn \protected@xdef\@thefnmark{\thempfn}% \@footnotemark\@footnotetext}} -\def\footnotemark{\inhibitglue\pltx@foot@penalty\z@% +\def\footnotemark{\inhibitglue \@ifnextchar[\@xfootnotemark {\stepcounter{footnote}% \protected@xdef\@thefnmark{\thefootnote}% @@ -360,7 +361,10 @@ % 問題に対処} % \begin{macrocode} \color@endgroup}\null - \ifnum\pltx@foot@penalty=\z@\else\penalty\pltx@foot@penalty\fi} + \ifnum\pltx@foot@penalty=\z@\else + \penalty\pltx@foot@penalty + \pltx@foot@penalty\z@ + \fi} % \end{macrocode} % \begin{macrocode} %