From 4f1bd2da5c522f1390d895b591d0674eea6b7ebe Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 Nov 2017 21:37:28 +0000 Subject: platex (3nov17) git-svn-id: svn://tug.org/texlive/trunk@45680 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/platex/base/platex.dtx | 2 +- Master/texmf-dist/source/platex/base/plcore.dtx | 14 +++++++++++--- Master/texmf-dist/source/platex/base/plvers.dtx | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/source/platex') diff --git a/Master/texmf-dist/source/platex/base/platex.dtx b/Master/texmf-dist/source/platex/base/platex.dtx index 7cd28af9a04..daa617e13a2 100644 --- a/Master/texmf-dist/source/platex/base/platex.dtx +++ b/Master/texmf-dist/source/platex/base/platex.dtx @@ -656,7 +656,7 @@ \def\Xpatch{0} \ifx\patchdate\Xpatch\else % number is assumed - \ifx\patchdate>0 + \ifnum\patchdate>0 \edef\@date{\@date\space Patch level\space\patchdate} \else \edef\@date{\@date\space Pre-Release\patchdate} diff --git a/Master/texmf-dist/source/platex/base/plcore.dtx b/Master/texmf-dist/source/platex/base/plcore.dtx index 77ea7eb9f74..4ef45b866e4 100644 --- a/Master/texmf-dist/source/platex/base/plcore.dtx +++ b/Master/texmf-dist/source/platex/base/plcore.dtx @@ -75,13 +75,15 @@ % \changes{v1.2s}{2017/09/27}{相互参照のスペースファクターを補正} % \changes{v1.2s}{2017/09/27}{\cs{verb}の冒頭の半角空白を保持} % \changes{v1.2s}{2017/09/27}{tabbing環境の行冒頭のJFMグル―を削除} +% \changes{v1.2t}{2017/10/31}{v1.2sの変更に伴い、\cs{ref}が数式モードで +% エラーになっていたのを修正} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{plcore.dtx}[2017/09/27 v1.2s pLaTeX core file] +\ProvidesFile{plcore.dtx}[2017/10/31 v1.2t pLaTeX core file] % \iffalse \documentclass{jltxdoc} \GetFileInfo{plcore.dtx} @@ -1384,8 +1386,11 @@ % ``A''を相互参照で取得した場合のスペースファクターを補正するため、 % |\spacefactor\@m{}|に修正しました。これで、``A.''の後のスペースが % 文末として扱われます。 -% (参考:\LaTeXe{}マクロ\&クラス プログラミング実践解説) +% 「\LaTeXe{}マクロ\&クラス プログラミング実践解説」のコードを参考に +% しましたが、数式モード内でもエラーにならないように改良しています。 % \changes{v1.2s}{2017/09/27}{相互参照のスペースファクターを補正} +% \changes{v1.2t}{2017/10/31}{v1.2sの変更に伴い、\cs{ref}が数式モードで +% エラーになっていたのを修正} % \begin{macrocode} % %\plIncludeInRelease{2017/10/28}{\@setref} @@ -1398,8 +1403,9 @@ \@latex@warning{Reference `#3' on page \thepage \space undefined}% \else - \expandafter#2#1\spacefactor\@m{}% change \null to \spacefactor\@m{} + \expandafter#2#1\protect\@setref@{}% change \null to \protect\@setref@{} \fi} +\def\@setref@{\ifmmode\else\spacefactor\@m\fi} % %\plEndIncludeInRelease %\plIncludeInRelease{2017/04/08}{\@setref} @@ -1413,6 +1419,7 @@ % \else % \expandafter#2#1\relax{}% change \null to \relax{} % \fi} +%\let\@setref@\@undefined %\plEndIncludeInRelease %\plIncludeInRelease{0000/00/00}{\@setref} % {Spacing after \ref in moving arguments}% @@ -1425,6 +1432,7 @@ % \else % \expandafter#2#1\relax% change \null to \relax % \fi} +%\let\@setref@\@undefined %\plEndIncludeInRelease %<*plcore> % \end{macrocode} diff --git a/Master/texmf-dist/source/platex/base/plvers.dtx b/Master/texmf-dist/source/platex/base/plvers.dtx index d01c1283121..11e8e52eb54 100644 --- a/Master/texmf-dist/source/platex/base/plvers.dtx +++ b/Master/texmf-dist/source/platex/base/plvers.dtx @@ -131,7 +131,7 @@ {2017/10/28} % %<*plcore> -\def\ppatch@level{0} +\def\ppatch@level{1} % % \end{macrocode} % \end{macro} -- cgit v1.2.3