summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/uplatex/base/uplatex.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-12-06 22:25:59 +0000
committerKarl Berry <karl@freefriends.org>2016-12-06 22:25:59 +0000
commit80ccb8b3240cecd4e00cd168b5ece7b07376287e (patch)
treed03212bca10a944367032e68579d2979d7211837 /Master/texmf-dist/source/uplatex/base/uplatex.dtx
parentcd6b6c7b860f3d2ec368e0791f6665ce44d634bc (diff)
uplatex
git-svn-id: svn://tug.org/texlive/trunk@42646 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/uplatex/base/uplatex.dtx')
-rw-r--r--Master/texmf-dist/source/uplatex/base/uplatex.dtx49
1 files changed, 46 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/uplatex/base/uplatex.dtx b/Master/texmf-dist/source/uplatex/base/uplatex.dtx
index 904d6687430..bb11249e9b8 100644
--- a/Master/texmf-dist/source/uplatex/base/uplatex.dtx
+++ b/Master/texmf-dist/source/uplatex/base/uplatex.dtx
@@ -54,13 +54,14 @@
% \changes{v1.0l-u01}{2016/06/19}{パッチレベルを\file{uplvers.dtx}から取得}
% \changes{v1.0m-u01}{2016/08/26}{\file{uplatex.cfg}の読み込みを
% \file{uplcore.ltx}から\file{uplatex.ltx}へ移動}
+% \changes{v1.0n-u01}{2016/09/14}{\LaTeX{}のバナーの保存しかたを改良}
% \fi
%
% \iffalse
%<*driver>
\NeedsTeXFormat{pLaTeX2e}
% \fi
-\ProvidesFile{uplatex.dtx}[2016/08/26 v1.0m-u01 upLaTeX document file]
+\ProvidesFile{uplatex.dtx}[2016/09/14 v1.0n-u01 upLaTeX document file]
% \iffalse
\documentclass{jltxdoc}
\usepackage{plext}
@@ -257,11 +258,53 @@
\let\dump\relax
% \end{macrocode}
%
-% \file{latex.ltx}を読み込み、起動時のバナーを保存します。
+% \file{latex.ltx}を読み込み、起動時のバナーを保存します。\TeX\ Liveの標準的
+% インストールでは、この中でBabel由来のハイフネーション・パターン
+% \file{hyphen.cfg}が読み込まれ、そのバージョンも含めて保存されるはずです。
+%
+%\iffalse
+% 2016/05/07の実装では、\file{platex.ltx}のなかで
+%\begin{verbatim}
+% \edef\platexBANNER{\the\everyjob}
+%\end{verbatim}
+% としてバナーを保存し、この内容が
+%\begin{verbatim}
+% \typeout{LaTeX2e version}\typeout{Babel version}
+%\end{verbatim}
+% という4つのトークンから成ると仮定して、\file{plcore.ltx}のなかで
+%\begin{verbatim}
+% \def\parse@@BANNER#1#2#3#4{#2}
+%\end{verbatim}
+% のようにパースしていました。ところが、この「4つのトークンから成る」と
+% いう仮定はBabel由来の\file{hyphen.cfg}を使用した場合のみ成り立ち、
+% それ以外の特別な\file{hyphen.cfg}や\file{hyphen.ltx}を使用した場合に
+% エラーになってしまいます。
+% そこで、新たに2016/09/14の実装では、\file{platex.ltx}のなかで
+%\begin{verbatim}
+% \edef\platexBANNER{\the\everyjob\noexpand\typeout{}\relax}
+%\end{verbatim}
+% としてダミーを追加します(|\relax|はただの区切りトークンの役割)。
+% こうすると、|\platexBANNER|の内容は、Babelの\file{hyphen.cfg}のとき
+%\begin{verbatim}
+% \typeout{LaTeX2e version}\typeout{Babel version}\typeout{}\relax
+%\end{verbatim}
+% となり、それ以外のとき
+%\begin{verbatim}
+% \typeout{LaTeX2e version}\typeout{}\relax
+%\end{verbatim}
+% となるはずです。このように、少なくとも|\typeout|が2回含まれています
+% ので、\file{plcore.ltx}のなかで
+%\begin{verbatim}
+% \def\parse@@BANNER\typeout#1\typeout#2#3\relax{#1}
+%\end{verbatim}
+% とパースすることができるようになります。
+%\fi
+%
% \changes{v1.0g-u00}{2016/05/07}{フォーマット作成時に\LaTeX{}のバナーを一旦保存}
+% \changes{v1.0n-u01}{2016/09/14}{\LaTeX{}のバナーの保存しかたを改良}
% \begin{macrocode}
\input latex.ltx
-\edef\platexBANNER{\the\everyjob}% save LaTeX banner
+\edef\platexBANNER{\the\everyjob\noexpand\typeout{}\relax}% save LaTeX banner
% \end{macrocode}
%
% \file{uplcore.ltx}を読み込み、このup\LaTeX{}のバージョンを表示します。