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 6 : 24
Source program

Source program is used to present a piece of program in the lecture notes. It is possible to select part of a program only, and it is possible to colorize and font decorate substrings of the chosen selection. Here we demonstrate these features on the LENO Scheme source file, on which this demo is based.

meta-lecture-notes.lamlExplanation of an external program.

Explanation of an external program. For illustration purposes we show the LAML fragments producing this page (This is done on each page in this collection). We also illustrate the possibility of fonting and coloring.

(note-page 'source-program
  (title "Source program"
         "Source program is used to present a piece of program in the lecture notes.
          It is possible to select part of a program only, and it is possible to 
          colorize and font decorate substrings of the chosen selection. Here we demonstrate
          these features on the LENO Scheme source file, on which this demo is based.
         "
  )

  (source-program this-source-file  (list "(note-page 'source-program" end-marker)
       (list
         (list "source-program" "" red 'italic) 
         (list "(index-words" ")" blue 'bold)
       )
       '(slide-external book-external)
       "Explanation of an external program. For illustration purposes we show the LAML fragments producing
        this page (This is done on each page in this collection). We also illustrate the possibility of fonting and coloring."

  )

  (source-program this-source-file  (list "(note-page 'source-program" end-marker)
       (list
         (list "source-program" "" red 'italic) 
         (list "(index-words" ")" blue 'bold)
       )
       '(slide-inline book-inline)
       "Explanation of an inlined program. For illustration purposes we show the LAML fragments producing
        this page (This is done on each page in this collection). We also illustrate the possibility of fonting and coloring."

  )  

  (index-words "source-file")

) ; end page

Explanation of an inlined program. For illustration purposes we show the LAML fragments producing this page (This is done on each page in this collection). We also illustrate the possibility of fonting and coloring.