diff options
Diffstat (limited to 'macros/latex-dev/base/ltfinal.dtx')
-rw-r--r-- | macros/latex-dev/base/ltfinal.dtx | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/macros/latex-dev/base/ltfinal.dtx b/macros/latex-dev/base/ltfinal.dtx index ee45ea5588..d6fa6e8a7b 100644 --- a/macros/latex-dev/base/ltfinal.dtx +++ b/macros/latex-dev/base/ltfinal.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % % Copyright (C) 1993-2021 -% The LaTeX3 Project and any individual authors listed elsewhere +% The LaTeX Project and any individual authors listed elsewhere % in this file. % % This file is part of the LaTeX base system. @@ -33,7 +33,7 @@ %<*driver> % \fi \ProvidesFile{ltfinal.dtx} - [2021/01/06 v2.2l LaTeX Kernel (Final Settings)] + [2021/02/25 v2.2m LaTeX Kernel (Final Settings)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltfinal.dtx} @@ -525,12 +525,13 @@ %</2ekernel> %<*2ekernel|latexrelease> %<latexrelease>\IncludeInRelease{2017/04/15}% -%<latexrelease> {\document@default@language}{Save language for hyphenation}% +%<latexrelease> {\document@default@language}{Save language for hyphenation}% \let\document@default@language\m@ne %</2ekernel|latexrelease> %<latexrelease>\EndIncludeInRelease %<latexrelease>\IncludeInRelease{0000/00/00}% -%<latexrelease> {\document@default@language}{Save language for hyphenation}% +%<latexrelease> {\document@default@language}{Save language for hyphenation}% +% %<latexrelease>\let\document@default@language\@undefined %<latexrelease>\EndIncludeInRelease %<*2ekernel> @@ -565,6 +566,52 @@ \fi % \end{macrocode} % +% For pdf\TeX\ preload and enable automatic glyph to Unicode mapping +% for more reliable copy and paste support. +% \changes{v2.2l}{2021/01/21}{Load glyphtounicode.tex for pdf\TeX} +% \changes{v2.2m}{2021/02/25}{Improve speed of ToUnicode everyjob loading code} +% +% \begin{macrocode} +%</2ekernel> +%<*2ekernel|latexrelease> +%<latexrelease>\IncludeInRelease{2021/05/01}% +%<latexrelease> {\pdfgentounicode}{Preload glyphtounicode}% +\ifx \pdfgentounicode \@undefined \else +%<*2ekernel> + \ifnum 0=0% + \ifdefined\pdftexversion +% \pdftexversion<140 does not have \pdfgentounicode, so we only check higher values + \ifnum \pdftexversion=140 \ifnum\pdftexrevision<22 1\fi\fi + \fi + \relax +%</2ekernel> + \input glyphtounicode +%<*2ekernel> + \else + \begingroup + \everyeof{\noexpand}\endlinechar-1 + \edef\x{\endgroup + \everyjob{\the\everyjob\@@input glyphtounicode }% + }\x + \fi +%</2ekernel> + \pdfgentounicode=1 +\fi +%</2ekernel|latexrelease> +%<latexrelease>\EndIncludeInRelease +% \end{macrocode} +% When rolling back we can't unload the glyphtounicode mappings, but we +% can reset |\pdfgentounicode| to ensure that they aren't used. +% \begin{macrocode} +%<latexrelease>\IncludeInRelease{0000/00/00}% +%<latexrelease> {\pdfgentounicode}{Preload glyphtounicode}% +%<latexrelease>\ifx \pdfgentounicode \@undefined \else +%<latexrelease> \pdfgentounicode=0 +%<latexrelease>\fi +%<latexrelease>\EndIncludeInRelease +%<*2ekernel> +% \end{macrocode} +% % \subsection{Input encoding} % % \changes{v2.1a}{2018/03/25}{default to UTF-8} @@ -1147,6 +1194,7 @@ % {Load first aid file if existing} % \begin{macrocode} \@input{latex2e-first-aid-for-external-files.ltx} +\@input{ltpara.ltx} % \end{macrocode} % % |