AZ logo

Package extract:
Extract parts of a document and write to another document.

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 package option, 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.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX extract
TeX Live extract

You can also visit extract's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Package README
Package documentation
Documentation off CTAN -none known-
Maintainers
Hendri Adriaens
Version 1.8
License LaTeX Project Public License
Related packages -none recorded-
Keywords
macro programming
include file
Characterizations
primary:
Programming in TeX > Other

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.