We demonstrate how certain interactive features of learning management systems,
, quizzes and certain types of exercises including evaluations and feedback, can be incorporated into
-documents via embedded
-code. The embedded computational abilities of the enhanced
-documents which are discussed in this work allow for the repeated creation and presentation of exercises (within one session of use of such the document), if the exercises are designed to contain components that are randomly generated or randomly selected from a limited family of predesigned choices stored within the document. This enables the user/student to use the embedded exercises in the described interactive teaching documents for drill purposes. In addition, the use of such documents as extensions of common learning management systems is discussed.