Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

extract – Extract parts of a document and write to another document

The pack­age pro­vides the means to ex­tract spe­cific con­tent from a source doc­u­ment and write that to a tar­get doc­u­ment. One could, for in­stance, use this to ex­tract all ex­er­cises from lec­ture notes and gen­er­ate an ex­er­cises book on the fly.

The pack­age also pro­vides an en­vi­ron­ment which writes its body en­tirely to the tar­get file. Another en­vi­ron­ment will write to the tar­get file, but will also ex­e­cute the body. This al­lows to share code (for in­stance, a pream­ble) be­tween the source doc­u­ment and the tar­get file.

Fi­nally, the pack­age pro­vides an in­ter­face to con­di­tion­ally ex­tract con­tent. With a sin­gle pack­age op­tion, one can spec­ify ex­actly which com­mands (counted from the start of the doc­u­ment) should be ex­tracted and which not. This might be use­ful for ex­tract­ing spe­cific slides from a pre­sen­ta­tion and use them in a new file.

Sources/macros/latex/contrib/extract
Doc­u­men­ta­tion
Ver­sion1.8
Li­censeThe LaTeX Project Public Li­cense
Copy­right2004-2005 Hen­dri Adri­aens
Main­tainerHen­dri Adri­aens
Con­tained inTeXLive as ex­tract
MiKTeX as ex­tract
Topics ed­i­tor’s marks, high­lights, etc.

Down­load the con­tents of this pack­age in one zip archive (201.8k).

Guest Book Sitemap Contact 2014-04-18 22:45 CEST