Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Starter Template

If you just want to get started, you can download this template that showcases most features available:

View file
nameParagraph_Starter_Template.docx

Structure

Paragraph styles are specified underneath the paragraph styles headerstyles define a reference to word styles that can then be used in various nodes (such as paragraph nodes and section nodes).

They allow the definition of a default style that is used whenever no style is given.

It is a table with a header row and in the leftmost column is the name of the referenced word style that is created inside of Word. Here is an example of what this looks like:

...

All columns next to the leftmost columns are ignored and can be used to add examples or any other supporting information.

Metadata

...

Behavior

Paragraph nodes

The logic for using a style in paragraph nodes is as follows:

  1. If the paragraph node is a direct child of a layout node and no style is specified, use the style of the slot it is in

  2. If a style is specified, use it

  3. If a style is specified but it doesn’t exist, generate a warning and use no style at all

  4. If no style is specified, use the default style. If no default style exists, use none at all.

  5. If the special “none” style is specified, use no style at all

Section nodes

The logic for using a style in section nodes is as follows:

  1. If a style is specified, use it

  2. If a style is specified but it doesn’t exist, generate a warning and use the style “Header x” where x is the level of the section node in the abstract report tree

  3. If no style is specified, use the default one. If no default style exists, use the style “Header x” where x is the level of the section node in the abstract report tree

  4. If the special “none” style is specified, use the “Header x” algorithm for finding a style.

Metadata

The metadata comment must be set on the referenced style , as can be seen in this example:

...

in the table.

The available options are default and noStyle. The default option define which style to use if no style is given:

...

The noStyle option defines the marker style that can be used to override the default style and use no style at all:

...