diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/base/latexrelease.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/base/latexrelease.sty | 188 |
1 files changed, 177 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/base/latexrelease.sty b/Master/texmf-dist/tex/latex/base/latexrelease.sty index b9d95970672..ea9bdddf6c6 100644 --- a/Master/texmf-dist/tex/latex/base/latexrelease.sty +++ b/Master/texmf-dist/tex/latex/base/latexrelease.sty @@ -9,11 +9,13 @@ %% ltdefns.dtx (with options: `latexrelease') %% ltboxes.dtx (with options: `latexrelease') %% ltmath.dtx (with options: `latexrelease') +%% ltcounts.dtx (with options: `latexrelease') %% ltlength.dtx (with options: `latexrelease') %% ltfloat.dtx (with options: `latexrelease') %% ltoutput.dtx (with options: `latexrelease') %% ltspace.dtx (with options: `latexrelease') %% ltplain.dtx (with options: `latexrelease') +%% ltfssdcl.dtx (with options: `latexrelease') %% ltfssini.dtx (with options: `latexrelease') %% ltfssbas.dtx (with options: `latexrelease') %% ltfsscmp.dtx (with options: `latexrelease') @@ -80,7 +82,7 @@ \long\def\@gobble@IncludeInRelease#1\EndIncludeInRelease{} \let\EndIncludeInRelease\relax \ProvidesPackage{latexrelease} - [2015/05/09 v1.0d LaTeX release emulation and tests] + [2015/06/22 v1.0f LaTeX release emulation and tests] \NeedsTeXFormat{LaTeX2e}[1996/06/01] \DeclareOption*{% \def\@IncludeInRelease#1[#2]{\@IncludeInRele@se{#1}}% @@ -298,6 +300,52 @@ of this package available from CTAN} \ignorespaces }% \EndIncludeInRelease +%%% From File: ltcounts.dtx +\IncludeInRelease{2015/01/01}{\@stpelt}{Reset nested counters}% +\def\@stpelt#1{\global\csname c@#1\endcsname \m@ne\stepcounter{#1}}% +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}{\@stpelt}{Reset nested counters}%% +\def\@stpelt#1{\global\csname c@#1\endcsname \z@}% +\EndIncludeInRelease +\IncludeInRelease{2015/01/01}{\@fnsymbol}{Use \TexOrMath}% +\def\@fnsymbol#1{% + \ifcase#1\or \TextOrMath\textasteriskcentered *\or + \TextOrMath \textdagger \dagger\or + \TextOrMath \textdaggerdbl \ddagger \or + \TextOrMath \textsection \mathsection\or + \TextOrMath \textparagraph \mathparagraph\or + \TextOrMath \textbardbl \|\or + \TextOrMath {\textasteriskcentered\textasteriskcentered}{**}\or + \TextOrMath {\textdagger\textdagger}{\dagger\dagger}\or + \TextOrMath {\textdaggerdbl\textdaggerdbl}{\ddagger\ddagger}\else + \@ctrerr \fi +}% +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}{\@fnsymbol}{Use \TexOrMath}% +\def\@fnsymbol#1{\ensuremath{% + \ifcase#1\or *\or \dagger\or \ddagger\or \mathsection\or + \mathparagraph\or \|\or **\or \dagger\dagger + \or \ddagger\ddagger \else\@ctrerr\fi}}% +\EndIncludeInRelease +\IncludeInRelease{2015/01/01}{\TextOrMath}{\TextOrMath}% +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname eTeXversion\endcsname\relax +\DeclareRobustCommand\TextOrMath{% + \ifmmode \expandafter\@secondoftwo + \else \expandafter\@firstoftwo \fi} +\protected@edef\TextOrMath#1#2{\TextOrMath{#1}{#2}} +\else +\protected\expandafter\def\csname TextOrMath\space\endcsname{% + \ifmmode \expandafter\@secondoftwo + \else \expandafter\@firstoftwo \fi} +\edef\TextOrMath#1#2{% + \expandafter\noexpand\csname TextOrMath\space\endcsname + {#1}{#2}} +\fi +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}{\TextOrMath}{\TextOrMath}% +\let\TextOrMath\@undefined +\EndIncludeInRelease %%% From File: ltlength.dtx \IncludeInRelease{2015/01/01}% {\setlength}{Using \setlength with \dimen0}% @@ -1192,7 +1240,7 @@ of this package available from CTAN} \def\newdimen {\e@alloc\dimen \dimendef {\count11}\insc@unt\float@count} \def\newskip {\e@alloc\skip \skipdef {\count12}\insc@unt\float@count} \def\newmuskip - {\e@alloc\muskip\muskipdef{\count13}\e@alloc@top\e@alloc@top} + {\e@alloc\muskip\muskipdef{\count13}\m@ne\e@alloc@top} \def\newbox {\e@alloc\box {\ifnum\allocationnumber<\@cclvi \expandafter\chardef @@ -1200,12 +1248,12 @@ of this package available from CTAN} \expandafter\e@alloc@chardef \fi} {\count14}\insc@unt\float@count} -\def\newtoks {\e@alloc\toks \toksdef{\count15}\e@alloc@top\e@alloc@top} -\def\newread {\e@alloc\read \chardef{\count16}\sixt@@n\sixt@@n} -\def\newwrite {\e@alloc\write \chardef{\count17}\sixt@@n\sixt@@n} +\def\newtoks {\e@alloc\toks \toksdef{\count15}\m@ne\e@alloc@top} +\def\newread {\e@alloc\read \chardef{\count16}\m@ne\sixt@@n} +\def\newwrite {\e@alloc\write \chardef{\count17}\m@ne\sixt@@n} \def\new@mathgroup - {\e@alloc\mathgroup\chardef{\count18}\e@mathgroup@top\e@mathgroup@top} -\def\newlanguage {\e@alloc\language \chardef{\count19}\@cclvi\@cclvi} + {\e@alloc\mathgroup\chardef{\count18}\m@ne\e@mathgroup@top} +\def\newlanguage {\e@alloc\language \chardef{\count19}\m@ne\@cclvi} \let\newfam\new@mathgroup \EndIncludeInRelease \IncludeInRelease{0000/00/00}% @@ -1215,6 +1263,7 @@ of this package available from CTAN} \def\newskip{\alloc@2\skip\skipdef\insc@unt} \def\newmuskip{\alloc@3\muskip\muskipdef\@cclvi} \def\newbox{\alloc@4\box\chardef\insc@unt} +\def\newtoks{\alloc@5\toks\toksdef\@cclvi} \def\newread{\alloc@6\read\chardef\sixt@@n} \def\newwrite{\alloc@7\write\chardef\sixt@@n} \def\new@mathgroup{\alloc@8\fam\chardef\sixt@@n} @@ -1256,7 +1305,7 @@ of this package available from CTAN} \IncludeInRelease{2015/01/01}{\e@alloc}{Extended Allocation}% \def\e@alloc#1#2#3#4#5#6{% \global\advance#3\@ne - \e@ch@ck{#3}#4#5#1% + \e@ch@ck{#3}{#4}{#5}#1% \allocationnumber#3\relax \global#2#6\allocationnumber \wlog{\string#6=\string#1\the\allocationnumber}}% @@ -1404,6 +1453,123 @@ of this package available from CTAN} \let\tracingnone\@undefined \let\hideoutput\@undefined \EndIncludeInRelease +%%% From File: ltfssdcl.dtx +%% Copyright (C) 1989-1998 Frank Mittelbach and Rainer Sch\"opf, +%% all rights reserved. +\IncludeInRelease{2015/01/01} + {\select@group}{\select@group}% +\def\select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\e@mathgroup@top + \begingroup + \escapechar\m@ne + \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \init@restore@version + \xdef#1{\noexpand\use@mathgroup\noexpand#2% + {\number\csname c@mv@\math@version\endcsname}}% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used in + version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00} + {\select@group}{\select@group}% +\def\select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\sixt@@n + \begingroup + \escapechar\m@ne + \getanddefine@fonts + {\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \init@restore@version + \xdef#1{\noexpand\use@mathgroup\noexpand#2% + {\number\csname c@mv@\math@version\endcsname}}% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used in + version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\EndIncludeInRelease +\IncludeInRelease{2015/01/01} + {\document@select@group}{\document@select@group}% +\def\document@select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\e@mathgroup@top + \begingroup + \escapechar\m@ne + \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \expandafter\extract@alph@from@version + \csname mv@\math@version\expandafter\endcsname + \expandafter{\number\csname + c@mv@\math@version\endcsname}% + #1% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used + in version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00} + {\document@select@group}{\document@select@group}% +\def\document@select@group#1#2#3#4{% + \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi + {% + \ifmmode + \ifnum\csname c@mv@\math@version\endcsname<\sixt@@n + \begingroup + \escapechar\m@ne + \getanddefine@fonts + {\csname c@mv@\math@version\endcsname}#3% + \globaldefs\@ne \math@fonts + \endgroup + \expandafter\extract@alph@from@version + \csname mv@\math@version\expandafter\endcsname + \expandafter{\number\csname + c@mv@\math@version\endcsname}% + #1% + \global\advance\csname c@mv@\math@version\endcsname\@ne + \else + \let#1\relax + \@latex@error{Too many math alphabets used + in version \math@version}% + \@eha + \fi + \else \expandafter\non@alpherr\fi + #1{#4}% + }% +} +\EndIncludeInRelease %%% From File: ltfssini.dtx %% Copyright (C) 1989-2001 Frank Mittelbach and Rainer Sch\"opf, %% all rights reserved. @@ -1546,7 +1712,7 @@ of this package available from CTAN} \let\define@mathgroup\@undefined \let\addtoversion\@undefined \EndIncludeInRelease -\IncludeInRelease{2014/05/01}{\new@fontshape}% +\IncludeInRelease{0000/00/00}{\new@fontshape}% {NFSS version1 commands}% \gdef\new@fontshape#1#2#3#4{% \warn@rel@i\new@fontshape\DeclareFontShape @@ -1673,7 +1839,7 @@ of this package available from CTAN} {\newmarks}{Extended Allocation}% \ifx\marks\@undefined\else \def\newmarks{% - \e@alloc\marks \e@alloc@chardef{\count256}\e@alloc@top\e@alloc@top} + \e@alloc\marks \e@alloc@chardef{\count256}\m@ne\e@alloc@top} \fi \EndIncludeInRelease \IncludeInRelease{0000/00/00}% @@ -1687,7 +1853,7 @@ of this package available from CTAN} \countdef\xe@alloc@intercharclass=257 \xe@alloc@intercharclass=\thr@@ \def\newXeTeXintercharclass{% - \e@alloc\XeTeXcharclass\chardef\xe@alloc@intercharclass\@cclv\@cclv} + \e@alloc\XeTeXcharclass\chardef\xe@alloc@intercharclass\m@ne\@cclv} \fi \EndIncludeInRelease \IncludeInRelease{0000/00/00}% |