diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx | 84 |
1 files changed, 74 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx b/Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx index 6f8076e1e62..e92e8e8d680 100644 --- a/Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/etexcmds.dtx @@ -72,7 +72,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: etexcmds 2007/09/09 v1.1 Prefix for e-TeX command names (HO)} +\Msg{* Package: etexcmds 2007/12/12 v1.2 Prefix for e-TeX command names (HO)} \Msg{************************************************************************} \keepsilent @@ -145,7 +145,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{etexcmds.drv}% - [2007/09/09 v1.1 Prefix for e-TeX command names (HO)]% + [2007/12/12 v1.2 Prefix for e-TeX command names (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2007/11/11] \begin{document} @@ -154,7 +154,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{405} +% \CheckSum{479} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -175,7 +175,7 @@ and the derived files % \GetFileInfo{etexcmds.drv} % % \title{The \xpackage{etexcmds} package} -% \date{2007/09/09 v1.1} +% \date{2007/12/12 v1.2} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -191,6 +191,8 @@ and the derived files % % \section{Documentation} % +% \subsection{\cs{unexpanded}} +% % \begin{declcs}{etex@unexpanded} % \end{declcs} % New primitive commands are introduced in \eTeX. Unhappily @@ -210,6 +212,13 @@ and the derived files % primitive \cs{unexpanded} has been found and \cs{etex@unexpanded} % is available. % +% \subsection{\cs{expanded}} +% +% Probably \cs{expanded} will be added in \pdfTeX\ 1.50.4 and +% \LuaTeX. Again Con\TeX t defines this as macro. +% Therefore version 1.2 of this packages also provides +% \cs{etex@expanded} and \cs{ifetex@unexpanded}. +% % \StopEventually{ % } % @@ -283,7 +292,7 @@ and the derived files \fi \expandafter\x\csname ver@etexcmds.sty\endcsname \ProvidesPackage{etexcmds}% - [2007/09/09 v1.1 Prefix for e-TeX command names (HO)] + [2007/12/12 v1.2 Prefix for e-TeX command names (HO)] % \end{macrocode} % % \subsection{Catcodes} @@ -317,6 +326,11 @@ and the derived files \TMP@EnsureCode{46}{12}% . \TMP@EnsureCode{47}{12}% / \TMP@EnsureCode{61}{12}% = +\edef\etexcmds@AtEnd{% + \etexcmds@AtEnd + \escapechar\the\escapechar\relax +} +\escapechar=92 % backslash % \end{macrocode} % % \subsection{Load package \xpackage{infwarerr}} @@ -341,7 +355,6 @@ and the derived files % \begin{macro}{\etex@unexpanded} % \begin{macrocode} \begingroup -\escapechar=92 % backslash \edef\x{\string\unexpanded}% \edef\y{\meaning\unexpanded}% \ifx\x\y @@ -375,6 +388,50 @@ and the derived files % \end{macrocode} % \end{macro} % +% \subsection{\cs{expanded}} +% +% \begin{macro}{\ifetex@expanded} +% \begin{macrocode} +\newif\ifetex@expanded +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\etex@expanded} +% \begin{macrocode} +\begingroup +\edef\x{\string\expanded}% +\edef\y{\meaning\expanded}% +\ifx\x\y + \endgroup + \let\etex@expanded\expanded + \etex@expandedtrue +\else + \edef\y{\meaning\normalexpanded}% + \ifx\x\y + \endgroup + \let\etex@expanded\normalexpanded + \etex@expandedtrue + \else + \edef\y{\meaning\@@expanded}% + \ifx\y + \endgroup + \let\etex@expanded\@@expanded + \etex@expandedtrue + \else + \endgroup + \@PackageInfoNoLine{etexcmds}{% + Could not find \string\expanded.\MessageBreak + That can mean that you are not using pdfTeX 1.50 or\MessageBreak + that some package has redefined \string\expanded.\MessageBreak + In the latter case, load this package earlier% + }% + \etex@expandedfalse + \fi + \fi +\fi +% \end{macrocode} +% \end{macro} +% % \begin{macrocode} \etexcmds@AtEnd %</package> @@ -440,6 +497,9 @@ and the derived files \advance\count@ 1 % \repeat } +\expandafter\ifx\csname LoadCommand\endcsname\relax + \def\LoadCommand{\input etexcmds.sty\relax}% +\fi \def\Test{% \RangeCatcodeInvalid{0}{47}% \RangeCatcodeInvalid{58}{64}% @@ -455,7 +515,7 @@ and the derived files \catcode`\%=14 % \catcode`\ =10 % \catcode13=5 % - \input etexcmds.sty\relax + \LoadCommand \RestoreCatcodes } \Test @@ -486,7 +546,7 @@ and the derived files % \begin{macrocode} %<*test3> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{etexcmds-test3.tex}[2007/09/09 v1.1 Test file for LaTeX] +\ProvidesFile{etexcmds-test3.tex}[2007/12/12 v1.2 Test file for LaTeX] \RequirePackage{etexcmds} \makeatletter \edef\x{\string\unexpanded} @@ -502,7 +562,7 @@ and the derived files % \begin{macrocode} %<*test4> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{etexcmds-test4.tex}[2007/09/09 v1.1 Test file for LaTeX] +\ProvidesFile{etexcmds-test4.tex}[2007/12/12 v1.2 Test file for LaTeX] \documentclass{article} \usepackage{m-pictex} \usepackage{m-ch-de} @@ -710,7 +770,7 @@ and the derived files % \end{quote} % % \begin{History} -% \begin{Version}{2007/04/26 v1.0} +% \begin{Version}{2007/05/06 v1.0} % \item % First version. % \end{Version} @@ -720,6 +780,10 @@ and the derived files % \item % Catcode section rewritten. % \end{Version} +% \begin{Version}{2007/12/12 v1.2} +% \item +% \cs{etex@expanded} added. +% \end{Version} % \end{History} % % \PrintIndex |