6.1. List items

Click the "The "List Item" toolbar button List Item" toolbar button to add a new list item after current list item.

Specifying current list item is easy. Suffice to click anywhere inside a list item. For list elements having attribute type="gloss", clicking anywhere inside the label element preceding the item element works too.

In fact, this button fully supports list elements having attribute type="gloss". For this kind of lists, it adds a label element followed by an item element.

Handy keyboard shortcuts[1]

The following keyboard shortcuts, commonly found in word processors, also work in XMLmind XML Editor:

These other keyboard shortcuts are specific to XXE:

Converting between paragraphs and list items

Let's see the The "Increase nesting level" toolbar button ("Increase nesting level") toolbar button in action using an example. Our document contains two paragraphs.

Document containing two paragraphs.

Click anywhere inside first paragraph and then click the "Increase nesting level" button. This converts selected p element to an item element, creating a parent list element on the fly.

First paragraph converted to a list/item.

Now click anywhere inside second paragraph and then click the "Increase nesting level" button. This converts selected p element to a second item element, following first item element and sharing the same list parent.

Second pararaph converted to another list item.

Click another time the "Increase nesting level" button just to see what happens. This time, selected second item element is converted to a p element and this paragraph has been made a child of first item element.

Second item converted to a paragraph added to first item.

The The "Increase nesting level" toolbar button ("Decrease nesting level") toolbar button performs the opposite operation of the The "Increase nesting level" toolbar button ("Increase nesting level") toolbar button.

The The "Increase nesting level" toolbar button ("Increase nesting level") toolbar button creates plain lists (implicitly having attribute rend="simple") on the fly. However it's very easy to change the type of a list (more precisely, the value of attribute rend). Simply click anywhere in the list and select any of the following menu entries.

The list type menu

Alternatively, you can type a “prefix” to specify the kind of list to be created:

  • If the paragraph is empty, simply type "*", "-", "1.", "a.", "A.", optionally followed by space characters, in it.
  • If the paragraph is not empty, type "*", "-", "1.", "a.", "A.", followed by at least one space character, at the very beginning of it.

These “prefixes” are used to create respectively: list[bulleted], list[bulleted], list[numbered], list[lettered], list[lettered], as if the above "Change list type" menu was automatically used.


[1] The following keyboard shortcuts will not work inside a list element having attribute type="gloss".

[2] On the Mac, press the Cmd key rather than the Ctrl key.