New package on CTAN: extract

CTAN Announcements ctan-ann at
Sun Dec 19 23:27:02 CET 2004

On Sun, 19 Dec 2004, Hendri Adriaens submitted a new package called


License: LPPL
Location on CTAN: macros/latex/contrib/extract

Package information:
The package provides the means to extract specific
content from a source document and write that to
a target document. One could, for instance, use this
to extract all exercises from lecture notes and
generate an exercises book on the fly.

The package also provides an environment which writes
its body entirely to the target file. Another environment
will write to the target file, but will also execute the
body. This allows to share code (for instance, a preamble)
between the source document and the target file.

Finally, the package provides an interface to conditionally
extract content. With a single option in the \usepackage
command, one can specify exactly which commands (counted
from the start of the document) should be extracted and
which not. This might be useful for extracting specific
slides from a presentation and use them in a new file.

Thanks for the upload.

For the CTAN Team
  Rainer Schöpf

More information about the Ctan-ann mailing list