Context information surrounding an application program can be inserted into an electronic document in order to increase accuracy and efficiency in note taking. For example, in a meeting scenario where a slide presentation is being displayed, the present invention can automatically in