9 Views

The logical structure of a document can be displayed on the screen through several views. The possible views are defined in presentation schemas. In the presentation schema used for this document, the views Full_text and Table_of_contents views have been defined. The user can open any view at any time. The same view can be opened several times, in order to display different parts of a document.

All views can play the same role when a document is edited. You can select a part of a document in any view and apply any editing command, regardless of the view where the selection has been made. The result is displayed in all views where it is visible.

9.1 Opening and closing views

To open a view, use the ``Open a view'' command from the ``Document'' menu. This command can be issued from any view of the document in question. A menu then lists the views defined for the document; the names followed by a star indicate the views already opened. Once the view has been chosen, it is displayed in a new window. The position and the dimension of this type of window can be specified in the .conf file (see section 23.2.3).

If the maximum number of views is reached (see section 26), the editor displays the ``Too many views'' message in the Thot window. You then have to close a window by using the command ``Close that view'' from the ``Document'' menu in order to open new views.

For certain views, you can also double-click on a reference (see section 5.4): if the cross-referenced element cannot be displayed in any opened views, a new view is automatically opened.

To close a view, use the ``Close that view'' command from the ``Document'' menu in the menu bar in the window of the view to be closed. The corresponding window disappears. If it is the last opened view, the document is simultaneously closed by the editor, but you are given the opportunity to save the document if it has been modified (if you do not want to close the document, click on the ``Done'' button to dismiss the command), as described in section 7.4.

9.2 Navigating within the document

Views can be used to move through a document. When a character string or an element is selected, it is displayed in all views where the presentation schema allows it. Thus, by clicking on a character or an element in a view, the same element is displayed in the other opened views.

This principle can be applied to the table of contents: just click on a section title in the table of contents so that this section is displayed in the primary document window with the section title highlighted.

This synchronization of views can be a disadvantage when several copies of the same view are opened to display different parts of the document. Hence it is possible to desynchronize the views with the ``Desynchronize'' toggle item from the ``Present view'' from the ``Present'' menu. When a view has been desynchronized, it can be synchronized again with the same toggle.

It can be possible to move through a document view without changing current selection and insert point (see section 3.1).


[Section 10] [Table of contents]