diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/base/latexrelease.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/base/latexrelease.sty | 268 |
1 files changed, 262 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/base/latexrelease.sty b/Master/texmf-dist/tex/latex/base/latexrelease.sty index 29cb5c7df6c..caab7ac2d39 100644 --- a/Master/texmf-dist/tex/latex/base/latexrelease.sty +++ b/Master/texmf-dist/tex/latex/base/latexrelease.sty @@ -35,6 +35,7 @@ %% ltplain.dtx (with options: `latexrelease') %% ltfssdcl.dtx (with options: `latexrelease') %% ltfssini.dtx (with options: `latexrelease') +%% fontdef.dtx (with options: `latexrelease') %% ltfntcmd.dtx (with options: `latexrelease') %% ltfssbas.dtx (with options: `latexrelease') %% ltfsstrc.dtx (with options: `latexrelease') @@ -283,7 +284,7 @@ } %%% From File: ltvers.dtx \edef\latexreleaseversion - {2018-04-01} + {2018-12-01} \newif\if@includeinrelease \@includeinreleasefalse \def\IncludeInRelease#1{% @@ -626,6 +627,29 @@ of this package available from CTAN} \EndIncludeInRelease %%% From File: lttab.dtx %%% From File: ltmath.dtx +\IncludeInRelease{2018/12/01}% + {\finph@nt}{Start LR-mode}% +\def\finph@nt{% + \setbox\tw@\null + \ifv@ \ht\tw@\ht\z@ \dp\tw@\dp\z@\fi + \ifh@ \wd\tw@\wd\z@\fi + \leavevmode@ifvmode\box\tw@} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\finph@nt}{Start LR-mode}% +\def\finph@nt{% + \setbox\tw@\null + \ifv@ \ht\tw@\ht\z@ \dp\tw@\dp\z@\fi + \ifh@ \wd\tw@\wd\z@\fi \box\tw@} +\EndIncludeInRelease +\IncludeInRelease{2018/12/01}% + {\finsm@sh}{Start LR-mode}% +\def\finsm@sh{\ht\z@\z@ \dp\z@\z@ \leavevmode@ifvmode\box\z@} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\finsm@sh}{Start LR-mode}% +\def\finsm@sh{\ht\z@\z@ \dp\z@\z@ \box\z@} +\EndIncludeInRelease \IncludeInRelease{2015/01/01}{\(}{Make \( robust}% \DeclareRobustCommand\({% \relax\ifmmode\@badmath\else$\fi}% @@ -780,6 +804,62 @@ of this package available from CTAN} \EndIncludeInRelease %%% From File: ltthm.dtx %%% From File: ltsect.dtx +\IncludeInRelease{2018/12/01}% + {\addcontentsline}{Mask line endings}% +\def\addcontentsline#1#2#3{% + \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}% + \protected@file@percent}} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\addcontentsline}{Mask line endings}% +\def\addcontentsline#1#2#3{% + \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}} +\EndIncludeInRelease +\IncludeInRelease{2018/12/01}% + {\@dottedtocline}{Prevent protrusion}% +\def\@dottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {#4}\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5% + \kern-\p@\kern\p@}% + \par}% + \fi} + +\DeclareRobustCommand\noprotrusion{\leavevmode\kern-\p@\kern\p@} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\@dottedtocline}{Prevent protrusion}% +\def\@dottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {#4}\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% + \par}% + \fi} + +\let\noprotrusion\@undefined +\EndIncludeInRelease %%% From File: ltfiles.dtx \IncludeInRelease{2017/04/15}% {\document}{Save language for hyphenation}% @@ -2164,7 +2244,7 @@ of this package available from CTAN} \reserved@a} \EndIncludeInRelease \IncludeInRelease{2017/01/01}% - {\@if@pti@ns}{Spaces in \ExecuteOptions}% + {\ExecuteOptions}{Spaces in \ExecuteOptions}% \def\ExecuteOptions#1{% \edef\@fortmp{\zap@space#1 \@empty}% \def\reserved@a##1\@nil{% @@ -2174,7 +2254,7 @@ of this package available from CTAN} \expandafter\reserved@a\CurrentOption\@nil} \EndIncludeInRelease \IncludeInRelease{0000/00/00}% - {\@if@pti@ns}{Spaces in \ExecuteOptions}% + {\ExecuteOptions}{Spaces in \ExecuteOptions}% \def\ExecuteOptions#1{% \def\reserved@a##1\@nil{% \@for\CurrentOption:=#1\do @@ -2238,8 +2318,26 @@ of this package available from CTAN} \reserved@a} \EndIncludeInRelease %%% From File: ltspace.dtx +\IncludeInRelease{2018/10/10}% + {\@esphack}{hyphenation and nobreak after space hack}% +\def\@esphack{% + \relax + \ifhmode + \spacefactor\@savsf + \ifdim\@savsk>\z@ + \ifdim\lastskip=\z@ + \nobreak \hskip\z@skip + \fi + \ignorespaces + \fi + \else + \ifvmode + \if@nobreak\nobreak\else\if@noskipsec\nobreak\fi\fi + \fi + \fi}% +\EndIncludeInRelease \IncludeInRelease{2015/10/01}% - {\@esphack}{hyphenation after space hack}% + {\@esphack}{hyphenation and nobreak after space hack}% \def\@esphack{% \relax \ifhmode @@ -2253,7 +2351,7 @@ of this package available from CTAN} \fi}% \EndIncludeInRelease \IncludeInRelease{2015/01/01}% - {\@esphack}{hyphenation after space hack}% + {\@esphack}{hyphenation and nobreak after space hack}% \def\@esphack{% \relax \ifhmode @@ -2265,7 +2363,7 @@ of this package available from CTAN} \fi}% \EndIncludeInRelease \IncludeInRelease{0000/00/00}% - {\@esphack}{hyphenation after space hack}% + {\@esphack}{hyphenation and nobreak after space hack}% \def\@esphack{% \relax \ifhmode @@ -2364,6 +2462,20 @@ of this package available from CTAN} {\@}{Space after \@}% \def\@{\spacefactor\@m}% \EndIncludeInRelease +\IncludeInRelease{2018/12/01}% + {\thinspace}{Start LR-mode}% +\def\thinspace{\leavevmode@ifvmode\kern .16667em } +\def\negthinspace{\leavevmode@ifvmode\kern-.16667em } +\def\enspace{\leavevmode@ifvmode\kern.5em } +\protected\def\leavevmode@ifvmode{\ifvmode\expandafter\indent\fi} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\thinspace}{Start LR-mode}% +\def\thinspace{\kern .16667em } +\def\negthinspace{\kern-.16667em } +\def\enspace{\kern.5em } +\let\leavevmode@ifvmode\@undefined +\EndIncludeInRelease %%% From File: ltlogos.dtx %%% From File: ltplain.dtx \IncludeInRelease{2015/01/01}% @@ -2809,6 +2921,53 @@ of this package available from CTAN} \upshape \else \itshape \fi}% \let\eminnershape\@undefined \EndIncludeInRelease +%%% From File: fontdef.dtx +\IncludeInRelease{2017/01/01}% + {\encodingdefault}{TU encoding default}% +\ifx\Umathchar\@undefined +\renewcommand\encodingdefault{OT1} +\fontencoding{\encodingdefault} +\renewcommand\rmdefault{cmr} +\fontfamily{\rmdefault} +\renewcommand\sfdefault{cmss} +\renewcommand\ttdefault{cmtt} +\else +\renewcommand\encodingdefault{TU} +%done in everyjob\fontencoding{\encodingdefault} +\renewcommand\rmdefault{lmr} +\fontfamily{\rmdefault} +\renewcommand\sfdefault{lmss} +\renewcommand\ttdefault{lmtt} +\fi +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\encodingdefault}{TU encoding default}% +\fontencoding{OT1} +\renewcommand\encodingdefault{OT1} +\fontencoding{\encodingdefault} +\renewcommand\rmdefault{cmr} +\fontfamily{\rmdefault} +\renewcommand\sfdefault{cmss} +\renewcommand\ttdefault{cmtt} +\EndIncludeInRelease +\IncludeInRelease{2018/12/01}% + {\Big}{Start LR-mode}% +\def\big#1{\leavevmode@ifvmode + {\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}} +\def\Big#1{\leavevmode@ifvmode + {\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}} +\def\bigg#1{\leavevmode@ifvmode + {\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}} +\def\Bigg#1{\leavevmode@ifvmode + {\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\Big}{Start LR-mode}% +\def\big#1{{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}} +\def\Big#1{{\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}} +\def\bigg#1{{\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}} +\def\Bigg#1{{\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}} +\EndIncludeInRelease %%% From File: ltfntcmd.dtx %% %%% From File: ltfssbas.dtx @@ -3140,6 +3299,40 @@ of this package available from CTAN} %%% From File: ltpageno.dtx %%% From File: ltxref.dtx %%% From File: ltmiscen.dtx +\IncludeInRelease{2018/12/01}% + {\protected@file@percent}{Mask line endings}% +\protected\def\protected@file@percent{} + +\begingroup +\catcode`\%=12 +\catcode`\^^A=9 +\long\gdef\add@percent@to@temptokena + #1\protected@file@percent#2\add@percent@to@temptokena + {\ifx!#2!\@temptokena\expandafter{#1}\else + \@temptokena\expandafter{#1%^^A + }\fi} +\endgroup +\long\def\@writefile#1#2{% + \@ifundefined{tf@#1}\relax + {% + \add@percent@to@temptokena + \@empty#2\protected@file@percent + \add@percent@to@temptokena + \immediate\write\csname tf@#1\endcsname{\the\@temptokena}% + }% +} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\protected@file@percent}{Mask line endings}% +\let\protected@file@percent\@undefined +\let\add@percent@to@temptokena\@undefined +\long\def\@writefile#1#2{% + \@ifundefined{tf@#1}\relax + {\@temptokena{#2}% + \immediate\write\csname tf@#1\endcsname{\the\@temptokena}% + }% +} +\EndIncludeInRelease \IncludeInRelease{2017-04-15}{\@verbatim}% {Disable hyphenation in verbatim}% \def\@verbatim{\trivlist \item\relax @@ -3182,6 +3375,61 @@ of this package available from CTAN} \everypar \expandafter{\the\everypar \unpenalty}% } \EndIncludeInRelease +\IncludeInRelease{2018/12/01}% + {\verbvisiblespace}{Setup visible space for verb}% +\DeclareRobustCommand\asciispace{\char 32 } +\ifx\Umathcode\@undefined + \let\verbvisiblespace\asciispace % Pdftex version +\else + \DeclareRobustCommand\verbvisiblespace + {\leavevmode{\usefont{OT1}{cmtt}{m}{n}\asciispace}} % xetex/luatex version +\fi + +\def\@setupverbvisiblespace{% + \ifx\verbvisiblespace\asciispace + \let\@xobeysp\asciispace + \else + \setbox\z@\hbox{x}% + \setbox\@verbvisiblespacebox\hbox to\wd\z@{\hss\verbvisiblespace\hss}% + \def\@xobeysp{\leavevmode\copy\@verbvisiblespacebox}% + \fi +} + +\newbox\@verbvisiblespacebox +\def\@sverb#1{% + \catcode`#1\active + \lccode`\~`#1% + \gdef\verb@balance@group{\verb@egroup + \@latex@error{\noexpand\verb illegal in command argument}\@ehc}% + \aftergroup\verb@balance@group + \lowercase{\let~\verb@egroup}% + \ifnum\catcode`\ =\active + \else \@setupverbvisiblespace \@vobeyspaces \fi +} +\@namedef{verbatim*}{\@verbatim + \@setupverbvisiblespace + \frenchspacing\@vobeyspaces\@sxverbatim} +\expandafter\let\csname endverbatim*\endcsname =\endverbatim +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\verbvisiblespace}{Setup visible space for verb}% + +\@namedef{verbatim*}{\@verbatim\@sxverbatim} + +\let\asciispace \@undefined +\let\verbvisiblespace \@undefined +\let\@setupverbvisiblespace\@undefined +\let\@verbvisiblespacebox \@undefined + +\def\@sverb#1{% + \catcode`#1\active + \lccode`\~`#1% + \gdef\verb@balance@group{\verb@egroup + \@latex@error{\noexpand\verb illegal in command argument}\@ehc}% + \aftergroup\verb@balance@group + \lowercase{\let~\verb@egroup}}% + +\EndIncludeInRelease \IncludeInRelease{2017-04-15}{\verb}% {Disable hyphenation in verb}% \def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi @@ -3524,6 +3772,14 @@ of this package available from CTAN} \global\XeTeXinterchartoks 3 3 = {\nobreak\xtxHanGlue} \fi \EndIncludeInRelease +\IncludeInRelease{2017/04/15}% + {\document@default@language}{Save language for hyphenation}% +\let\document@default@language\m@ne +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\document@default@language}{Save language for hyphenation}% +\let\document@default@language\@undefined +\EndIncludeInRelease \IncludeInRelease{2018/04/01}% {\UTFviii@invalid}{UTF-8 default}% \ifnum0% |