Comprehensive TeX Archive Network

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
Ver­sion 1.8
Li­cense The Project Public Li­cense
Main­tainer Hen­dri Adri­aens
Con­tained in TeX Live 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 Contact Author