Lecture overview
Keyboard shortcut: 'u'  Previous page
Keyboard shortcut: 'p'  Next page
Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide
Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home    Slide 17 : 20
Insertion of quotations from external files

Here we illustrate how to insert excerpts from external files into a note page (a slide). We have used this facility several times in this set of slides already presented

Automatic and programmed insertion of excerpts from external material is extremely useful in non-trivial documents

Superimposition of decorations (fonts and colors) makes it possible to focus the readers attention

  (read-text-file-between-marks
    file-path
    mark)

The application of the Scheme functions which returns a selected part of an external file

  (read-text-file-including-marks
    file-name
    start-mark end-mark)

A variant of the function shown above which includes the marks in the extracted text string

  (colorize-substrings
    (read-text-file-between-marks
      file-path
      mark)
    font-and-color-specification)

Additional superimposition of colors and fonts, as specified by font-and-color-specification

We use these facilities a lot in course materials in the area of programming