texlive[52117] Master/texmf-dist: extract (18sep19)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 18 23:57:16 CEST 2019


Revision: 52117
          http://tug.org/svn/texlive?view=revision&revision=52117
Author:   karl
Date:     2019-09-18 23:57:16 +0200 (Wed, 18 Sep 2019)
Log Message:
-----------
extract (18sep19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/extract/README
    trunk/Master/texmf-dist/doc/latex/extract/extract.bib
    trunk/Master/texmf-dist/doc/latex/extract/extract.pdf
    trunk/Master/texmf-dist/doc/latex/extract/xtrex1.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex2.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex3.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex4.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex5.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex6.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrex7.tex
    trunk/Master/texmf-dist/doc/latex/extract/xtrpream.ble
    trunk/Master/texmf-dist/source/latex/extract/extract.dtx
    trunk/Master/texmf-dist/tex/latex/extract/extract.sty

Modified: trunk/Master/texmf-dist/doc/latex/extract/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/README	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/README	2019-09-18 21:57:16 UTC (rev 52117)
@@ -1,5 +1,5 @@
-extract v1.9
-------------
+extract v1.9a
+-------------
 
 This package can be used to (conditionally) extract specific
 commands and environments from a source file and write them to a

Modified: trunk/Master/texmf-dist/doc/latex/extract/extract.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/extract.bib	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/extract.bib	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `bib')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/extract.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex1.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex1.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex1')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex2.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex2.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex2')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex3.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex3.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex3.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex3')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex4.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex4.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex4.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex4')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex5.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex5.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex5.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex5')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex6.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex6.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex6.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex6')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrex7.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrex7.tex	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrex7.tex	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `xtrex7')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/doc/latex/extract/xtrpream.ble
===================================================================
--- trunk/Master/texmf-dist/doc/latex/extract/xtrpream.ble	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/doc/latex/extract/xtrpream.ble	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `preamble')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the

Modified: trunk/Master/texmf-dist/source/latex/extract/extract.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/extract/extract.dtx	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/source/latex/extract/extract.dtx	2019-09-18 21:57:16 UTC (rev 52117)
@@ -16,7 +16,7 @@
 %    extract.sty
 %
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the
@@ -109,7 +109,7 @@
 %
 % \GetFileInfo{extract.sty}
 %
-% \CheckSum{1011}
+% \CheckSum{1069}
 %
 % \DoNotIndex{\@backslashchar,\@bsphack,\@checkend,\@currenvir,
 % \@currenvline,\@doendpe,\@eha,\@ehc,\@empty,\@endpefalse,\@esphack,
@@ -920,7 +920,7 @@
 %<*extract>
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{extract}
-  [2019/09/17 v1.9 extract content from document (HA)]
+  [2019/09/18 v1.9a extract content from document (HA)]
 \RequirePackage{verbatim}
 \RequirePackage{xkeyval}
 \newwrite\XTR at out
@@ -1086,47 +1086,50 @@
 % \end{macro}
 % \begin{macro}{\begin}
 % \marg{environment}\\
-% \changes{v1.9}{2019/09/17}{Changed definition to robust version}
+% \changes{v1.9a}{2019/09/18}{Added definitions for robust versions of \cs{begin} and \cs{end}}
 % Modify the macro |\begin| to allow adding code to a level specific
 % hook which can be executed after |\endgroup| in |\end|. See for
-% more info on this macro the \LaTeX\ source~\cite{LaTeXbase}.
+% more info on this macro the \LaTeX\ source~\cite{LaTeXbase}. We first do this
+% for the new \LaTeX\ format, which defines robust versions of |\begin| and |\end|.
 %    \begin{macrocode}
-\@namedef{begin}#1{%
-  \@ifundefined{#1}%
-    {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
-    {\def\reserved at a{\def\@currenvir{#1}%
-     \edef\@currenvline{\on at line}%
-     \csname #1\endcsname}}%
-  \@ignorefalse
-  \begingroup\@endpefalse
+\@ifl at t@r\fmtversion{2019/10/01}%
+{% new format
+  \@namedef{begin }#1{%
+    \@ifundefined{#1}%
+      {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
+      {\def\reserved at a{\def\@currenvir{#1}%
+       \edef\@currenvline{\on at line}%
+       \csname #1\endcsname}}%
+    \@ignorefalse
+    \begingroup\@endpefalse
 %    \end{macrocode}
 % Advance depth level.
 %    \begin{macrocode}
-  \global\advance\@envdepth\@ne
+    \global\advance\@envdepth\@ne
 %    \end{macrocode}
 % Initialize the hook for this level.
 %    \begin{macrocode}
-  \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
-  \reserved at a}
+    \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
+    \reserved at a
+  }%
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\end}
 % \marg{environment}\\
-% \changes{v1.9}{2019/09/17}{Changed definition to robust version}
 % Modify |\end| to execute the code collected in the hook.
 %    \begin{macrocode}
-\@namedef{end}#1{%
-  \csname end#1\endcsname\@checkend{#1}%
-  \expandafter\endgroup\if at endpe\@doendpe\fi
+  \@namedef{end }#1{%
+    \csname end#1\endcsname\@checkend{#1}%
+    \expandafter\endgroup\if at endpe\@doendpe\fi
 %    \end{macrocode}
 % Copy current hook code to a temporary macro.
 %    \begin{macrocode}
-  \expandafter\let\expandafter\reserved at a
-    \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
+    \expandafter\let\expandafter\reserved at a
+      \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
 %    \end{macrocode}
 % Decrease the depth.
 %    \begin{macrocode}
-  \global\advance\@envdepth\m at ne
+    \global\advance\@envdepth\m at ne
 %    \end{macrocode}
 % Execute the hook of the current environment. This is done after
 % decreasing the depth as to avoid level mixing problems when the
@@ -1135,10 +1138,46 @@
 % defined since it is executed after the group and does not belong
 % anymore to the environment in which the hook was defined.
 %    \begin{macrocode}
-  \reserved at a\relax
-  \if at ignore\@ignorefalse\ignorespaces\fi}
+    \reserved at a\relax
+    \if at ignore\@ignorefalse\ignorespaces\fi
+  }%
 %    \end{macrocode}
 % \end{macro}
+% \begin{macro}{\begin}
+% \marg{environment}\\
+% This is the code for the old format of \LaTeX.
+%    \begin{macrocode}
+}{% old format
+  \def\begin#1{%
+    \@ifundefined{#1}%
+      {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
+      {\def\reserved at a{\def\@currenvir{#1}%
+       \edef\@currenvline{\on at line}%
+       \csname #1\endcsname}}%
+    \@ignorefalse
+    \begingroup\@endpefalse
+    \global\advance\@envdepth\@ne
+    \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
+    \reserved at a
+  }%
+%    \end{macrocode}
+% \end{macro}
+% \begin{macro}{\end}
+% \marg{environment}
+% This is the code for the old format of \LaTeX.
+%    \begin{macrocode}
+  \def\end#1{%
+    \csname end#1\endcsname\@checkend{#1}%
+    \expandafter\endgroup\if at endpe\@doendpe\fi
+    \expandafter\let\expandafter\reserved at a
+      \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
+    \global\advance\@envdepth\m at ne
+    \reserved at a\relax
+    \if at ignore\@ignorefalse\ignorespaces\fi
+  }%
+}
+%    \end{macrocode}
+% \end{macro}
 % \begin{macro}{\AfterEndEnv}
 % Adds code to the macros |\@afterendenvhook at i|, |ii|, etc. which will
 % be executed after the group of the current environment.

Modified: trunk/Master/texmf-dist/tex/latex/extract/extract.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/extract/extract.sty	2019-09-18 21:56:41 UTC (rev 52116)
+++ trunk/Master/texmf-dist/tex/latex/extract/extract.sty	2019-09-18 21:57:16 UTC (rev 52117)
@@ -7,7 +7,7 @@
 %% extract.dtx  (with options: `extract')
 %% 
 %% ---------------------------------------
-%% Copyright (C) 2004-2005 Hendri Adriaens
+%% Copyright (C) 2004-2019 Hendri Adriaens
 %% ---------------------------------------
 %%
 %% This work may be distributed and/or modified under the
@@ -32,7 +32,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{extract}
-  [2019/09/17 v1.9 extract content from document (HA)]
+  [2019/09/18 v1.9a extract content from document (HA)]
 \RequirePackage{verbatim}
 \RequirePackage{xkeyval}
 \newwrite\XTR at out
@@ -97,25 +97,52 @@
   \fi
 \fi
 \newcount\@envdepth\@envdepth\z@
-\@namedef{begin}#1{%
-  \@ifundefined{#1}%
-    {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
-    {\def\reserved at a{\def\@currenvir{#1}%
-     \edef\@currenvline{\on at line}%
-     \csname #1\endcsname}}%
-  \@ignorefalse
-  \begingroup\@endpefalse
-  \global\advance\@envdepth\@ne
-  \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
-  \reserved at a}
-\@namedef{end}#1{%
-  \csname end#1\endcsname\@checkend{#1}%
-  \expandafter\endgroup\if at endpe\@doendpe\fi
-  \expandafter\let\expandafter\reserved at a
-    \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
-  \global\advance\@envdepth\m at ne
-  \reserved at a\relax
-  \if at ignore\@ignorefalse\ignorespaces\fi}
+\@ifl at t@r\fmtversion{2019/10/01}%
+{% new format
+  \@namedef{begin }#1{%
+    \@ifundefined{#1}%
+      {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
+      {\def\reserved at a{\def\@currenvir{#1}%
+       \edef\@currenvline{\on at line}%
+       \csname #1\endcsname}}%
+    \@ignorefalse
+    \begingroup\@endpefalse
+    \global\advance\@envdepth\@ne
+    \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
+    \reserved at a
+  }%
+  \@namedef{end }#1{%
+    \csname end#1\endcsname\@checkend{#1}%
+    \expandafter\endgroup\if at endpe\@doendpe\fi
+    \expandafter\let\expandafter\reserved at a
+      \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
+    \global\advance\@envdepth\m at ne
+    \reserved at a\relax
+    \if at ignore\@ignorefalse\ignorespaces\fi
+  }%
+}{% old format
+  \def\begin#1{%
+    \@ifundefined{#1}%
+      {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
+      {\def\reserved at a{\def\@currenvir{#1}%
+       \edef\@currenvline{\on at line}%
+       \csname #1\endcsname}}%
+    \@ignorefalse
+    \begingroup\@endpefalse
+    \global\advance\@envdepth\@ne
+    \global\@namedef{@afterendenvhook@\romannumeral\@envdepth}{}%
+    \reserved at a
+  }%
+  \def\end#1{%
+    \csname end#1\endcsname\@checkend{#1}%
+    \expandafter\endgroup\if at endpe\@doendpe\fi
+    \expandafter\let\expandafter\reserved at a
+      \csname @afterendenvhook@\romannumeral\@envdepth\endcsname
+    \global\advance\@envdepth\m at ne
+    \reserved at a\relax
+    \if at ignore\@ignorefalse\ignorespaces\fi
+  }%
+}
 \def\AfterEndEnv{%
   \expandafter\g at addto@macro
     \csname @afterendenvhook@\romannumeral\@envdepth\endcsname



More information about the tex-live-commits mailing list