Creating Nested Structures
When the insertion point is in an empty element, pressing the
Enter key replaces that element by another empty element at the
next higher level in the document structure. This feature allows you to
create complex, nested structures very quickly.
As an example, consider the following structure:
To create the above structure:
- Click the Bullet List button to create the first item
in the list.
- Type in the list item text, and press the Enter key once.
Amaya creates a new paragraph within the list item.
- Type the paragraph text, and press the Enter key twice. The
first Enter creates another paragraph element, but the second
Enter removes that paragraph and creates a second bullet list
item in the original list.
- Type the second list item.
- Click the Bullet List button to create a new list. The
new list is automatically nested within the first list.
- Type the text for the first item in the new list, and press the
Enter key twice to create a new item in the nested list.
- Type the text for the second list item, and press the Enter
key four times to create a new list item in the original list.
- Type the final list item, and then press the Enter key three
times to close the original list and start a new paragraph.
The Enter key works in the same way when the insertion point is
at the beginning of an element, but it creates new elements before the
current element. For example, to add a list item between the first two items
in the above structure, place the cursor at the beginning of the second list
item, and press the Enter key twice.
Note: This use of the Enter key does not
apply only to lists and paragraphs, but to all elements. For example, it is
very helpful for creating tables.