texlive[49002] Master/texmf-dist: platex-tools (27oct18)

commits+karl at tug.org commits+karl at tug.org
Sat Oct 27 23:38:33 CEST 2018


Revision: 49002
          http://tug.org/svn/texlive?view=revision&revision=49002
Author:   karl
Date:     2018-10-27 23:38:32 +0200 (Sat, 27 Oct 2018)
Log Message:
-----------
platex-tools (27oct18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/platex-tools/README.md
    trunk/Master/texmf-dist/doc/latex/platex-tools/plarray.pdf
    trunk/Master/texmf-dist/doc/latex/platex-tools/plextarray.pdf
    trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.pdf
    trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.tex
    trunk/Master/texmf-dist/tex/latex/platex-tools/plarray.sty
    trunk/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
    trunk/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty

Modified: trunk/Master/texmf-dist/doc/latex/platex-tools/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/platex-tools/README.md	2018-10-27 00:23:23 UTC (rev 49001)
+++ trunk/Master/texmf-dist/doc/latex/platex-tools/README.md	2018-10-27 21:38:32 UTC (rev 49002)
@@ -74,6 +74,6 @@
 
 ## Release Date
 
-2018-09-21
+2018-10-27
 
 Hironobu Yamashita

Modified: trunk/Master/texmf-dist/doc/latex/platex-tools/plarray.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/platex-tools/plextarray.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.tex	2018-10-27 00:23:23 UTC (rev 49001)
+++ trunk/Master/texmf-dist/doc/latex/platex-tools/pxeverysel.tex	2018-10-27 21:38:32 UTC (rev 49002)
@@ -32,13 +32,18 @@
 使用すると、日本語の文字サイズが変わらなくなったり、
 \textsf{otf}パッケージで文字化けが起こったりします。
 これは、\pLaTeX カーネルが日本語用に再定義している\verb+\selectfont+が、
-\textsf{everysel}によって書き換えられてしまうためです。この\textsf{pxeverysel}パッケージを読み込むことで、p\LaTeX でも
+\textsf{everysel}によって書き換えられてしまうためです。
+この\textsf{pxeverysel}パッケージを読み込むことで、p\LaTeX でも
 \textsf{everysel}パッケージを使えるようになります。
 
 使いかたは、\textsf{everysel}パッケージの代わりに、あるいは
 \textsf{everysel}パッケージに追加して、\textsf{pxeverysel}パッケージを
-読みこむだけです。\textsf{everysel}を内部で読み込んでいる
-\textsf{ragged2e}を例に示します:
+読み込むだけです\footnote{稀に\\\texttt{%
+!\ Package pxeverysel Error:\ Patch too late!\\
+(pxeverysel)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Load pxeverysel earlier.%
+}\\というエラーが出ることがあります。この場合は、
+\textsf{pxeverysel}パッケージを少し早めに読み込んでみてください。}。
+\textsf{everysel}を内部で読み込んでいる\textsf{ragged2e}を例に示します:
 \begin{verbatim}
   \documentclass[a4paper]{jsarticle}
   \usepackage{ragged2e}% 読み込むだけでアウト

Modified: trunk/Master/texmf-dist/tex/latex/platex-tools/plarray.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/platex-tools/plarray.sty	2018-10-27 00:23:23 UTC (rev 49001)
+++ trunk/Master/texmf-dist/tex/latex/platex-tools/plarray.sty	2018-10-27 21:38:32 UTC (rev 49002)
@@ -14,15 +14,13 @@
 
 \NeedsTeXFormat{pLaTeX2e}
 \ProvidesPackage{plarray}
-  [2018/09/20 v0.1g Tabular extension package for pLaTeX/upLaTeX]
+  [2018/10/27 v0.1h Tabular extension package for pLaTeX/upLaTeX]
 \RequirePackage{array}
 
 %% patching internal code for array.sty
 %
 %% remove extra \xkanjiskip (pLaTeX2e 2016/04/17)
-\@ifl at t@r{\pfmtversion}{2016/04/17}
-  {\expandafter\@firstofone}
-  {\expandafter\@gobble}
+\@ifl at t@r{\pfmtversion}{2016/04/17}{\@firstofone}{\@gobble}
 {% = for pLaTeX2e 2016/04/17 or newer
 \def\@tabular{%
   \leavevmode \null
@@ -34,9 +32,7 @@
 }% =
 %
 %% inhibit JFM glue around tabular cell components (pLaTeX2e 2018/03/09)
-\@ifl at t@r{\pfmtversion}{2017/07/29}
-  {\expandafter\@firstofone}
-  {\expandafter\@gobble}
+\@ifl at t@r{\pfmtversion}{2017/07/29}{\@firstofone}{\@gobble}
 {% = for pLaTeX2e 2017/07/29 or newer
 % first, provide old definition; there are some known incompatibility
 % compared to LaTeX, pLaTeX or array

Modified: trunk/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty	2018-10-27 00:23:23 UTC (rev 49001)
+++ trunk/Master/texmf-dist/tex/latex/platex-tools/plextarray.sty	2018-10-27 21:38:32 UTC (rev 49002)
@@ -15,7 +15,7 @@
 
 \NeedsTeXFormat{pLaTeX2e}
 \ProvidesPackage{plextarray}
-  [2018/09/20 v1.1c Tabular extension package for plext and array]
+  [2018/10/27 v1.1d Tabular extension package for plext and array]
 \RequirePackage{plext}
 \RequirePackage{plarray}
 
@@ -36,9 +36,7 @@
 
 %% patching internal code for array.sty and plext.sty
 %
-\@ifpackagelater{array}{2018/09/13}
-  {\expandafter\@firstoftwo}
-  {\expandafter\@secondoftwo}
+\@ifpackagelater{array}{2018/09/13}{\@firstoftwo}{\@secondoftwo}
 {% = for 2018/09/13 v2.4i or newer
 \def\@startpbox#1{\bgroup
   \color at begingroup

Modified: trunk/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty	2018-10-27 00:23:23 UTC (rev 49001)
+++ trunk/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty	2018-10-27 21:38:32 UTC (rev 49002)
@@ -12,16 +12,37 @@
 %% package declaration
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{pxeverysel}
-    [2017/03/02 v0.6 Patch to everysel for (u)pLaTeX]
+    [2018/10/27 v0.8 Patch to everysel for (u)pLaTeX]
 
 %% previous code for ctex support has been removed in v0.5,
 %% as ctex has depended on pxeverysel since 2016/12/27 v2.4.7
 
+%% in case it's too late ...
+\@ifpackageloaded{everysel}{%
+  % everysel.sty removes \@EverySelectfont at Init once it is used
+  \ifx\@EverySelectfont at Init\undefined
+    \PackageError{pxeverysel}{%
+      Patch too late!\MessageBreak
+      Load pxeverysel earlier}\@ehc
+}{}
+
 %% preparations
 \def\pxys at pkgname{pxeverysel}
 \def\pxys at warn{\PackageWarningNoLine\pxys at pkgname}
 
-%% load it
+%% load it, but ensure that \@EverySelectfont at Init is not executed
+%  [Note] everysel.sty contains
+%    \AtBeginDocument{\@EverySelectfont at Init}
+%  at the end. In most cases, the execution is actually delayed;
+%  however,
+%    \AtBeginDocument{everysel} (e.g. found in sidecap.sty)
+%  can execute it immediately. In this case, delay it until the
+%  end of pxeverysel.sty.
+\ifx\AtBeginDocument\@firstofone
+  \def\pxys at begindocumenthook{\let\AtBeginDocument\@firstofone}
+  \def\AtBeginDocument{\g at addto@macro\pxys at begindocumenthook}
+  \AtEndOfPackage{\pxys at begindocumenthook}
+\fi
 \RequirePackage{everysel}
 
 %% support for (u)pLaTeX font tracing
@@ -141,5 +162,6 @@
   \expandafter\let\csname selectfont \endcsname\pxys at selectfont}
 
 %--------------------------------------- done
+
 \endinput
 %% EOF



More information about the tex-live-commits mailing list