texlive[59212] Master/texmf-dist: plautopatch (15may21)

commits+karl at tug.org commits+karl at tug.org
Sat May 15 22:36:53 CEST 2021


Revision: 59212
          http://tug.org/svn/texlive?view=revision&revision=59212
Author:   karl
Date:     2021-05-15 22:36:53 +0200 (Sat, 15 May 2021)
Log Message:
-----------
plautopatch (15may21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/plautopatch/README.md
    trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf
    trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex
    trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch.pdf
    trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex
    trunk/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty

Modified: trunk/Master/texmf-dist/doc/latex/plautopatch/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/plautopatch/README.md	2021-05-15 20:36:25 UTC (rev 59211)
+++ trunk/Master/texmf-dist/doc/latex/plautopatch/README.md	2021-05-15 20:36:53 UTC (rev 59212)
@@ -94,6 +94,6 @@
 
 ## Release Date
 
-2021-02-13
+2021-05-15
 
 Hironobu Yamashita

Modified: trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex	2021-05-15 20:36:25 UTC (rev 59211)
+++ trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch-ja.tex	2021-05-15 20:36:53 UTC (rev 59212)
@@ -17,7 +17,7 @@
 
 \maketitle
 
-日本のp\LaTeX/up\LaTeX{}フォーマットや専用パッケージが、
+日本の\pLaTeX/\upLaTeX{}フォーマットや専用パッケージが、
 これらを知らない\LaTeX{}パッケージ(しばしば海外で作られた
 汎用のもの)と衝突することがあります。
 最悪の場合にはエラーが出たり、誤った出力が得られたり
@@ -24,11 +24,11 @@
 することがあります。
 
 この\textsf{plautopatch}の目的は、こうした非互換を意識せずに
-済むようにすることです。具体的には、p\LaTeX/up\LaTeX{}と
+済むようにすることです。具体的には、\pLaTeX/\upLaTeX{}と
 衝突するパッケージが使われた場合に、その衝突を解消するパッチを
 提供するパッケージを必要に応じて自動的に読み込みます。
 こうすることで、ソースコードを簡潔にできるだけでなく、
-p\LaTeX/up\LaTeX{}で動作するソースと通常の\LaTeX{}ソースの
+\pLaTeX/\upLaTeX{}で動作するソースと通常の\LaTeX{}ソースの
 見た目を近づけることができます。
 
 このパッケージはGitHubで開発しています。
@@ -154,6 +154,20 @@
 \end{verbatim}
 のようにコンマで区切っていくつでも除外できます。
 
+\section*{パッケージ特有の注意}
+
+\begin{itemize}
+  \item \textsf{hyperref}パッケージを使用する場合、パッチを提供する
+    \textsf{pxjahyper}パッケージが\textsf{hyperref}の\emph{直後}に
+    自動的に読み込まれます。
+    もし\textsf{pxjahyper}パッケージのオプションが必要な場合は、
+    \textsf{hyperref}より前に
+    \verb+\PassOptionsToPackage{...}{pxjahyper}+
+    と書くことでオプション衝突のエラーを避けてください(とはいっても、
+    \textsf{pxjahyper}はデフォルトの設定でほとんどの場合に
+    完璧に動作するため、ほとんど必要ないでしょう)。
+\end{itemize}
+
 \section*{変更履歴}
 
 \begin{itemize}
@@ -176,6 +190,7 @@
   \item 2020/10/21 v0.9l \verb+\plautopatchdisable+が機能しなかったバグを修正
   \item 2020/11/26 v0.9m \textsf{pgf}最新版に追随
   \item 2021/02/13 v0.9n \textsf{pxeverysel}を不要に(\LaTeXe~2021-05-01対応)
+  \item 2021/05/15 v0.9o \textsf{pxjahyper}の読込を遅延させない
 \end{itemize}
 
 \end{document}

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

Modified: trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex	2021-05-15 20:36:25 UTC (rev 59211)
+++ trunk/Master/texmf-dist/doc/latex/plautopatch/plautopatch.tex	2021-05-15 20:36:53 UTC (rev 59212)
@@ -17,8 +17,8 @@
 
 \maketitle
 
-Japanese \pLaTeX/up\LaTeX\ formats and packages often conflict
-with other \LaTeX\ packages which are unaware of p\LaTeX/up\LaTeX.
+Japanese \pLaTeX/\upLaTeX\ formats and packages often conflict
+with other \LaTeX\ packages which are unaware of \pLaTeX/\upLaTeX.
 In the worst case, such packages throw a fatal error or
 end up with a wrong output.
 
@@ -27,7 +27,7 @@
 because specific patches are loaded automatically
 whenever necessary.
 This helps not only to simplify source files, but also
-to make the appearance of working p\LaTeX/up\LaTeX\ sources
+to make the appearance of working \pLaTeX/\upLaTeX\ sources
 similar to those of ordinary \LaTeX\ ones.
 
 The package is maintained on GitHub:
@@ -156,6 +156,17 @@
     \plautopatchdisable{<original package 1>,<original package 2>}
 \end{verbatim}
 
+\section*{Package-specific notice}
+
+\begin{itemize}
+  \item If you use the \textsf{hyperref} package, the patch package
+    \textsf{pxjahyper} is loaded \emph{immediately} after \textsf{hyperref}.
+    If you need some explicit options of \textsf{pxjahyper} (though
+    it should be rare enough because it works almost perfectly without those),
+    you should write \verb+\PassOptionsToPackage{...}{pxjahyper}+
+    before \textsf{hyperref} to avoid an option clash.
+\end{itemize}
+
 \section*{Change History}
 
 \begin{itemize}
@@ -178,6 +189,7 @@
   \item 2020/10/21 v0.9l Bug fix for \verb+\plautopatchdisable+
   \item 2020/11/26 v0.9m Adapt to latest \textsf{pgf}
   \item 2021/02/13 v0.9n Do not require \textsf{pxeverysel} on \LaTeXe~2021-05-01
+  \item 2021/05/15 v0.9o Do not delay \textsf{pxjahyper} loading
 \end{itemize}
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty	2021-05-15 20:36:25 UTC (rev 59211)
+++ trunk/Master/texmf-dist/tex/latex/plautopatch/plautopatch.sty	2021-05-15 20:36:53 UTC (rev 59212)
@@ -8,7 +8,7 @@
 
 \NeedsTeXFormat{LaTeX2e}% not pLaTeX2e on purpose!
 \ProvidesPackage{plautopatch}
-    [2021/02/13 v0.9n Automated patches for pLaTeX/upLaTeX]
+    [2021/05/15 v0.9o Automated patches for pLaTeX/upLaTeX]
 
 \ifx\pfmtname\@undefined
   \PackageInfo{plautopatch}{%
@@ -244,12 +244,11 @@
 \platpc at patch@after{pdfpages}{pxpdfpages}% gentombow
 \platpc at patch@before{stfloats}{pxstfloats}% pxsttools -- (!!)
 % --- in most cases, pxjahyper works without explicit options
-% --- however, in case a user specifies some, delay it
-% --- [TODO] if \AtBeginDocument{\usepackage{hyperref}} appears,
+% --- however, in case a user specifies some, option clash will happen
+% --- [Note] if \AtBeginDocument{\usepackage{hyperref}} appears,
 % ----       writing to \jobname.out (= 'jacommentline' feature)
 % ----       does not work because it's too late.
-\AtBeginDocument
-  {\platpc at patch@after{hyperref}{pxjahyper}}% by Takayuki YATO (ZR)
+\platpc at patch@after{hyperref}{pxjahyper}% by Takayuki YATO (ZR)
 
 % for TikZ/PGF
 \platpc at patch@after{pgfrcs}{pxpgfrcs}% (maintained here!)



More information about the tex-live-commits mailing list.