GN4 supports optional auto-insertion of default paragraph styles in a new created text or article element, and manual refresh of such styles if they get deleted by mistake.
If auto-insertion is properly configured, each time you create a new article element, related paragraph styles are automatically inserted. When editing a new article element and GN4 inserts style(s) to match what's defined in the schema, the style with the name of the corresponding element type is selected. Example: you are creating a body element, and there's a body style in the body format - the body style is inserted.
|
On the Type menu, point to Paragraph, and then click Apply default styles. It does not matter where the cursor is, nor if something is selected or not. If either of required paragraph styles does not exist in the format, no style is inserted, not even those which exist, and the warning message "The schema does not match the current format: there is no paragraphs style matching the element type 'name'" is displayed. |
You can use the p element to prevent auto-insertion of any GNML tag - just put "p" as the first in the list of defined tags (look at the body definition below). Important: this assumes that "p" styles does not exists in the GN4 system, otherwise it won't work - the "p" style will continue to be inserted. <xs:element name="body"> <xs:complexType> ... <xs:complexType> <xs:sequence> <xs:element name="p" type="p" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="byline" type="byline" minOccurs="0" maxOccurs="1"/> <xs:element name="dateline" type="dateline" minOccurs="0" maxOccurs="1"/> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="crosshead" type="crosshead" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="table" type="table" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> ... </xs:element> |