summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/uplatex/base/uplvers.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/uplatex/base/uplvers.dtx')
-rw-r--r--Master/texmf-dist/source/uplatex/base/uplvers.dtx81
1 files changed, 67 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/uplatex/base/uplvers.dtx b/Master/texmf-dist/source/uplatex/base/uplvers.dtx
index a3d3b4bb125..20e045d7016 100644
--- a/Master/texmf-dist/source/uplatex/base/uplvers.dtx
+++ b/Master/texmf-dist/source/uplatex/base/uplvers.dtx
@@ -7,7 +7,7 @@
%
% Copyright (c) 2010 ASCII MEDIA WORKS
% Copyright (c) 2016 Takuji Tanaka
-% Copyright (c) 2016 Japanese TeX Development Community
+% Copyright (c) 2016-2017 Japanese TeX Development Community
%
% This file is part of the upLaTeX2e system (community edition).
% --------------------------------------------------------------
@@ -43,11 +43,11 @@
% 対応するためのコードを導入}
% \changes{v1.0t}{2016/02/03}{\cs{plIncludeInRelease}と
% \cs{plEndIncludeInRelease}を新設。}
-% \changes{v1.0t-u00}{2016/04/06}{p\LaTeX{}の変更に追随。}
-% \changes{v1.0u-u00}{2016/04/17}{\LaTeX\ \texttt{!<2016/03/31!>}版対応確認}
-% \changes{v1.0v-u00}{2016/05/07}{パッチファイルをロードするのをやめた。}
-% \changes{v1.0v-u00}{2016/05/07}{起動時の文字列を最新の\LaTeX{}に合わせた。}
-% \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れる\LaTeX{}のバージョンを
+% \changes{v1.0u}{2016/04/17}{\LaTeX\ \texttt{!<2016/03/31!>}版対応確認}
+% \changes{v1.0u-u00}{2016/04/17}{p\LaTeX{}の変更に追随。}
+% \changes{v1.0v}{2016/05/07}{パッチファイルをロードするのをやめた。}
+% \changes{v1.0v}{2016/05/07}{起動時の文字列を最新の\LaTeX{}に合わせた。}
+% \changes{v1.0w}{2016/05/12}{起動時の文字列に入れる\LaTeX{}のバージョンを
% 元の\LaTeX{}のバナーから引き継ぐように改良}
% \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れるBabelのバージョンを
% 元の\LaTeX{}のバナーから取得するコードを\file{uplatex.ini}から取り入れた}
@@ -59,12 +59,19 @@
% \changes{v1.0z-u01}{2016/08/26}{\file{uplatex.cfg}の読み込みを
% \file{uplcore.ltx}から\file{uplatex.ltx}へ移動}
% \changes{v1.1-u01}{2016/09/14}{起動時のバナーを取得するコードを改良}
+% \changes{v1.1a}{2017/02/20}{\LaTeX\ \texttt{!<2017/01/01!>}版対応確認}
+% \changes{v1.1a-u01}{2017/03/05}{p\LaTeX{}の変更に追随。}
+% \changes{v1.1b}{2017/03/19}{\cs{l@nohyphenation}の定義を保証
+% (sync with ltfinal 2017/03/09 v2.0t)}
+% \changes{v1.1b}{2017/03/19}{\cs{document@default@language}の定義を保証
+% (sync with ltfinal 2017/03/09 v2.0t)}
+% \changes{v1.1b-u01}{2017/03/19}{p\LaTeX{}の変更に追随。}
% \fi
%
% \iffalse
%<*driver>
% \fi
-\ProvidesFile{uplvers.dtx}[2016/09/14 v1.1-u01 upLaTeX Kernel (Version Info)]
+\ProvidesFile{uplvers.dtx}[2017/03/19 v1.1b-u01 upLaTeX Kernel (Version Info)]
% \iffalse
\documentclass{jltxdoc}
\GetFileInfo{uplvers.dtx}
@@ -98,7 +105,8 @@
% \changes{v1.0l}{2001/09/04}{\LaTeX\ \texttt{!<2001/06/01!>}版用に修正}
% \changes{v1.0m}{2004/08/10}{\LaTeX\ \texttt{!<2003/12/01!>}版対応確認}
% \changes{v1.0s}{2016/02/01}{\LaTeX\ \texttt{!<2015/01/01!>}版用に修正}
-% \changes{v1.0u-u00}{2016/04/17}{\LaTeX\ \texttt{!<2016/03/31!>}版対応確認}
+% \changes{v1.0u}{2016/04/17}{\LaTeX\ \texttt{!<2016/03/31!>}版対応確認}
+% \changes{v1.1a}{2017/02/20}{\LaTeX\ \texttt{!<2017/01/01!>}版対応確認}
%
% このバージョンのup\LaTeXe{}は、次のバージョンの\LaTeX{}\footnote{%
% \LaTeX\ authors: Johannes Braams, David Carlisle, Alan Jeffrey,
@@ -112,7 +120,7 @@
%<latexrelease>\edef\latexreleaseversion
%<platexrelease>\edef\p@known@latexreleaseversion
%<*2ekernel|latexrelease|platexrelease>
- {2016/03/31}
+ {2017/01/01}
%</2ekernel|latexrelease|platexrelease>
% \end{macrocode}
%
@@ -128,7 +136,7 @@
%</plcore>
%<platexrelease>\edef\platexreleaseversion
%<*plcore|platexrelease>
- {2016/11/29u01}
+ {2017/04/08u01}
%</plcore|platexrelease>
%<*plcore>
\def\ppatch@level{0}
@@ -150,7 +158,14 @@
% \begin{macrocode}
%<*plfinal>
\def\documentstyle{%
- \@latex@error{upLaTeX does NOT support LaTeX 2.09 compatibility mode}\@ehc
+ \@latex@error{upLaTeX does NOT support LaTeX 2.09 compatibility
+ mode.\MessageBreak Use \noexpand\documentclass instead}{%
+ \noexpand\documentstyle is an old convention of LaTeX 2.09,
+ which has been\MessageBreak obsolete since 1995. upLaTeX is
+ first released in 2007, so we do\MessageBreak not provide any
+ emulation of the LaTeX 2.09 author environment.\MessageBreak
+ New documents should use Standard LaTeX conventions, and
+ start\MessageBreak with the \noexpand\documentclass command.}%
\documentclass}
% \end{macrocode}
% \end{macro}
@@ -161,7 +176,7 @@
% バグを修正するためのパッチを配布するかもしれません。
%
% パッチファイルをロードするコードはコメントアウトしました。
-% \changes{v1.0v-u00}{2016/05/07}{パッチファイルをロードするのをやめた。}
+% \changes{v1.0v}{2016/05/07}{パッチファイルをロードするのをやめた。}
% \begin{macrocode}
%\IfFileExists{uplpatch.ltx}
% {\typeout{************************************^^J%
@@ -197,6 +212,9 @@
% }{}
% \end{macrocode}
%
+% \subsection{起動時に表示するバナー}
+%
+% \begin{macro}{\everyjob}
% 起動時に表示される文字列です。
% \LaTeX{}にパッチがあてられている場合は、それも表示します。
%
@@ -204,8 +222,8 @@
% この実装については\file{uplatex.dtx}のコメントを参照。(2016/09/14)
%\fi
%
-% \changes{v1.0v-u00}{2016/05/07}{起動時の文字列を最新の\LaTeX{}に合わせた。}
-% \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れる\LaTeX{}のバージョンを
+% \changes{v1.0v}{2016/05/07}{起動時の文字列を最新の\LaTeX{}に合わせた。}
+% \changes{v1.0w}{2016/05/12}{起動時の文字列に入れる\LaTeX{}のバージョンを
% 元の\LaTeX{}のバナーから引き継ぐように改良}
% \changes{v1.1-u01}{2016/09/14}{起動時のバナーを取得するコードを改良}
% \begin{macrocode}
@@ -257,6 +275,7 @@
\endgroup \platexTMP
%</plfinal>
% \end{macrocode}
+% \end{macro}
%
% ^^A 起動時に\file{uplatex.cfg}がある場合、それを読み込むようにする
% ^^A コードは、\file{uplcore.ltx}から\file{uplatex.ltx}へ移動しました。
@@ -264,6 +283,40 @@
% \changes{v1.0z-u01}{2016/08/26}{\file{uplatex.cfg}の読み込みを
% \file{uplcore.ltx}から\file{uplatex.ltx}へ移動}
%
+% \subsection{ハイフネーション関連}
+%
+% \begin{macro}{\l@nohyphenation}
+% \LaTeXe\ 2017-04-15で、|\verb|の途中でハイフネーションが起きないように
+% する修正が入りました。この修正には|\l@nohyphenation|が定義済みでなければ
+% なりませんが、通常はBabelの定義ファイルによって提供されています。
+% \LaTeXe{}は特殊な状況も想定してltfinalで対策しているようですので、
+% p\LaTeXe{}も念のためplfinalで対策します(参考:latex2e svn r1405)。
+% \changes{v1.1b}{2017/03/19}{\cs{l@nohyphenation}の定義を保証
+% (sync with ltfinal 2017/03/09 v2.0t)}
+% \begin{macrocode}
+%<*plfinal>
+\ifx\l@nohyphenation \@undefined
+ \newlanguage\l@nohyphenation
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\document@default@language}
+% \LaTeXe\ 2017-04-15で導入されたパラメータです。更新タイミングのずれの
+% 可能性を考慮し、p\LaTeXe{}でも準備しておきます。verbatim環境の途中で
+% 改ページが起きた場合にヘッダでハイフネーションが抑制されないように、
+% |\@outputpage|で|\language|をリセットするときに使われます
+% (参考:latex2e svn r1407)。
+% \changes{v1.1b}{2017/03/19}{\cs{document@default@language}の定義を保証
+% (sync with ltfinal 2017/03/09 v2.0t)}
+% \begin{macrocode}
+\ifx\document@default@language \@undefined
+ \let\document@default@language\m@ne
+\fi
+%</plfinal>
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{latexreleaseパッケージへの対応}
%
% 最後に、latexreleaseパッケージへの対応です。