summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/uplatex/base/uplatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/uplatex/base/uplatex.dtx')
-rw-r--r--Master/texmf-dist/source/uplatex/base/uplatex.dtx125
1 files changed, 71 insertions, 54 deletions
diff --git a/Master/texmf-dist/source/uplatex/base/uplatex.dtx b/Master/texmf-dist/source/uplatex/base/uplatex.dtx
index 886be7225ac..bfc9b906c1a 100644
--- a/Master/texmf-dist/source/uplatex/base/uplatex.dtx
+++ b/Master/texmf-dist/source/uplatex/base/uplatex.dtx
@@ -7,7 +7,7 @@
%
% Copyright (c) 2010 ASCII MEDIA WORKS
% Copyright (c) 2016 Takuji Tanaka
-% Copyright (c) 2016-2017 Japanese TeX Development Community
+% Copyright (c) 2016-2018 Japanese TeX Development Community
%
% This file is part of the upLaTeX2e system (community edition).
% --------------------------------------------------------------
@@ -74,6 +74,13 @@
% \changes{v1.0q-u01}{2017/11/29}{英語版ドキュメントを追加
% (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0r-u01}{2017/12/02}{\upLaTeX{}と\upTeX{}の参考文献も追加}
+% \changes{v1.0s-u01}{2017/12/05}{デフォルト設定ファイルの読み込みを
+% \file{uplcore.ltx}から\file{uplatex.ltx}へ移動
+% (based on platex.dtx 2017/12/05 v1.0s)}
+% \changes{v1.0s-u02}{2017/12/10}{\file{uplcore.ltx}の前に
+% \file{plcore.ltx}を読み込むようにした(最近の\pLaTeX{}が前提)}
+% \changes{v1.0u-u02}{2018/02/18}{\pLaTeX{}の変更に追随。
+% (based on platex.dtx 2018/02/18 v1.0u)}
%\else
% \changes{v1.0c-u00}{2011/05/07}{Created \upLaTeX\ version based on \pLaTeX\ one
% (based on platex.dtx 1997/01/29 v1.0c)}
@@ -96,6 +103,13 @@
% \changes{v1.0q-u01}{2017/11/29}{New English documentation added!
% (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0r-u01}{2017/12/02}{\upLaTeX\ and \upTeX\ references added}
+% \changes{v1.0s-u01}{2017/12/05}{Moved loading default settings
+% from \file{uplcore.ltx} to \file{uplatex.ltx}
+% (based on platex.dtx 2017/12/05 v1.0s)}
+% \changes{v1.0s-u02}{2017/12/10}{Load \file{plcore.ltx} before
+% \file{uplcore.ltx} (recent version of \pLaTeX\ is assumed)}
+% \changes{v1.0u-u02}{2018/02/18}{Sync with \pLaTeX.
+% (based on platex.dtx 2018/02/18 v1.0u)}
%\fi
% \fi
%
@@ -103,7 +117,7 @@
%<*driver>
\NeedsTeXFormat{pLaTeX2e}
% \fi
-\ProvidesFile{uplatex.dtx}[2017/12/02 v1.0r-u01 upLaTeX document file]
+\ProvidesFile{uplatex.dtx}[2018/02/18 v1.0u-u02 upLaTeX document file]
% \iffalse
\documentclass{jltxdoc}
\usepackage{plext}
@@ -360,6 +374,7 @@
%\ifJAPANESE
% 次のリストが、\file{uplatex.ltx}の内容です。
% ただし、このバージョンでは、\LaTeX{}から\upLaTeX{}への拡張を
+% \file{plcore.ltx}(\pLaTeX{}によって提供される)および
% \file{uplcore.ltx}をロードすることで行ない、
% \file{latex.ltx}には直接、手を加えないようにしています。
% したがって\file{uplatex.ltx}はとても短いものとなっています。
@@ -369,7 +384,8 @@
% The content of \file{uplatex.ltx} is shown below.
% In the current version of \upLaTeX,
% first we simply load \file{latex.ltx} and
-% modify/extend some definitions by loading \file{uplcore.ltx}.
+% modify/extend some definitions by loading
+% \file{plcore.ltx} (available from \pLaTeX) and \file{uplcore.ltx}.
%\fi
% \begin{macrocode}
%<*plcore>
@@ -399,9 +415,13 @@
% \end{macrocode}
%
%\ifJAPANESE
-% \file{uplcore.ltx}を読み込みます。
+% \file{plcore.ltx}と\file{uplcore.ltx}を読み込みます。
+% \changes{v1.0s-u02}{2017/12/10}{\file{uplcore.ltx}の前に
+% \file{plcore.ltx}を読み込むようにした(最近の\pLaTeX{}が前提)}
%\else
-% Load \file{uplcore.ltx}.
+% Load \file{plcore.ltx} and \file{uplcore.ltx}.
+% \changes{v1.0s-u02}{2017/12/10}{Load \file{plcore.ltx} before
+% \file{uplcore.ltx} (recent version of \pLaTeX\ is assumed)}
%\fi
% \begin{macrocode}
\typeout{**************************^^J%
@@ -410,10 +430,36 @@
*^^J%
**************************}
\makeatletter
+\input plcore.ltx
\input uplcore.ltx
% \end{macrocode}
%
%\ifJAPANESE
+% フォント関連のデフォルト設定ファイルである、
+% \file{upldefs.ltx}を読み込みます。
+% \TeX{}の入力ファイル検索パスに設定されている
+% ディレクトリに\file{upldefs.cfg}ファイルがある場合は、
+% そのファイルを使います。
+% \changes{v1.0s-u01}{2017/12/05}{デフォルト設定ファイルの読み込みを
+% \file{uplcore.ltx}から\file{uplatex.ltx}へ移動
+% (based on platex.dtx 2017/12/05 v1.0s)}
+%\else
+% Load font-related default settings, \file{upldefs.ltx}.
+% If a file \file{upldefs.cfg} is found, then that file will be
+% used instead.
+% \changes{v1.0s-u01}{2017/12/05}{Moved loading default settings
+% from \file{uplcore.ltx} to \file{uplatex.ltx}
+% (based on platex.dtx 2017/12/05 v1.0s)}
+%\fi
+% \begin{macrocode}
+\InputIfFileExists{upldefs.cfg}
+ {\typeout{*************************************^^J%
+ * Local config file upldefs.cfg used^^J%
+ *************************************}}%
+ {\input{upldefs.ltx}}
+% \end{macrocode}
+%
+%\ifJAPANESE
% フォーマット作成時に\upLaTeX{}のバージョンがわかるように、
% 端末に表示します。
%\else
@@ -474,14 +520,13 @@
% \begin{itemize}
% \item \file{uplvers.dtx}は、\upLaTeXe{}のフォーマットバージョンを
% 定義しています。
-% \item \file{uplfonts.dtx}は、\NFSS2を拡張しています。
-% \item このほか、\pLaTeXe{}に含まれる\file{plcore.dtx}をそのまま利用
-% しています。これは、上記以外のコマンドでフォーマットファイルに
-% 格納されるコマンドを定義しています。
% \end{itemize}
%
% また、プリロードフォントや組版パラメータなどのデフォルト設定は、
-% \file{uplcore.ltx}の中で\file{upldefs.ltx}をロードすることにより行います。
+% \file{uplatex.ltx}の中で\file{upldefs.ltx}をロードすることにより行います
+% \footnote{旧版では\file{uplcore.ltx}の中でロードしていましたが、
+% 2018年以降の新しいコミュニティ版\upLaTeX{}では
+% \file{uplatex.ltx}から読み込むことにしました。}。
% このファイル\file{upldefs.ltx}も\file{uplfonts.dtx}から生成されます。
% \begin{chuui}
% このファイルに記述されている設定を変更すれば
@@ -504,7 +549,10 @@
% \end{itemize}
%
% Moreover, default settings of pre-loaded fonts and typesetting parameters
-% are done by loading \file{upldefs.ltx} inside \file{uplcore.ltx}.
+% are done by loading \file{upldefs.ltx} inside
+% \file{uplatex.ltx}.\footnote{Older \upLaTeX\ loaded \file{upldefs.ltx}
+% inside \file{uplcore.ltx}; however, \upLaTeX\ community edition newer than
+% 2018 loads \file{upldefs.ltx} inside \file{uplatex.ltx}.}
% This file \file{upldefs.ltx} is also stripped from \file{uplfonts.dtx}.
% \begin{chuui}
% You can customize \upLaTeXe\ by tuning these settings.
@@ -539,18 +587,18 @@
%
%\ifJAPANESE
% \subsubsection{\NFSS2コマンド}
-% \upLaTeXe{}は、\pLaTeXe{}と同じ方式で\NFSS2を拡張し、
-% 和文フォントを選択できるようにしています。
+% \upLaTeXe{}は\pLaTeXe{}と共通の\file{plcore.ltx}を使用していますので、
+% \NFSS2の和文フォント選択への拡張が有効になっています。
%\else
% \subsubsection{\NFSS2 Commands}
-% \upLaTeXe\ extends \NFSS2 in the same way as \pLaTeXe, to enable
-% selection of Japanese fonts.
+% \upLaTeXe\ shares \file{plcore.dtx} with \pLaTeXe, so
+% the extensions of \NFSS2 for selecting Japanese fonts are available.
%\fi
%
%
%\ifJAPANESE
% \subsubsection{出力ルーチンとフロート}
-% \upLaTeXe{}は\pLaTeXe{}と共通の\file{plcore.dtx}を使用していますので、
+% \upLaTeXe{}は\pLaTeXe{}と共通の\file{plcore.ltx}を使用していますので、
% 出力ルーチンや脚注マクロなどは\pLaTeXe{}と同じように動作します。
%\else
% \subsubsection{Output Routine and Floats}
@@ -899,46 +947,19 @@ all others indicate the places where it is used.}
\title{The \upLaTeXe\ Sources}
\author{Ken Nakano \& Japanese \TeX\ Development Community \& TTK}
-% This command will be used to input the patch file
-% if that file exists.
-\newcommand{\includeltpatch}{%
- \def\currentfile{uplpatch.ltx}
- \part{uplpatch}
- {\let\ttfamily\relax
- \xdef\filekey{\filekey, \thepart={\ttfamily\currentfile}}}%
- Things we did wrong\ldots
- \IndexInput{uplpatch.ltx}}
-
% Get the date and patch level from uplvers.dtx
\makeatletter
\let\patchdate=\@empty
\begingroup
- \def\ProvidesFile#1\pfmtversion#2#3\ppatch@level#4{%
- \date{#2}\xdef\patchdate{#4}\endinput}
+ \def\ProvidesFile#1[#2 #3]#4\def\uppatch@level#5{%
+ \date{#2}\xdef\patchdate{#5}\endinput}
\input{uplvers.dtx}
-\global\let\X@date=\@date
-
-% Add the patch version if available.
- \long\def\Xdef#1#2#3\def#4#5{%
- \xdef\X@date{#2}%
- \xdef\patchdate{#5}%
- \endinput}%
- \InputIfFileExists{uplpatch.ltx}
- {\let\def\Xdef}{\global\let\includeltpatch\relax}
\endgroup
-\ifx\@date\X@date
- \def\Xpatch{0}
- \ifx\patchdate\Xpatch\else
- % number is assumed
- \ifnum\patchdate>0
- \edef\@date{\@date\space Patch level\space\patchdate}
- \else
- \edef\@date{\@date\space Pre-Release\patchdate}
- \fi\fi
-\else
- \@warning{uplpatch.ltx does not match uplvers.dtx!}
- \let\includeltpatch\relax
+% Add the patch version if available.
+\def\Xpatch{}
+\ifx\patchdate\Xpatch\else
+ \edef\@date{\@date\space version \patchdate}
\fi
\makeatother
@@ -953,14 +974,10 @@ all others indicate the places where it is used.}
\DocInclude{uplfonts} % NFSS2 commands
-%\DocInclude{plcore} % kernel commands (comment out for upLaTeX)
-
\DocInclude{ukinsoku} % kinsoku parameter
\DocInclude{ujclasses} % Standard class
-%\includeltpatch % patch file (comment out May 8, 2016)
-
\StopEventually{\end{document}}
\clearpage
@@ -1105,7 +1122,7 @@ uplatex upldoc.tex
% \bibitem{tb108tanaka}
% Takuji Tanaka,
% \newblock Up\TeX\ --- Unicode version of \pTeX\ with CJK extensions
-% \newblock TUGboat issue 34:3, 2013].\\
+% \newblock TUGboat issue 34:3, 2013.\\
% (\texttt{http://tug.org/TUGboat/tb34-3/tb108tanaka.pdf})
% \end{thebibliography}
%