
5. Creating and opening documents
5.1. Creating a new document
Amaya allows you to create both local and remote documents. Three types of documents are available:
• New document, to create a document including text, links, formulae, etc.
• New formula, to create a single mathematical formula
• New style sheet, to create a CSS style sheet
To create a document:
1. Choose New from the File menu, and then select the file type you want to create.
2. At the prompt, type the URI or the local path name of the new document (a default name is
assigned to the document if no name is specified). You can use the file browser to find a local
directory.
3. Choose the location of the new document : Replace current, In new tab or In new Window.
4. If you are creating a new XHTML document:
◦ When a title of the new document is requested, Amaya generates a default title (the file
name without the suffix). That title could be updated later by the Tools/Change title
command.
◦ If you plan to use a template, click the From template toggle and select a template,
either by selecting in the list of registered templates or by typing the URI or file name
of a template that is not in the list. To update the list of available templates, see
Preferences/Templates
◦ If you do not want to use a template, you may specify the Document profile of the
new document (XHTML Transitional, XHTML 1.1, XHTML strict, XHTML basic,
HTML transitional, Compound document). You may use the default profile proposed
by Amaya.
If you want to create a XHTML document including either MathML or SVG elements
(Compound document), it is recommended to create a document file with a .xml
suffix.
5. You may select a charset to encode strings in the document. Pay attention, if you plan to
publish your document on a server, this charset should be selected in accordance with the Web
server that will serve the document (contact your web master).
By default .html pages are served with iso-8859-1 and .xml pages are served with utf-8.
6. Click Create. The new document is open, and a root element is created.
5.2. Opening a document
You can open local and remote documents in several ways:
File menu
1. Choose Open document from the File menu.
Note: You can alternately use a keyboard shortcut to open a document. Press Ctrl-o ctrl-o.
2. In the Open document dialog, type the full path or URI of the file you want to open, or use the
Browse button (a file icon) to open a file selection dialog.
3. When the document is correctly specified, click Open.
5. Creating and opening documents
13
Comentários a estes Manuais