% \iffalse meta-comment %% File: uplvers.dtx % % pLaTeX version setting file: % Copyright 1995-2006 ASCII Corporation. % and modified for upLaTeX % % Copyright (c) 2010 ASCII MEDIA WORKS % Copyright (c) 2016 Takuji Tanaka % Copyright (c) 2016 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- % % \fi % % % \setcounter{StandardModuleDepth}{1} % \StopEventually{} % % \iffalse % \changes{v1.0}{1995/05/16}{p\LaTeXe\ 用に\file{ltvers.dtx}を修正} % \changes{v1.0a}{1995/08/30}{\LaTeX\ \texttt{!<1995/06/01!>}版用に修正} % \changes{v1.0b}{1996/01/31}{\LaTeX\ \texttt{!<1995/12/01!>}版用に修正} % \changes{v1.0c}{1997/01/11}{\LaTeX\ \texttt{!<1996/06/01!>}版用に修正} % \changes{v1.0d}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}版用に修正} % \changes{v1.0e}{1997/07/02}{\LaTeX\ \texttt{!<1997/06/01!>}版用に修正} % \changes{v1.0f}{1998/02/17}{\LaTeX\ \texttt{!<1997/12/01!>}版用に修正} % \changes{v1.0g}{1998/09/01}{\LaTeX\ \texttt{!<1998/06/01!>}版用に修正} % \changes{v1.0h}{1999/04/05}{\LaTeX\ \texttt{!<1998/12/01!>}版用に修正} % \changes{v1.0i}{1999/08/09}{\LaTeX\ \texttt{!<1999/06/01!>}版用に修正} % \changes{v1.0j}{2000/02/29}{\LaTeX\ \texttt{!<1999/12/01!>}版用に修正} % \changes{v1.0k}{2000/11/03}{\LaTeX\ \texttt{!<2000/06/01!>}版用に修正} % \changes{v1.0l}{2001/09/04}{\LaTeX\ \texttt{!<2001/06/01!>}版用に修正} % \changes{v1.0m}{2004/08/10}{\LaTeX\ \texttt{!<2003/12/01!>}版対応確認} % \changes{v1.0n}{2005/01/04}{plfonts.dtxバグ修正} % \changes{v1.0o}{2006/01/04}{plfonts.dtxバグ修正} % \changes{v1.0p}{2006/06/27}{plfonts.dtx \LaTeX\ \texttt{!<2005/12/01!>}対応} % \changes{v1.0q}{2006/11/10}{plfonts.dtxバグ修正} % \changes{v1.0q-u00}{2011/05/07}{p\LaTeX{}用からup\LaTeX{}用に修正。} % \changes{v1.0r}{2016/01/26}{plcore.dtx p\TeX\ (r28720)対応} % \changes{v1.0s}{2016/02/01}{\LaTeX\ \texttt{!<2015/01/01!>}のlatexreleaseに % 対応するためのコードを導入} % \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{}のバージョンを % 元の\LaTeX{}のバナーから引き継ぐように改良} % \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れるBabelのバージョンを % 元の\LaTeX{}のバナーから取得するコードを\file{uplatex.ini}から取り入れた} % \changes{v1.0w-u01}{2016/05/21}{サポート外の\LaTeX~2.09互換モードが % 使われた場合に明確なエラーを出すようにした。} % \changes{v1.0x}{2016/06/19}{パッチレベルを\file{plvers.dtx}で設定} % \changes{v1.0x-u01}{2016/06/19}{p\LaTeX{}の変更に追随。} % \changes{v1.0y-u01}{2016/06/29}{\file{uplatex.cfg}の読み込みを追加} % \changes{v1.0z-u01}{2016/08/26}{\file{uplatex.cfg}の読み込みを % \file{uplcore.ltx}から\file{uplatex.ltx}へ移動} % \fi % % \iffalse %<*driver> % \fi \ProvidesFile{uplvers.dtx}[2016/08/26 v1.0z-u01 upLaTeX Kernel (Version Info)] % \iffalse \documentclass{jltxdoc} \GetFileInfo{uplvers.dtx} \author{Ken Nakano \& Hideaki Togashi \& TTK} \title{\filename} \date{作成日:\filedate} \begin{document} \maketitle \DocInput{\filename} \end{document} % % \fi % % \section{バージョンの設定} % まず、このディストリビューションでのup\LaTeXe{}の日付とバージョン番号 % を定義します。また、up\LaTeXe{}が起動されたときに表示される文字列の % 設定もします。 % % \changes{v1.0}{1995/05/16}{p\LaTeXe\ 用に\file{ltvers.dtx}を修正} % \changes{v1.0a}{1995/08/30}{\LaTeX\ \texttt{!<1995/06/01!>}版用に修正} % \changes{v1.0b}{1996/01/31}{\LaTeX\ \texttt{!<1995/12/01!>}版用に修正} % \changes{v1.0c}{1997/01/11}{\LaTeX\ \texttt{!<1996/06/01!>}版用に修正} % \changes{v1.0d}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}版用に修正} % \changes{v1.0e}{1997/07/02}{\LaTeX\ \texttt{!<1997/06/01!>}版用に修正} % \changes{v1.0f}{1998/02/17}{\LaTeX\ \texttt{!<1997/12/01!>}版用に修正} % \changes{v1.0g}{1998/09/01}{\LaTeX\ \texttt{!<1998/06/01!>}版用に修正} % \changes{v1.0h}{1999/04/05}{\LaTeX\ \texttt{!<1998/12/01!>}版用に修正} % \changes{v1.0i}{1999/08/09}{\LaTeX\ \texttt{!<1999/06/01!>}版用に修正} % \changes{v1.0j}{2000/02/29}{\LaTeX\ \texttt{!<1999/12/01!>}版用に修正} % \changes{v1.0k}{2000/11/03}{\LaTeX\ \texttt{!<2000/06/01!>}版用に修正} % \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!>}版対応確認} % % このバージョンのup\LaTeXe{}は、次のバージョンの\LaTeX{}\footnote{% % \LaTeX\ authors: Johannes Braams, David Carlisle, Alan Jeffrey, % Leslie Lamport, Frank Mittelbach, Chris Rowley, Rainer Sch\"opf}を % もとにしています。 % \begin{macrocode} %<*2ekernel> %\def\fmtname{LaTeX2e} %\edef\fmtversion % %\edef\latexreleaseversion %\edef\p@known@latexreleaseversion %<*2ekernel|latexrelease|platexrelease> {2016/03/31} % % \end{macrocode} % % \begin{macro}{\pfmtname} % \begin{macro}{\pfmtversion} % \begin{macro}{\ppatch@level} % up\LaTeXe{}のフォーマットファイル名とバージョンです。 % \changes{v1.0x}{2016/06/19}{パッチレベルを\file{plvers.dtx}で設定} % \begin{macrocode} %<*plcore> \def\pfmtname{pLaTeX2e} \def\pfmtversion % %\edef\platexreleaseversion %<*plcore|platexrelease> {2016/09/03u01} % %<*plcore> \def\ppatch@level{0} % % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % % \subsection{\LaTeX~2.09互換モードの抑制} % % \begin{macro}{\documentstyle} % p\LaTeX{}は、|\documentclass|の代わりに|\documentstyle|が使われると % \LaTeX~2.09互換モードに入ります。しかし、up\LaTeX{}は新しいマクロ % パッケージですので、\LaTeX~2.09互換モードをサポートしません。 % このため、\file{plcore.dtx}の定義を上書きして明確なエラーを出します。 % \changes{v1.0w-u01}{2016/05/21}{サポート外の\LaTeX~2.09互換モードが % 使われた場合に明確なエラーを出すようにした。} % \begin{macrocode} %<*plfinal> \def\documentstyle{% \@latex@error{upLaTeX does NOT support LaTeX 2.09 compatibility mode}\@ehc \documentclass} % \end{macrocode} % \end{macro} % % \subsection{パッチファイルのロード} % % 次の部分は、up\LaTeXe{}のパッチファイルをロードするためのコードです。 % バグを修正するためのパッチを配布するかもしれません。 % % パッチファイルをロードするコードはコメントアウトしました。 % \changes{v1.0v-u00}{2016/05/07}{パッチファイルをロードするのをやめた。} % \begin{macrocode} %\IfFileExists{uplpatch.ltx} % {\typeout{************************************^^J% % * Appliying patch file uplpatch.ltx *^^J% % ************************************} % \def\pfmtversion@topatch{unknown} % \input{uplpatch.ltx} % \ifx\pfmtversion\pfmtversion@topatch % \ifx\ppatch@level\@undefined % \typeout{^^J^^J^^J% % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J% % !! Patch file `uplpatch.ltx' (for version <\pfmtversion@topatch>)^^J% % !! is not suitable for version <\pfmtversion> of upLaTeX.^^J^^J% % !! Please check if iniptex found an old patch file:^^J% % !! --- if so, rename it or delete it, and redo the^^J% % !! iniptex run.^^J% % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}% % \batchmode \@@end % \fi % \else % \typeout{^^J^^J^^J% % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J% % !! Patch file `uplpatch.ltx' (for version <\pfmtversion@topatch>)^^J% % !! is not suitable for version <\pfmtversion> of upLaTeX.^^J% % !!^^J% % !! Please check if iniptex found an old patch file:^^J% % !! --- if so, rename it or delete it, and redo the^^J% % !! iniptex run.^^J% % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}% % \batchmode \@@end % \fi % \let\pfmtversion@topatch\relax % }{} % \end{macrocode} % % 起動時に表示される文字列です。 % \LaTeX{}にパッチがあてられている場合は、それも表示します。 % \changes{v1.0v-u00}{2016/05/07}{起動時の文字列を最新の\LaTeX{}に合わせた。} % \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れる\LaTeX{}のバージョンを % 元の\LaTeX{}のバナーから引き継ぐように改良} % \begin{macrocode} \ifx\patch@level\@undefined % fallback if undefined in LaTeX \def\patch@level{0}\fi \ifx\ppatch@level\@undefined % fallback if undefined in upLaTeX \def\ppatch@level{0}\fi \begingroup \def\parse@BANNER#1{\expandafter\parse@@BANNER#1} \def\parse@@BANNER#1#2#3#4{#2} \edef\platexTMP{% \ifnum\ppatch@level=0 \everyjob{\noexpand\typeout{% \pfmtname\space<\pfmtversion>\space (based on \parse@BANNER{\platexBANNER})}}% \else \everyjob{\noexpand\typeout{% \pfmtname\space<\pfmtversion>+\ppatch@level\space (based on \parse@BANNER{\platexBANNER})}}% \fi } \expandafter \endgroup \platexTMP % \end{macrocode} % % p\LaTeX{}やup\LaTeX{}は、独自のハイフネーション・パターンを定義していません。 % 代わりに、\LaTeX{}が読み込んでいるBabelパッケージのものが適用されます。 % 起動時の文字列にも\file{hyphen.cfg}のバージョンを反映します。 % \changes{v1.0w-u00}{2016/05/12}{起動時の文字列に入れるBabelのバージョンを % 元の\LaTeX{}のバナーから取得するコードを\file{uplatex.ini}から取り入れた} % \begin{macrocode} \begingroup \def\parse@BANNER#1{\expandafter\parse@@BANNER#1} \def\parse@@BANNER#1#2#3#4{#4} \edef\platexTMP{% \the\everyjob\noexpand\typeout{\parse@BANNER{\platexBANNER}}% } \everyjob=\expandafter{\platexTMP}% \edef\platexTMP{% \noexpand\let\noexpand\platexBANNER=\noexpand\@undefined \noexpand\everyjob={\the\everyjob}% } \expandafter \endgroup \platexTMP % % \end{macrocode} % % ^^A 起動時に\file{uplatex.cfg}がある場合、それを読み込むようにする % ^^A コードは、\file{uplcore.ltx}から\file{uplatex.ltx}へ移動しました。 % \changes{v1.0y-u01}{2016/06/29}{\file{uplatex.cfg}の読み込みを追加} % \changes{v1.0z-u01}{2016/08/26}{\file{uplatex.cfg}の読み込みを % \file{uplcore.ltx}から\file{uplatex.ltx}へ移動} % % \subsection{latexreleaseパッケージへの対応} % % 最後に、latexreleaseパッケージへの対応です。 % \begin{macro}{\plIncludeInRelease} % \changes{v1.0t}{2016/02/03}{\cs{plIncludeInRelease}と % \cs{plEndIncludeInRelease}を新設。} % \begin{macrocode} %<*plcore|platexrelease> \def\plIncludeInRelease#1{\kernel@ifnextchar[% {\@plIncludeInRelease{#1}} {\@plIncludeInRelease{#1}[#1]}} % \end{macrocode} % % \begin{macrocode} \def\@plIncludeInRelease#1[#2]{\@plIncludeInRele@se{#2}} % \end{macrocode} % % \begin{macrocode} \def\@plIncludeInRele@se#1#2#3{% \toks@{[#1] #3}% \expandafter\ifx\csname\string#2+\@currname+IIR\endcsname\relax \ifnum\expandafter\@parse@version#1//00\@nil >\expandafter\@parse@version\pfmtversion//00\@nil \GenericInfo{}{Skipping: \the\toks@}% \expandafter\expandafter\expandafter\@gobble@plIncludeInRelease \else \GenericInfo{}{Applying: \the\toks@}% \expandafter\let\csname\string#2+\@currname+IIR\endcsname\@empty \fi \else \GenericInfo{}{Already applied: \the\toks@}% \expandafter\@gobble@plIncludeInRelease \fi } % \end{macrocode} % % \begin{macrocode} \long\def\@gobble@plIncludeInRelease#1\plEndIncludeInRelease{} \let\plEndIncludeInRelease\relax % % \end{macrocode} % \end{macro} % % \LaTeXe{}が提供するlatexreleaseパッケージが読み込まれていて、 % かつp\LaTeXe{}が提供するplatexreleaseパッケージが読み込まれていない % 場合は、警告を出します。 % \changes{v1.0s}{2016/02/01}{latexrelease利用時に警告を出すようにした} % \begin{macrocode} %<*plfinal> \AtBeginDocument{% \@ifpackageloaded{latexrelease}{% \@ifpackageloaded{platexrelease}{}{% \@latex@warning@no@line{% Package latexrelease is loaded.\MessageBreak Some patches in pLaTeX2e core may be overwritten.\MessageBreak Consider using platexrelease.\MessageBreak See platex.pdf for detail}% }% }{}% } % % \end{macrocode} % % \Finale % \endinput