CTAN 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.

Li­censesThe Project Public Li­cense
Copy­right2004–2005 Hen­dri Adri­aens
Main­tainerHen­dri Adri­aens
Con­tained inTeX Live as ex­tract
MiKTeX as ex­tract

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

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author