Skip to content

Commit

Permalink
requires LaTeX2e 2017-04-15, general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Mar 31, 2018
1 parent 37c30dc commit 20dbbe6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 18 deletions.
21 changes: 15 additions & 6 deletions plcore.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
%% -------------------------------------------------------------
%%
%% File: plvers.dtx
\ifx\fmtversion\@undefined
\errhelp{Please reinstall LaTeX.}%
\errmessage{This cannot happen!^^JYour file `latex.ltx'
might be broken}\@@end
\else
\ifnum\expandafter\@parse@version\fmtversion//00\@nil<20170415
\errhelp{Please update your TeX installation; if not available,
obtain it^^Jmanually from CTAN
(https://ctan.org/pkg/latex-base) or from^^JGitHub
(https://github.com/latex3/latex2e).}%
\errmessage{This version of pLaTeX2e requires LaTeX2e 2017-04-15
or newer!^^JObtain a newer version of `latex',
otherwise pLaTeX2e setup will^^Jnever succeed}\@@end
\fi
\fi
\def\pfmtname{pLaTeX2e}
\def\pfmtversion
{2018/03/09}
Expand Down Expand Up @@ -1184,12 +1199,6 @@
\global\everyjob\expandafter{\platexBANNER}%
\endgroup
\let\platexBANNER=\@undefined
\ifx\l@nohyphenation \@undefined
\newlanguage\l@nohyphenation
\fi
\ifx\document@default@language \@undefined
\let\document@default@language\m@ne
\fi
\AtBeginDocument{%
\@ifpackageloaded{latexrelease}{%
\@ifpackageloaded{platexrelease}{}{%
Expand Down
56 changes: 44 additions & 12 deletions plvers.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,31 @@
%</2ekernel|latexrelease|platexrelease>
% \end{macrocode}
%
% $B$^$:!"<!$N%P!<%8%g%s$N(B\LaTeX{}$B$,MxMQ2DG=$J$3$H$r3NG'$7$^$9!#(B
% \LaTeXe\ 2017-04-15$B$G!"%P!<%8%g%sHV9f!JF|IU!K$N%U%)!<%^%C%H$,(B
% YYYY/MM/DD$B7A<0$+$i(BYYYY-MM-DD$B$KJQ99$5$l!"$^$?%O%$%U%M!<%7%g%s$K4X78$9$k(B
% $B%Q%i%a!<%?(B|\document@default@language|$BEy$,F3F~$5$l$F$$$^$9!#(B
% ^^A \LaTeXe\ 2017/01/01$B0J9_$O(Be-\TeX{}$BI,?\$K$J$C$F$$$^$9!#(B
% \begin{macrocode}
%<*plcore>
\ifx\fmtversion\@undefined
\errhelp{Please reinstall LaTeX.}%
\errmessage{This cannot happen!^^JYour file `latex.ltx'
might be broken}\@@end
\else
\ifnum\expandafter\@parse@version\fmtversion//00\@nil<20170415
\errhelp{Please update your TeX installation; if not available,
obtain it^^Jmanually from CTAN
(https://ctan.org/pkg/latex-base) or from^^JGitHub
(https://github.com/latex3/latex2e).}%
\errmessage{This version of pLaTeX2e requires LaTeX2e 2017-04-15
or newer!^^JObtain a newer version of `latex',
otherwise pLaTeX2e setup will^^Jnever succeed}\@@end
\fi
\fi
%</plcore>
% \end{macrocode}
%
% \begin{macro}{\pfmtname}
% \begin{macro}{\pfmtversion}
% \begin{macro}{\ppatch@level}
Expand Down Expand Up @@ -195,17 +220,19 @@
%
% \subsection{$B%Q%C%A%U%!%$%k$N%m!<%I(B}
%
% $B%3%_%e%K%F%#HG(B\pLaTeXe{}$B$G$O%Q%C%A%U%!%$%k$r;HMQ$7$J$$$N$G!"(B
% $B%3%a%s%H%"%&%H$7$^$7$?!#(B
% \changes{v1.0v}{2016/05/07}{$B%Q%C%A%U%!%$%k$r%m!<%I$9$k$N$r$d$a$?!#(B}
%
% \iffalse
% $B<!$NItJ,$O!"(Bp\LaTeXe{}$B$N%Q%C%A%U%!%$%k$r%m!<%I$9$k$?$a$N%3!<%I$G$9!#(B
% $B%P%0$r=$@5$9$k$?$a$N%Q%C%A$rG[I[$9$k$+$b$7$l$^$;$s!#(B
%
% $B%Q%C%A%U%!%$%k$r%m!<%I$9$k%3!<%I$O%3%a%s%H%"%&%H$7$^$7$?!#(B
% \changes{v1.0v}{2016/05/07}{$B%Q%C%A%U%!%$%k$r%m!<%I$9$k$N$r$d$a$?!#(B}
% \begin{macrocode}
%<*plfinal>
%\IfFileExists{plpatch.ltx}
% {\typeout{************************************^^J%
% * Appliying patch file plpatch.ltx *^^J%
% ************************************}
% {\typeout{***********************************^^J%
% * Applying patch file plpatch.ltx *^^J%
% ***********************************}
% \def\pfmtversion@topatch{unknown}
% \input{plpatch.ltx}
% \ifx\pfmtversion\pfmtversion@topatch
Expand Down Expand Up @@ -234,7 +261,9 @@
% \fi
% \let\pfmtversion@topatch\relax
% }{}
%</plfinal>
% \end{macrocode}
% \fi
%
% \subsection{$B5/F0;~$KI=<($9$k%P%J!<(B}
%
Expand All @@ -250,6 +279,7 @@
% \changes{v1.1g}{2017/12/04}{\pLaTeX{}$B$N%P%J!<$NDj5A;~$K(B
% \cs{pfmtname}, \cs{pfmtversion}, \cs{ppatch@level}$B$rE83+$7$J$$$h$&$K(B}
% \begin{macrocode}
%<*plfinal>
\ifx\patch@level\@undefined % fallback if undefined in LaTeX
\def\patch@level{0}\fi
\ifx\ppatch@level\@undefined % fallback if undefined in pLaTeX
Expand Down Expand Up @@ -297,6 +327,7 @@
% \changes{v1.0z}{2016/08/26}{\file{platex.cfg}$B$NFI$_9~$_$r(B
% \file{plcore.ltx}$B$+$i(B\file{platex.ltx}$B$X0\F0(B}
%
% \iffalse
% \subsection{$B%O%$%U%M!<%7%g%s4XO"(B}
%
% \begin{macro}{\l@nohyphenation}
Expand All @@ -309,9 +340,9 @@
% (sync with ltfinal 2017/03/09 v2.0t)}
% \begin{macrocode}
%<*plfinal>
\ifx\l@nohyphenation \@undefined
\newlanguage\l@nohyphenation
\fi
%\ifx\l@nohyphenation \@undefined
% \newlanguage\l@nohyphenation
%\fi
% \end{macrocode}
% \end{macro}
%
Expand All @@ -324,12 +355,13 @@
% \changes{v1.1b}{2017/03/19}{\cs{document@default@language}$B$NDj5A$rJ]>Z(B
% (sync with ltfinal 2017/03/09 v2.0t)}
% \begin{macrocode}
\ifx\document@default@language \@undefined
\let\document@default@language\m@ne
\fi
%\ifx\document@default@language \@undefined
% \let\document@default@language\m@ne
%\fi
%</plfinal>
% \end{macrocode}
% \end{macro}
% \fi
%
% \subsection{latexrelease$B%Q%C%1!<%8$X$NBP1~(B}
%
Expand Down

0 comments on commit 20dbbe6

Please sign in to comment.