summaryrefslogtreecommitdiff
path: root/language/japanese/platex-tools/pxftnright.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-01 03:00:58 +0000
committerNorbert Preining <norbert@preining.info>2021-06-01 03:00:58 +0000
commit0f69e2fd4a9928663f0cc64b8cac1f0d8baee9d6 (patch)
treec9ab8a25ba9f5a5dcfb4bef6a51aa35fe07834cb /language/japanese/platex-tools/pxftnright.sty
parent098258765e1921f3e57f38e424272587103189dd (diff)
CTAN sync 202106010300
Diffstat (limited to 'language/japanese/platex-tools/pxftnright.sty')
-rw-r--r--language/japanese/platex-tools/pxftnright.sty19
1 files changed, 16 insertions, 3 deletions
diff --git a/language/japanese/platex-tools/pxftnright.sty b/language/japanese/platex-tools/pxftnright.sty
index 2b5d4382b4..e6766fcef7 100644
--- a/language/japanese/platex-tools/pxftnright.sty
+++ b/language/japanese/platex-tools/pxftnright.sty
@@ -7,6 +7,8 @@
%
% This package `pxftnright' is based on:
% * ftnright.sty in latex-tools (2014/10/28 v1.1f)
+% * plcore.ltx in platex
+% (2001/09/26 v1.2a -- 2021/03/25 v1.3i)
%
% Problems with ftnright to use with pLaTeX:
% * \@startcolumn is redefined
@@ -23,7 +25,7 @@
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxftnright}
- [2017/02/28 v1.1 footnote layout package for pLaTeX]
+ [2021/05/24 v1.1a footnote layout package for pLaTeX]
%% save \@makefntext definition from pLaTeX class
\@ifpackageloaded{ftnright}{%
@@ -37,7 +39,18 @@
\RequirePackage{ftnright}
%% patches for ftnright to work fine with pLaTeX
-%% This code is based on pLaTeX2e 2017/04/08 community ed.
+%% This code is based on pLaTeX2e 2021-06-01 community ed.
+
+\ifx\pltx@adjust@wd@outputbox\@undefined
+ % pLaTeX2e <2020-10-01>+2 or older
+ \ifx\pdfprimitive\@undefined % just in case ...
+ \def\pltx@adjust@wd@outputbox{%
+ \ifydir\else\vbox{\hskip\z@}\fi}
+ \else % same as plcore.dtx 2021/03/25 v1.3i
+ \def\pltx@adjust@wd@outputbox{%
+ \ifydir\else\vbox{\pdfprimitive\everypar{}\hskip\z@}\fi}
+ \fi
+\fi
\def\@startcolumn{%
\ifx\@deferlist\@empty
@@ -122,7 +135,7 @@
\@texttop
\dimen@ \dp\@outputbox
\unvbox \@outputbox
- \iftdir\vbox{\hskip\z@}\fi %%% pLaTeX
+ \pltx@adjust@wd@outputbox %%% pLaTeX
\vskip -\dimen@
\@textbottom}%
\fi