diff --git a/api/classes/bibliography.Bibliography.html b/api/classes/bibliography.Bibliography.html
index 6994c48ea7..d3dea5af65 100644
--- a/api/classes/bibliography.Bibliography.html
+++ b/api/classes/bibliography.Bibliography.html
@@ -32,7 +32,7 @@ when it updates the document's fields, or when the style is changed.
diff --git a/api/classes/bibliography.Citation.html b/api/classes/bibliography.Citation.html
index fba26a053d..564ad6b55d 100644
--- a/api/classes/bibliography.Citation.html
+++ b/api/classes/bibliography.Citation.html
@@ -32,7 +32,7 @@ it again when it updates the document's fields, or when the style is changed.
diff --git a/api/classes/charts.ChartDataPatch.html b/api/classes/charts.ChartDataPatch.html
index ad74acb353..b00aa8a6cc 100644
--- a/api/classes/charts.ChartDataPatch.html
+++ b/api/classes/charts.ChartDataPatch.html
@@ -45,7 +45,7 @@ placeholder in the document's text is left as it is.
diff --git a/api/classes/embedded-files.EmbeddedFileRun.html b/api/classes/embedded-files.EmbeddedFileRun.html
index e940d8155f..605d98358f 100644
--- a/api/classes/embedded-files.EmbeddedFileRun.html
+++ b/api/classes/embedded-files.EmbeddedFileRun.html
@@ -46,7 +46,7 @@ object sits inline with text, in a paragraph, including in a table, header, foot
diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 0e6c46d19c..5c696faf65 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index 8cbea9b5b0..1b8e7f14a1 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index 5777941635..5f1ebb0c49 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index 52f4a9867f..c8f8f111ae 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -35,7 +35,7 @@ taken from bookmarkUniqueNumericId (see BookmarkStart)
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 53d9966c3c..49a374cc5a 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -37,7 +37,7 @@ same as a Bookmark's.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 0e0a0ecbd0..35d2f7f7cb 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index 0992bc1fa9..ec50e61b97 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 644634f928..5631536884 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index b2ab2ff39e..a426744334 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index 876c7ca3b0..05ba43136a 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index da84f8c482..8c9545cda9 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 29126754ea..39cbcda313 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index 41e18d2d4d..d60f7b2e47 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index 9ba4cfe6db..a6bfb663c0 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index 3474eb679e..c4075e1979 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index cecd27644b..b2cb33b401 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index a3f2b603ab..c32e2fc678 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index 3d3b69c3c4..bc5b079a36 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index ad86f56538..a3edf4c800 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -27,7 +27,7 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EditableRangeStart.html b/api/classes/index.EditableRangeStart.html
index 465ea513b2..2de5088d5c 100644
--- a/api/classes/index.EditableRangeStart.html
+++ b/api/classes/index.EditableRangeStart.html
@@ -36,7 +36,7 @@ The id must be different from every other editable range's. The document's
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index f5cf16c7e9..97f61f0f63 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRun.html b/api/classes/index.EndnoteReferenceRun.html
index 0e53c1f657..f55629aa42 100644
--- a/api/classes/index.EndnoteReferenceRun.html
+++ b/api/classes/index.EndnoteReferenceRun.html
@@ -31,7 +31,7 @@ own, which is added to the document's endnotes when the run is written.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index 99244641b2..e6e58e79a7 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index 6ec9e1d660..04601fd123 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index 80bbd0e240..15c4eb71e4 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -42,7 +42,7 @@ Word appends the anchor to the relationship target as described in MS-OI29500 §
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index a2cd026312..09a8fd82bc 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -29,7 +29,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 9471823da5..42e23c86d5 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index 76af6322d4..424d4e127d 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index 263b01d8e3..e87a573207 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.FootnoteReferenceRun.html b/api/classes/index.FootnoteReferenceRun.html
index bb44a1fcbc..c71f4e4020 100644
--- a/api/classes/index.FootnoteReferenceRun.html
+++ b/api/classes/index.FootnoteReferenceRun.html
@@ -36,7 +36,7 @@ in, such as by a function that makes paragraphs, then brings its footnotes with
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index 178bfc1fa0..9f9dbde263 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index c74fea683f..1c2f2ebe90 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index 5b52500a46..c05e818a88 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index a720a97870..c450990aec 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -40,7 +40,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index acf2e759d1..5d9f59f56c 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index 492e98263e..4a2cc9c51c 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index 875fe0e232..2193df85fa 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index c887f93892..e3f9cf1303 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index 4f0b0c1435..f10e55629d 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index e1226cfef0..b3737b4e35 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index 755f55abdb..5b7c14734f 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index 31fc0d8a08..42dd0c2ab8 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index 01f7ab8a60..9f818ad9e4 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 1f4d86057c..a4dacd07cb 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index aabfa5b823..47fa4a2ab4 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index 9a93ad6065..1d42c84dee 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index 15f5261b2f..5773385097 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index 11ba7ba137..0ee7b6268c 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index f7281f9381..2a0b3db27c 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index 3f36f2a4c9..5d0cb5a862 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index fc492f2d60..4c17d80f69 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index ab6d3ed67c..7fb7584497 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index 97c4c9d45d..c6b2c3716f 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index 75834f8b25..bc0ed61838 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index 2fc6f49004..1f1391671a 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index a996a111ae..b9da26d025 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index 0b85a96ded..cd85e00ab1 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index 02514071f6..6d68a8d3ab 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index 8159b84065..9b978927e8 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index ca5ffbf20f..aed477cd50 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index c6806ab75d..31cadb465d 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index 82b2f39160..dfbe1cc95f 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index 1a4c706010..bf5fb6a12b 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index 443810e313..01b106bab0 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -43,7 +43,7 @@ reads them as a w:fldSimple. They have no cached value, so one give
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 75c649f9ed..05076c294a 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index 76bc5f6b84..c28de64cb2 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index a96f86ea97..22f13f2352 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index 37790365f1..8fd74681db 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index 80eaa7901b..6f5481f42b 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index ac65a39b09..cf11bbc7ab 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
@@ -121,9 +121,10 @@ such as a run with another run in its children. Undefined when it is written as
Writes the styles in the schema's order: the document defaults, the latent styles, then the styles. A style id
can only be used once, so a style replaces an earlier one with its id. That way external styles replace docx's
-default styles, and paragraph and character styles replace the default and imported ones. Of several document
-defaults, or several latent styles, the last is kept. Normal is marked as the default paragraph style when no
-style is.
+default styles, and paragraph and character styles replace the default and imported ones. docx's TOC 1 to TOC 9
+styles are also replaced by a paragraph style with their name, such as a template's in another language, with an id
+of its own. Of several document defaults, or several latent styles, the last is kept. Normal is marked as the
+default paragraph style when no style is.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index 9b91869d7b..9ff3bcc465 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index fc1bde6c9b..030c5033cb 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableBorders.html b/api/classes/index.TableBorders.html
index f34f5307e1..0b57ca7ecb 100644
--- a/api/classes/index.TableBorders.html
+++ b/api/classes/index.TableBorders.html
@@ -32,7 +32,7 @@ line, unless fillMissingSides is false, when it is left to the tabl
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index b2876b8c15..6d4fabd4e3 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 0499e425d3..a789167e1b 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -37,7 +37,7 @@ isn't written, as Word can't open a document with one.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index 1a5d94b6ce..318a21f491 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index ce3fa5f6c5..9066eb8b3f 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index 6def83e859..8957158087 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index 66220c649d..eaabca6454 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index aad66f2fb0..2591c5d7b4 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index c59c936782..259fb20230 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -128,7 +128,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/math.MathBrackets.html b/api/classes/math.MathBrackets.html
index 22952d831b..7220aabcb7 100644
--- a/api/classes/math.MathBrackets.html
+++ b/api/classes/math.MathBrackets.html
@@ -29,7 +29,7 @@ with what they hold.
diff --git a/api/classes/math.MathLargeOperator.html b/api/classes/math.MathLargeOperator.html
index f87f2fc0c5..ff96afd742 100644
--- a/api/classes/math.MathLargeOperator.html
+++ b/api/classes/math.MathLargeOperator.html
@@ -28,7 +28,7 @@ it applies to. MathSum and MathIntegral are two of the
diff --git a/api/classes/math.MathMatrix.html b/api/classes/math.MathMatrix.html
index 2161f7c194..b1f195af75 100644
--- a/api/classes/math.MathMatrix.html
+++ b/api/classes/math.MathMatrix.html
@@ -30,7 +30,7 @@ and Pages centre every column.
diff --git a/api/classes/math.MathPhantom.html b/api/classes/math.MathPhantom.html
index 0004420f44..d49cb9e04a 100644
--- a/api/classes/math.MathPhantom.html
+++ b/api/classes/math.MathPhantom.html
@@ -28,7 +28,7 @@ line things up with it. Or math that is seen but takes up no room, or less, as <
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index 8f2cf849a1..aadabe5101 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index 3648933401..5085adaa9d 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index 4fb0dad124..5086b33efa 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index 245ad5a78a..568453548f 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index 7e9296a572..e859ebce93 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/html.htmlToContent.html b/api/functions/html.htmlToContent.html
index dd8b175240..cf7fe4ac8b 100644
--- a/api/functions/html.htmlToContent.html
+++ b/api/functions/html.htmlToContent.html
@@ -50,7 +50,7 @@ read as a browser reads it, and what the document can't have, such as a video, i
diff --git a/api/functions/html.htmlToRuns.html b/api/functions/html.htmlToRuns.html
index 22558a771b..8a7d5d6237 100644
--- a/api/functions/html.htmlToRuns.html
+++ b/api/functions/html.htmlToRuns.html
@@ -39,7 +39,7 @@ and lists is kept, without the tables and lists, with a warning, as a paragraph
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index f443ee8e1d..d8508d15e9 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -35,7 +35,7 @@ ImportedXmlComponent objects that match the structure of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index 8c16ab353f..5e57f70d1f 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index 352355b1c3..d49d992b3f 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 984262464b..c070a6f3d6 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index b7a1d96ea0..c069dd98b6 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index 2d14ad193b..fcae7c56ed 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index 7523886204..56f47aa429 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index c6275f667d..18835f5156 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index 91d75dd29a..e9e223f242 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index 855210a480..e7df781e33 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 56171afc34..a563108817 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index 9eac0271d4..cc6feda70d 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index 389416b9fd..80a285d172 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index 981ee02dbd..6890e5082b 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index 86b10e2968..b03330f3a9 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index 6baa77f247..ac9bfced99 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index cbf90a15a0..95b716668a 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index d0be383940..6a68356e85 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.elementOf.html b/api/functions/index.elementOf.html
index add450426a..d016387e49 100644
--- a/api/functions/index.elementOf.html
+++ b/api/functions/index.elementOf.html
@@ -31,7 +31,7 @@ is constructed with its element as rootKey.
diff --git a/api/functions/index.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index 26ffdf6fba..1263d96eee 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -35,7 +35,7 @@ are left as they are
diff --git a/api/functions/index.fillSequenceNumbers.html b/api/functions/index.fillSequenceNumbers.html
index 39fe9c11dd..131d56377f 100644
--- a/api/functions/index.fillSequenceNumbers.html
+++ b/api/functions/index.fillSequenceNumbers.html
@@ -27,7 +27,7 @@ tables of contents are filled in from its headings, as Word leaves a heading's S
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index 2f64eb0c47..acf6828205 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.isXmlComponent.html b/api/functions/index.isXmlComponent.html
index 6851a0999a..414f75c90c 100644
--- a/api/functions/index.isXmlComponent.html
+++ b/api/functions/index.isXmlComponent.html
@@ -32,7 +32,7 @@ method that would write it.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index 1aa194805b..860902052d 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index 397685760f..bad0d8717c 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/functions/layout.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index d57748d43f..b134b9c058 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -51,7 +51,7 @@ whose number it didn't work out is left out, and the entry is written without a
diff --git a/api/functions/layout.layoutDocument.html b/api/functions/layout.layoutDocument.html
index 814a335244..bc8e56ea66 100644
--- a/api/functions/layout.layoutDocument.html
+++ b/api/functions/layout.layoutDocument.html
@@ -40,7 +40,7 @@ text box, it stops, and gives the pages up to there, with why in stoppedAt
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index 198446e226..4051bbac66 100644
--- a/api/functions/layout.measureWithPretext.html
+++ b/api/functions/layout.measureWithPretext.html
@@ -40,7 +40,7 @@ measures text in another, and Pretext keeps the widths it measured.
diff --git a/api/functions/macros.createMacros.html b/api/functions/macros.createMacros.html
index cda8ba3477..8fe99433b0 100644
--- a/api/functions/macros.createMacros.html
+++ b/api/functions/macros.createMacros.html
@@ -47,7 +47,7 @@ by ThisDocument, the project, Project, or a library it uses, VBA, Word, stdole,
diff --git a/api/functions/math.latexToMath.html b/api/functions/math.latexToMath.html
index e545b7d3e7..7c668f3927 100644
--- a/api/functions/math.latexToMath.html
+++ b/api/functions/math.latexToMath.html
@@ -44,7 +44,7 @@ cases and aligned equations, with \tag for their numbers. The math
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index ede71d8192..2e3bb8de26 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/bibliography.Source.html b/api/types/bibliography.Source.html
index 3b0ab1587b..7062cb5a2e 100644
--- a/api/types/bibliography.Source.html
+++ b/api/types/bibliography.Source.html
@@ -23,7 +23,7 @@ each field's description says which types of source Word asks for it with.
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index 438b1c4313..26512910ec 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
@@ -49,14 +49,14 @@ bar, line or area chart spaces them by date
Sales. 2025: Jan 10, Feb 20.", and none for a decorative chart. An empty description removes it
+
diff --git a/api/types/charts.CategoryChartOptions.html b/api/types/charts.CategoryChartOptions.html
index ab50d9fc73..6739db90a5 100644
--- a/api/types/charts.CategoryChartOptions.html
+++ b/api/types/charts.CategoryChartOptions.html
@@ -59,7 +59,7 @@ in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index e333894922..46c505bf0e 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index a5b09633eb..f6e5b1d927 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
diff --git a/api/types/charts.ChartCategoryGroup.html b/api/types/charts.ChartCategoryGroup.html
index f37968816d..941da181bb 100644
--- a/api/types/charts.ChartCategoryGroup.html
+++ b/api/types/charts.ChartCategoryGroup.html
@@ -20,7 +20,7 @@ categories, or groups of its own, such as the months of each quarter of each yea
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
diff --git a/api/types/charts.ChartDataPatchOptions.html b/api/types/charts.ChartDataPatchOptions.html
index bbf73a44b0..0f43d1c170 100644
--- a/api/types/charts.ChartDataPatchOptions.html
+++ b/api/types/charts.ChartDataPatchOptions.html
@@ -19,7 +19,7 @@ series' points, or for a stock chart its prices.
diff --git a/api/types/charts.ChartErrorBarsAmount.html b/api/types/charts.ChartErrorBarsAmount.html
index 7da1cc80b2..39a893b809 100644
--- a/api/types/charts.ChartErrorBarsAmount.html
+++ b/api/types/charts.ChartErrorBarsAmount.html
@@ -64,7 +64,7 @@ deviations, or the standard error.
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index 332384218c..c21f01d0a9 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
diff --git a/api/types/charts.ChartPointLabel.html b/api/types/charts.ChartPointLabel.html
index b964b694b8..f4c97199b8 100644
--- a/api/types/charts.ChartPointLabel.html
+++ b/api/types/charts.ChartPointLabel.html
@@ -19,7 +19,7 @@ format and its font. Anything left out is as the series' labels have it.
diff --git a/api/types/charts.ChartTrendline.html b/api/types/charts.ChartTrendline.html
index f09b1af92a..4ca7414dfb 100644
--- a/api/types/charts.ChartTrendline.html
+++ b/api/types/charts.ChartTrendline.html
@@ -20,7 +20,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
@@ -57,7 +57,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
along the x axis. Default is 0. Not for moving averages
@@ -73,35 +73,35 @@ the x axis. Default is 0. Not for moving averages
linear, exponential and polynomial trendlines, and above 0 for exponential ones
+
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index 169b1742d1..da24a6340a 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index 330364ba89..6e8abe7bdd 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
@@ -59,14 +59,14 @@ with undefined, takes the next of the theme's accent colours
one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
+
diff --git a/api/types/charts.SplitPieChartBaseOptions.html b/api/types/charts.SplitPieChartBaseOptions.html
index 149c3fdde8..a91d5ce4d5 100644
--- a/api/types/charts.SplitPieChartBaseOptions.html
+++ b/api/types/charts.SplitPieChartBaseOptions.html
@@ -42,7 +42,7 @@ second pie or a stacked bar, joined to the slice of the pie that stands for them
@@ -66,7 +66,7 @@ Excel, Word or PowerPoint, and any other file, such as a sound, a video or a PDF
for Windows opens with the application the computer opens its type with. A packaged file keeps the name
@@ -74,7 +74,7 @@ for Windows opens with the application the computer opens its type with. A packa
it until the file is opened and changed in its application, which then draws the file again
+
diff --git a/api/types/html.HtmlImage.html b/api/types/html.HtmlImage.html
index 47eb11a6cc..6db09fb3f0 100644
--- a/api/types/html.HtmlImage.html
+++ b/api/types/html.HtmlImage.html
@@ -16,7 +16,7 @@
SVG given without one is shown as nothing there.
@@ -51,7 +51,7 @@ an object of each address and its image, or a function that gives the image for
has none. An address is looked for as it is written, and then resolved against baseUrl.
@@ -59,7 +59,7 @@ has none. An address is looked for as it is written, and then resolved against <
of a document with docx's default page size and margins. Wider images are scaled down.
@@ -68,14 +68,14 @@ the foot of the page each is referred to on, by default, or "endnotes
page has them. Word's own HTML says which of its notes are footnotes and which are endnotes, which they stay.
@@ -86,7 +86,7 @@ element give it different styles, the most specific selector's is used, as in CS
document, such as in its styles option or the template it patches.
+
@@ -94,7 +94,7 @@ document, such as in its styles option or the template it patches.<
editor it comes from. Rules in @media print blocks are used, and those in other @media blocks aren't.
+
@@ -103,7 +103,7 @@ of their datetime attribute, or this time, or now: an ISO 8601 date
2026-10-13T09:30:00Z. Without it, they are underlined and struck through, as a browser shows them.
+
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index 2456d3e732..ce3f4e1465 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
diff --git a/api/types/index.DocumentMacroEvent.html b/api/types/index.DocumentMacroEvent.html
index 5172e0d0fd..3747559a76 100644
--- a/api/types/index.DocumentMacroEvent.html
+++ b/api/types/index.DocumentMacroEvent.html
@@ -19,7 +19,7 @@ name in VBA, after "Document_", such as "open" for Doc
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
@@ -63,14 +63,14 @@ name. The page references to a bookmark that isn't in it are left blank.
the first of them on may not be Word's. Nothing of them is written into the document.
+
@@ -88,7 +88,7 @@ those in headers, footers and notes.
in headers and footers only on its pages, show. Those of a section whose number is undefined are left blank.
+
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index 2c5ff6b9a1..155183cfb4 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index f3364b3010..b09080e5bc 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index b71119f1e6..6b423d8465 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index f331735bcd..c126c23cde 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index 1b7c54914e..586c74037c 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -159,87 +159,87 @@ other with the same group are fitted to it together.
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
+
@@ -248,34 +248,34 @@ as Word's style separator does. It is meant for a paragraph's mark, with v
new Paragraph({ run: { vanish: true, specVanish: true } }). Without vanish, Word doesn't hide the mark.
+
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index deb072cd19..d53119620c 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -23,7 +23,7 @@ the two lines that cross the cell from corner to corner.
@@ -57,49 +57,49 @@ the two lines that cross the cell from corner to corner.
It splits a header cell into a label for its row, below the line, and one for its column, above it.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index 5253f80f6c..6ae7c6b743 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -79,66 +79,66 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
+
diff --git a/api/types/index.ITableRowOptions.html b/api/types/index.ITableRowOptions.html
index 8b8dcd6302..edd803a240 100644
--- a/api/types/index.ITableRowOptions.html
+++ b/api/types/index.ITableRowOptions.html
@@ -35,7 +35,7 @@ the group on one page.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index a7cb7f379d..822a6a1fa3 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index 353eb4e846..39062b237b 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.InputDataType.html b/api/types/index.InputDataType.html
index 33a9a09780..3079d20cde 100644
--- a/api/types/index.InputDataType.html
+++ b/api/types/index.InputDataType.html
@@ -17,7 +17,7 @@
arrays, and streams, such as fs.createReadStream's or Packer.toStream's.
diff --git a/api/types/index.MathRunStyle.html b/api/types/index.MathRunStyle.html
index bc7db088c4..c4e1b217d8 100644
--- a/api/types/index.MathRunStyle.html
+++ b/api/types/index.MathRunStyle.html
@@ -23,7 +23,7 @@
alphabet other than roman is plain unless given a style, as LaTeX draws its alphabets upright.
diff --git a/api/types/index.NoteContent.html b/api/types/index.NoteContent.html
index 218a29b20a..a8e21438e6 100644
--- a/api/types/index.NoteContent.html
+++ b/api/types/index.NoteContent.html
@@ -19,7 +19,7 @@ with an id none of them has, when the run is written in the document's body.
diff --git a/api/types/index.NumberingDefinition.html b/api/types/index.NumberingDefinition.html
index 7ae9164e30..e1a639a153 100644
--- a/api/types/index.NumberingDefinition.html
+++ b/api/types/index.NumberingDefinition.html
@@ -23,7 +23,7 @@ to the document's numbering when the paragraph is written.
diff --git a/api/types/index.OleObjectRelationshipType.html b/api/types/index.OleObjectRelationshipType.html
index 66546d13e9..30d2046cb0 100644
--- a/api/types/index.OleObjectRelationshipType.html
+++ b/api/types/index.OleObjectRelationshipType.html
@@ -17,7 +17,7 @@ OLE package. It isn't one of the
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index 5d5d3efabb..ab11e0992a 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.PackagePartOptions.html b/api/types/index.PackagePartOptions.html
index e90fc6af3e..fb85609192 100644
--- a/api/types/index.PackagePartOptions.html
+++ b/api/types/index.PackagePartOptions.html
@@ -23,7 +23,7 @@
docx/embedded-files embeds, gives it, so the options of a part made without it have a RelationshipType
diff --git a/api/types/index.PageNumberEstimator.html b/api/types/index.PageNumberEstimator.html
index 45aed642bb..74c0505f25 100644
--- a/api/types/index.PageNumberEstimator.html
+++ b/api/types/index.PageNumberEstimator.html
@@ -48,7 +48,7 @@ whose number it didn't work out is left out, and the entry is written without a
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index c316c2fbf4..d940815138 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
diff --git a/api/types/index.PatchDocumentProperties.html b/api/types/index.PatchDocumentProperties.html
index 5282f52fa3..0af2650893 100644
--- a/api/types/index.PatchDocumentProperties.html
+++ b/api/types/index.PatchDocumentProperties.html
@@ -16,7 +16,7 @@
as the document's tags and description as its comments.
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index 2b7ae2366a..32328ca391 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
diff --git a/api/types/index.TableRowsPatch.html b/api/types/index.TableRowsPatch.html
index 1847f45d7c..512ee1a518 100644
--- a/api/types/index.TableRowsPatch.html
+++ b/api/types/index.TableRowsPatch.html
@@ -32,7 +32,7 @@ none. The other patches are applied after the rows are repeated, so a placeholde
@@ -55,14 +55,14 @@ A field's patch can repeat rows of a table in the copy in turn, whose fields are
repeated for each part, with its item's fields, and an item without parts has no row
diff --git a/api/types/index.TemplatePageNumberEstimator.html b/api/types/index.TemplatePageNumberEstimator.html
index 94005457d6..556e23d4d7 100644
--- a/api/types/index.TemplatePageNumberEstimator.html
+++ b/api/types/index.TemplatePageNumberEstimator.html
@@ -33,7 +33,7 @@ pages, are written with it.
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
diff --git a/api/types/index.XmlElement.html b/api/types/index.XmlElement.html
index 10976b5226..3f28bfa160 100644
--- a/api/types/index.XmlElement.html
+++ b/api/types/index.XmlElement.html
@@ -26,7 +26,7 @@ and the rest in instruction.
@@ -63,7 +63,7 @@ nearest to Word's lays it out. It still stops where it has no guess, such as at
is off, so the numbers written are Word's, as near as the layout knows, or blank.
+
@@ -73,7 +73,7 @@ break, and tabs move to their stops, as Word lays them out, and lines are as tal
width tables, so the layout stops at text in a font that isn't in them and isn't given as a file or embedded.
+
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index 05dd489d55..11ed8b9b1f 100644
--- a/api/types/layout.MeasureWidth.html
+++ b/api/types/layout.MeasureWidth.html
@@ -33,7 +33,7 @@ between characters and the width of scaled text, which the document's formatting
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index 28fd26ed8d..376c3c8018 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index 70023a3048..a58cf987a4 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index ab07031b9d..8229eeda17 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index 79703d3a4b..d3c5b29703 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index 59ea8e83c9..a74be62192 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -64,7 +64,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index c68d9fb37e..6d154cdde7 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index 2e3cacd560..057e385a81 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index 54e6d1511a..c88be45eec 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -50,7 +50,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index bedfb3496a..ea2349175c 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 888a7c8ec2..41eace96e9 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 577a6d1d48..66f0331da3 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index 1108c52e36..53a4922c7f 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index a85c499a33..51d2ce17f9 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index bd92bce25a..a60f6ea929 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index 56b12d8ad3..e28ea017f7 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index a3934446b4..fd07654974 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index 7d846d9e9c..9e90c522e8 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index 07363f09ed..63dcad1c60 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index e9ae1732e6..9b00e553e9 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index dff26e5e57..d45eb1c831 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index ac72e00652..94cb092c49 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/bibliography.CitationStyle.html b/api/variables/bibliography.CitationStyle.html
index df8dfae7db..90ed6ec11d 100644
--- a/api/variables/bibliography.CitationStyle.html
+++ b/api/variables/bibliography.CitationStyle.html
@@ -70,7 +70,7 @@ citation of a book by Anna Baker from 2010 is in its description.
diff --git a/api/variables/bibliography.SourceType.html b/api/variables/bibliography.SourceType.html
index 233ea1cdcc..fc0b24cef3 100644
--- a/api/variables/bibliography.SourceType.html
+++ b/api/variables/bibliography.SourceType.html
@@ -90,7 +90,7 @@ source can have any field. Word's own name for each, as it writes it in the docu
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index d3180c61f0..4166bbc4ec 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index f9996728c8..b3e27a188b 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index 1b84119391..6bd2bf02a8 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index 2b78361142..a090e80a02 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index 91f9eee94f..a509232b51 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index 448b459731..195228158d 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index 9f439eb85f..d511a78f8b 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index 4fb04e2988..c41f52e871 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index c927bb9ae3..6311c3deed 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index 08b54e6f51..91b4c39849 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index 0cdf1b4e6d..e615ad611c 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index 3f7410016a..9e72f6d5b9 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index c9900e8065..9b16d30f5a 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index 19619c5bfe..b7058cd173 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/api/variables/index.fitTextUniqueNumericId.html b/api/variables/index.fitTextUniqueNumericId.html
index c026db79c6..4fbb37041d 100644
--- a/api/variables/index.fitTextUniqueNumericId.html
+++ b/api/variables/index.fitTextUniqueNumericId.html
@@ -27,7 +27,7 @@ don't meet the groups people give, which count up.
diff --git a/api/variables/layout.estimatePageNumbers.html b/api/variables/layout.estimatePageNumbers.html
index 2a6a0908a8..8940e2bd58 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -52,7 +52,7 @@ to a tab stop past it, as Word writes it (listNumbers).
diff --git a/live-examples/lib/index.d.ts b/live-examples/lib/index.d.ts
index 6dd118305a..b2e794bb91 100644
--- a/live-examples/lib/index.d.ts
+++ b/live-examples/lib/index.d.ts
@@ -12986,9 +12986,10 @@ export declare class Styles extends XmlComponent {
/**
* Writes the styles in the schema's order: the document defaults, the latent styles, then the styles. A style id
* can only be used once, so a style replaces an earlier one with its id. That way external styles replace docx's
- * default styles, and paragraph and character styles replace the default and imported ones. Of several document
- * defaults, or several latent styles, the last is kept. Normal is marked as the default paragraph style when no
- * style is.
+ * default styles, and paragraph and character styles replace the default and imported ones. docx's TOC 1 to TOC 9
+ * styles are also replaced by a paragraph style with their name, such as a template's in another language, with an id
+ * of its own. Of several document defaults, or several latent styles, the last is kept. Normal is marked as the
+ * default paragraph style when no style is.
*/
prepForXml(context: IContext): IXmlableObject;
}
diff --git a/live-examples/lib/index.iife.js b/live-examples/lib/index.iife.js
index 0a24088ab4..068a0c671b 100644
--- a/live-examples/lib/index.iife.js
+++ b/live-examples/lib/index.iife.js
@@ -9848,10 +9848,10 @@ EXTERNAL: "External" };
const content = name === void 0 ? void 0 : element[name];
return Array.isArray(content) ? content : content === void 0 ? [] : [content];
};
- var childOf = (element, name) => childrenOf$1(element).find((child) => nameOf$4(child) === name);
+ var childOf$1 = (element, name) => childrenOf$1(element).find((child) => nameOf$4(child) === name);
var attributeOf = (element, attribute) => {
var _childOf;
- return (_childOf = childOf(element, "_attr")) === null || _childOf === void 0 || (_childOf = _childOf._attr) === null || _childOf === void 0 ? void 0 : _childOf[attribute];
+ return (_childOf = childOf$1(element, "_attr")) === null || _childOf === void 0 || (_childOf = _childOf._attr) === null || _childOf === void 0 ? void 0 : _childOf[attribute];
};
/** An attribute such as `w:val="2"` as a number. Imported XML gives it as a string */
var numberAttributeOf = (element, attribute) => {
@@ -9951,11 +9951,11 @@ EXTERNAL: "External" };
const bookmarks = followBookmarks ? bookmarksOf(paragraphs) : [];
return paragraphs.map((element, index) => {
var _bookmarks$index;
- const properties = childOf(element, "w:pPr");
+ const properties = childOf$1(element, "w:pPr");
return {
element,
- styleId: attributeOf(childOf(properties, "w:pStyle"), "w:val"),
- outlineLevel: numberAttributeOf(childOf(properties, "w:outlineLvl"), "w:val"),
+ styleId: attributeOf(childOf$1(properties, "w:pStyle"), "w:val"),
+ outlineLevel: numberAttributeOf(childOf$1(properties, "w:outlineLvl"), "w:val"),
text: textOf$1(element),
bookmarks: (_bookmarks$index = bookmarks[index]) !== null && _bookmarks$index !== void 0 ? _bookmarks$index : /* @__PURE__ */ new Set()
};
@@ -9966,9 +9966,9 @@ EXTERNAL: "External" };
var _context$file;
const styles = (_context$file = context.file) === null || _context$file === void 0 || (_context$file = _context$file.Styles) === null || _context$file === void 0 ? void 0 : _context$file.prepForXml(context);
return new Map(childrenOf$1(styles).filter((style) => nameOf$4(style) === "w:style" && ["paragraph", void 0].includes(attributeOf(style, "w:type"))).map((style) => [attributeOf(style, "w:styleId"), {
- name: attributeOf(childOf(style, "w:name"), "w:val"),
- basedOn: attributeOf(childOf(style, "w:basedOn"), "w:val"),
- outlineLevel: numberAttributeOf(childOf(childOf(style, "w:pPr"), "w:outlineLvl"), "w:val")
+ name: attributeOf(childOf$1(style, "w:name"), "w:val"),
+ basedOn: attributeOf(childOf$1(style, "w:basedOn"), "w:val"),
+ outlineLevel: numberAttributeOf(childOf$1(childOf$1(style, "w:pPr"), "w:outlineLvl"), "w:val")
}]));
};
/** A range such as `1-3` */
@@ -10004,12 +10004,12 @@ EXTERNAL: "External" };
var headingLevels = (context) => {
const styles = stylesOf(context);
return (paragraph) => {
- const properties = childOf(paragraph, "w:pPr");
- const styleId = attributeOf(childOf(properties, "w:pStyle"), "w:val");
+ const properties = childOf$1(paragraph, "w:pPr");
+ const styleId = attributeOf(childOf$1(properties, "w:pStyle"), "w:val");
const heading = headingLevelOf(styleId, styles);
const outlineLevel = outlineLevelOf({
styleId,
- outlineLevel: numberAttributeOf(childOf(properties, "w:outlineLvl"), "w:val")
+ outlineLevel: numberAttributeOf(childOf$1(properties, "w:outlineLvl"), "w:val")
}, styles);
const outline = outlineLevel === void 0 || outlineLevel >= 9 ? void 0 : outlineLevel + 1;
if (heading !== void 0 && (outline === void 0 || outline === heading)) return heading;
@@ -10060,20 +10060,15 @@ EXTERNAL: "External" };
return end <= 1920 ? Math.ceil(end / 240) * 240 : Math.round(end);
};
/**
- * The paragraph style of the entries at a level: the built-in TOC style, found by its name, "toc 1" to "toc 9". When
- * the document doesn't have it, the entries are indented as Word's are, 220 twips a level.
+ * The paragraph style of the entries at a level: the built-in TOC style, found by its name, "toc 1" to "toc 9", such as
+ * a template's in another language, or else docx's own, `TOC1` to `TOC9`, which indent the levels as Word's do.
*/
var entryStyleOf = (level, styles) => {
- var _find;
- const named = (_find = [...styles].find(([, style]) => {
+ var _find$, _find;
+ return (_find$ = (_find = [...styles].find(([, style]) => {
var _style$name;
return ((_style$name = style.name) === null || _style$name === void 0 ? void 0 : _style$name.toLowerCase()) === `toc ${level}`;
- })) === null || _find === void 0 ? void 0 : _find[0];
- const id = named !== null && named !== void 0 ? named : `TOC${level}`;
- return named !== void 0 || styles.has(id) || level === 1 ? { id } : {
- id,
- indent: (level - 1) * 220
- };
+ })) === null || _find === void 0 ? void 0 : _find[0]) !== null && _find$ !== void 0 ? _find$ : `TOC${level}`;
};
/** The formatted content of a table of contents with its entries */
var contentOf = ({ properties, beginDirty, textWidth, tabLeader }, entries, styles, context) => {
@@ -10088,10 +10083,8 @@ EXTERNAL: "External" };
...titleRunsOf(entry.title, properties),
...hasPageNumber ? [new TextRun({ children: [properties.entryAndPageNumberSeparator || new Tab()] }), new PageReference(entry.bookmark, { hyperlink: properties.hyperlink })] : []
];
- const style = entryStyleOf(entry.level, styles);
content.addChildElement(new Paragraph({
- style: style.id,
- indent: style.indent === void 0 ? void 0 : { left: style.indent },
+ style: entryStyleOf(entry.level, styles),
tabStops: [...((_entry$listNumber = entry.listNumber) === null || _entry$listNumber === void 0 ? void 0 : _entry$listNumber.separator) === "tab" ? [{
type: "left",
position: numberTabStopOf(entry.level, entry.listNumber.width)
@@ -23301,6 +23294,43 @@ MAX: 9026 };
}, options));
}
};
+ var tableOfContentsStyles = /* @__PURE__ */ new WeakSet();
+ /**
+ * Whether a formatted style is one of docx's TOC 1 to TOC 9 styles, which a style with its name replaces, such as one in
+ * a template saved by Word in another language, with an id of its own.
+ */
+ var isDefaultTableOfContentsStyle = (style) => tableOfContentsStyles.has(style);
+ /**
+ * Represents a TOC 1 to TOC 9 paragraph style, the style of the entries at a level of a table of contents.
+ *
+ * Word gives the entries it writes the paragraph styles named "toc 1" to "toc 9", and adds the styles when the
+ * document doesn't have them: with 5 points of space after, and each level indented by the size of the Normal style's
+ * font more than the level above. Without them, LibreOffice indents no level once it updates the table. Like Word's,
+ * they are hidden until they are used.
+ */
+ var TableOfContentsStyle = class extends StyleForParagraph {
+ /**
+ * @param level - The level of the entries, 1 to 9
+ * @param levelIndent - How much more each level is indented than the level above, in twips
+ */
+ constructor(level, levelIndent) {
+ super({
+ id: `TOC${level}`,
+ name: `toc ${level}`,
+ basedOn: "Normal",
+ next: "Normal",
+ uiPriority: 39,
+ semiHidden: true,
+ unhideWhenUsed: true,
+ paragraph: _objectSpread2({ spacing: { after: 100 } }, level > 1 ? { indent: { left: (level - 1) * levelIndent } } : {})
+ });
+ }
+ prepForXml(context) {
+ const xml = super.prepForXml(context);
+ tableOfContentsStyles.add(xml);
+ return xml;
+ }
+ };
/**
* Represents the Footnote Text paragraph style.
*
@@ -23496,11 +23526,21 @@ MAX: 9026 };
var _attributesOf;
return (_attributesOf = attributesOf(style)) === null || _attributesOf === void 0 ? void 0 : _attributesOf["w:styleId"];
};
- /** Whether a formatted `w:style` is a paragraph style marked as the default for paragraphs */
- var isDefaultParagraphStyle = (style) => {
- var _attributes$wType;
- const attributes = attributesOf(style);
- return ((_attributes$wType = attributes === null || attributes === void 0 ? void 0 : attributes["w:type"]) !== null && _attributes$wType !== void 0 ? _attributes$wType : "paragraph") === "paragraph" && (attributes === null || attributes === void 0 ? void 0 : attributes["w:default"]) !== void 0 && ![
+ /** The name of a formatted `w:style`, in lower case, as Word compares the names of its built-in styles */
+ var styleNameOf = (style) => {
+ var _flat$find2;
+ const name = (_flat$find2 = [style["w:style"]].flat().find((part) => nameOf$1(part) === "w:name")) === null || _flat$find2 === void 0 || (_flat$find2 = _flat$find2["w:name"]) === null || _flat$find2 === void 0 || (_flat$find2 = _flat$find2._attr) === null || _flat$find2 === void 0 ? void 0 : _flat$find2["w:val"];
+ return name === void 0 ? void 0 : String(name).toLowerCase();
+ };
+ /** Whether a formatted element is a paragraph style, as a `w:style` is when its type isn't given */
+ var isParagraphStyle = (child) => {
+ var _attributesOf$wType, _attributesOf2;
+ return nameOf$1(child) === "w:style" && ((_attributesOf$wType = (_attributesOf2 = attributesOf(child)) === null || _attributesOf2 === void 0 ? void 0 : _attributesOf2["w:type"]) !== null && _attributesOf$wType !== void 0 ? _attributesOf$wType : "paragraph") === "paragraph";
+ };
+ /** Whether a formatted element is a paragraph style marked as the default for paragraphs */
+ var isDefaultParagraphStyle = (child) => {
+ const attributes = isParagraphStyle(child) ? attributesOf(child) : void 0;
+ return (attributes === null || attributes === void 0 ? void 0 : attributes["w:default"]) !== void 0 && ![
"0",
"false",
"off"
@@ -23557,9 +23597,10 @@ MAX: 9026 };
/**
* Writes the styles in the schema's order: the document defaults, the latent styles, then the styles. A style id
* can only be used once, so a style replaces an earlier one with its id. That way external styles replace docx's
- * default styles, and paragraph and character styles replace the default and imported ones. Of several document
- * defaults, or several latent styles, the last is kept. Normal is marked as the default paragraph style when no
- * style is.
+ * default styles, and paragraph and character styles replace the default and imported ones. docx's TOC 1 to TOC 9
+ * styles are also replaced by a paragraph style with their name, such as a template's in another language, with an id
+ * of its own. Of several document defaults, or several latent styles, the last is kept. Normal is marked as the
+ * default paragraph style when no style is.
*/
prepForXml(context) {
const xml = super.prepForXml(context);
@@ -23567,15 +23608,14 @@ MAX: 9026 };
if (!Array.isArray(children)) return xml;
const named = (name) => children.filter((child) => nameOf$1(child) === name);
const ids = children.map((child) => nameOf$1(child) === "w:style" ? styleIdOf(child) : void 0);
- const kept = children.filter((child, index) => ![
+ const unique = children.filter((child, index) => ![
"_attr",
"w:docDefaults",
"w:latentStyles"
].includes(nameOf$1(child)) && (ids[index] === void 0 || ids.lastIndexOf(ids[index]) === index));
- const styles = kept.some((child) => nameOf$1(child) === "w:style" && isDefaultParagraphStyle(child)) ? kept : kept.map((child) => {
- var _attributesOf$wType, _attributesOf2;
- return nameOf$1(child) === "w:style" && styleIdOf(child) === "Normal" && ((_attributesOf$wType = (_attributesOf2 = attributesOf(child)) === null || _attributesOf2 === void 0 ? void 0 : _attributesOf2["w:type"]) !== null && _attributesOf$wType !== void 0 ? _attributesOf$wType : "paragraph") === "paragraph" ? markedAsDefault(child) : child;
- });
+ const otherNames = new Set(unique.filter((child) => isParagraphStyle(child) && !isDefaultTableOfContentsStyle(child)).map(styleNameOf));
+ const kept = unique.filter((child) => !isDefaultTableOfContentsStyle(child) || !otherNames.has(styleNameOf(child)));
+ const styles = kept.some(isDefaultParagraphStyle) ? kept : kept.map((child) => isParagraphStyle(child) && styleIdOf(child) === "Normal" ? markedAsDefault(child) : child);
return { "w:styles": [
...named("_attr"),
...named("w:docDefaults").slice(-1),
@@ -23765,20 +23805,43 @@ MAX: 9026 };
//#endregion
//#region src/file/styles/factory.ts
/**
- * docx's default styles, each under the option of `styles.default` that configures it, and Normal.
+ * How much more Word indents each level of a table of contents than the level above, in twips: the size of the Normal
+ * style's font. docx's Normal has no formatting, so that is the document's default size, or 10 points without one.
+ */
+ var tableOfContentsLevelIndentOf = (options) => {
+ var _options$document;
+ const size = (_options$document = options.document) === null || _options$document === void 0 || (_options$document = _options$document.run) === null || _options$document === void 0 ? void 0 : _options$document.size;
+ if (size === void 0) return 200;
+ return Math.round(typeof size === "number" ? size * 10 : universalMeasureToTwips(size));
+ };
+ /** The styles of the entries at each level of a table of contents, as Word adds them */
+ var createTableOfContentsStyles = (levelIndent) => ({
+ tableOfContents1: new TableOfContentsStyle(1, levelIndent),
+ tableOfContents2: new TableOfContentsStyle(2, levelIndent),
+ tableOfContents3: new TableOfContentsStyle(3, levelIndent),
+ tableOfContents4: new TableOfContentsStyle(4, levelIndent),
+ tableOfContents5: new TableOfContentsStyle(5, levelIndent),
+ tableOfContents6: new TableOfContentsStyle(6, levelIndent),
+ tableOfContents7: new TableOfContentsStyle(7, levelIndent),
+ tableOfContents8: new TableOfContentsStyle(8, levelIndent),
+ tableOfContents9: new TableOfContentsStyle(9, levelIndent)
+ });
+ /**
+ * docx's default styles, each under the option of `styles.default` that configures it, and Normal, the default table
+ * style and the TOC 1 to TOC 9 styles.
*
* @internal
*/
var createDefaultStyles = (options = {}) => {
- var _options$document;
- return {
+ var _options$document2;
+ return _objectSpread2(_objectSpread2({
normal: new StyleForParagraph({
id: "Normal",
name: "Normal",
quickFormat: true
}),
normalTable: new NormalTableStyle(),
- document: new DocumentDefaults((_options$document = options.document) !== null && _options$document !== void 0 ? _options$document : {}),
+ document: new DocumentDefaults((_options$document2 = options.document) !== null && _options$document2 !== void 0 ? _options$document2 : {}),
title: new TitleStyle(_objectSpread2({ run: { size: 56 } }, options.title)),
heading1: new Heading1Style(_objectSpread2({ run: {
color: "2E74B5",
@@ -23801,7 +23864,8 @@ MAX: 9026 };
strong: new StrongStyle(_objectSpread2({ run: { bold: true } }, options.strong)),
listParagraph: new ListParagraph(options.listParagraph || {}),
caption: new CaptionStyle(options.caption || {}),
- bibliography: new BibliographyStyle(options.bibliography || {}),
+ bibliography: new BibliographyStyle(options.bibliography || {})
+ }, createTableOfContentsStyles(tableOfContentsLevelIndentOf(options))), {}, {
hyperlink: new HyperlinkStyle(options.hyperlink || {}),
footnoteReference: new FootnoteReferenceStyle(options.footnoteReference || {}),
footnoteText: new FootnoteText(options.footnoteText || {}),
@@ -23810,7 +23874,7 @@ MAX: 9026 };
endnoteText: new EndnoteText(options.endnoteText || {}),
endnoteTextChar: new EndnoteTextChar(options.endnoteTextChar || {}),
lineNumber: new LineNumberStyle(options.lineNumber || {})
- };
+ });
};
/**
* Factory for creating default document styles.
@@ -37558,7 +37622,32 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
const name = (_style$elements = style.elements) === null || _style$elements === void 0 || (_style$elements = _style$elements.find((element) => element.name === "w:name")) === null || _style$elements === void 0 || (_style$elements = _style$elements.attributes) === null || _style$elements === void 0 ? void 0 : _style$elements["w:val"];
return name === void 0 ? void 0 : String(name).toLowerCase();
};
- var formatDefaultStyles = (context) => new Map(Object.values(createDefaultStyles()).map((style) => toJson(stringifyXmlable(formatter.format(style, context))).elements[0]).filter((style) => style.name === "w:style").map((style) => [idOf(style), style]));
+ var childOf = (element, name) => {
+ var _element$elements;
+ return element === null || element === void 0 || (_element$elements = element.elements) === null || _element$elements === void 0 ? void 0 : _element$elements.find((child) => child.name === name);
+ };
+ /** The size of the font that run properties give, in half points, as Word writes it */
+ var sizeIn = (runProperties) => {
+ var _childOf;
+ const size = Number((_childOf = childOf(runProperties, "w:sz")) === null || _childOf === void 0 || (_childOf = _childOf.attributes) === null || _childOf === void 0 ? void 0 : _childOf["w:val"]);
+ return Number.isNaN(size) ? void 0 : size;
+ };
+ /**
+ * The size of the font of a template's Normal style, in half points: its own, or else the document's default. Word
+ * indents each level of a table of contents by it, so docx's TOC styles are indented by it too. Normal is the style that
+ * the styles added are based on: the template's with its id, or else with its name.
+ */
+ var normalSizeOf = (elements) => {
+ var _styles$find, _sizeIn;
+ const styles = elements.filter((element) => element.name === "w:style");
+ const normal = (_styles$find = styles.find((style) => idOf(style) === "Normal")) !== null && _styles$find !== void 0 ? _styles$find : styles.find((style) => {
+ var _style$attributes2;
+ return ((_style$attributes2 = style.attributes) === null || _style$attributes2 === void 0 ? void 0 : _style$attributes2["w:type"]) === "paragraph" && nameOf(style) === "normal";
+ });
+ const defaults = elements.find((element) => element.name === "w:docDefaults");
+ return (_sizeIn = sizeIn(childOf(normal, "w:rPr"))) !== null && _sizeIn !== void 0 ? _sizeIn : sizeIn(childOf(childOf(defaults, "w:rPrDefault"), "w:rPr"));
+ };
+ var formatDefaultStyles = (context, normalSize) => new Map(Object.values(createDefaultStyles({ document: { run: { size: normalSize } } })).map((style) => toJson(stringifyXmlable(formatter.format(style, context))).elements[0]).filter((style) => style.name === "w:style").map((style) => [idOf(style), style]));
/**
* Creates the writer of the styles that patches use.
*
@@ -37572,12 +37661,13 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
*/
var patchStyles = (parts, createContext) => {
var _parts$get;
- const templateStyles = getFirstLevelElements((_parts$get = parts.get(STYLES_PATH)) !== null && _parts$get !== void 0 ? _parts$get : {}, "w:styles").filter((element) => element.name === "w:style");
+ const templateElements = getFirstLevelElements((_parts$get = parts.get(STYLES_PATH)) !== null && _parts$get !== void 0 ? _parts$get : {}, "w:styles");
+ const templateStyles = templateElements.filter((element) => element.name === "w:style");
const templateIds = new Set(templateStyles.map(idOf));
let defaultStyles;
const defaultStyleOf = (id) => {
var _defaultStyles;
- (_defaultStyles = defaultStyles) !== null && _defaultStyles !== void 0 || (defaultStyles = formatDefaultStyles(createContext(STYLES_PATH)));
+ (_defaultStyles = defaultStyles) !== null && _defaultStyles !== void 0 || (defaultStyles = formatDefaultStyles(createContext(STYLES_PATH), normalSizeOf(templateElements)));
return defaultStyles.get(id);
};
const missingIds = /* @__PURE__ */ new Set();
@@ -37586,8 +37676,8 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
const style = templateIds.has(id) ? void 0 : defaultStyleOf(id);
if (style === void 0) return id;
const sameStyle = templateStyles.find((templateStyle) => {
- var _templateStyle$attrib, _style$attributes2;
- return ((_templateStyle$attrib = templateStyle.attributes) === null || _templateStyle$attrib === void 0 ? void 0 : _templateStyle$attrib["w:type"]) === ((_style$attributes2 = style.attributes) === null || _style$attributes2 === void 0 ? void 0 : _style$attributes2["w:type"]) && nameOf(templateStyle) === nameOf(style);
+ var _templateStyle$attrib, _style$attributes3;
+ return ((_templateStyle$attrib = templateStyle.attributes) === null || _templateStyle$attrib === void 0 ? void 0 : _templateStyle$attrib["w:type"]) === ((_style$attributes3 = style.attributes) === null || _style$attributes3 === void 0 ? void 0 : _style$attributes3["w:type"]) && nameOf(templateStyle) === nameOf(style);
});
if (sameStyle !== void 0) return idOf(sameStyle);
missingIds.add(id);
diff --git a/usage/table-of-contents.md b/usage/table-of-contents.md
index c29d01e6a1..c3637710c0 100644
--- a/usage/table-of-contents.md
+++ b/usage/table-of-contents.md
@@ -50,7 +50,7 @@ The entries are written for the paragraphs the options include, as Word includes
- `useAppliedParagraphOutlineLevel` (`\u`): paragraphs by their outline level, or their style's
- `entriesFromBookmark` (`\b`): only the paragraphs in the bookmark
-With none of these, the headings Heading 1 to Heading 9 are included. Each entry uses the `TOC1` to `TOC9` paragraph style for its level. When the document doesn't define that style, the entry is indented as Word's is. A Table of Contents of captions or of TC fields (`captionLabel`, `captionLabelIncludingNumbers`, `tcFieldIdentifier` or `tcFieldLevelRange` alone) is left empty for Word to fill in.
+With none of these, the headings Heading 1 to Heading 9 are included. Each entry uses the `TOC1` to `TOC9` paragraph style for its level (see [Styling the entries](#styling-the-entries)). A Table of Contents of captions or of TC fields (`captionLabel`, `captionLabelIncludingNumbers`, `tcFieldIdentifier` or `tcFieldLevelRange` alone) is left empty for Word to fill in.
### Numbered headings
@@ -94,7 +94,9 @@ const doc = new Document({
## Styling the entries
-To change how the entries look, such as their size or spacing, define the `TOC1` to `TOC9` paragraph styles in `paragraphStyles`, with the names `toc 1` to `toc 9`.
+`docx` writes the `TOC1` to `TOC9` paragraph styles as Word adds them: with 5 points of space after each entry, and each level indented by the size of the document's font more than the level above, so 10 points with `docx`'s default font, or 11 points with `styles.default.document.run.size` set to `22`. LibreOffice indents the levels with them when it updates the table too.
+
+To change how the entries look, such as their size or spacing, define the `TOC1` to `TOC9` paragraph styles in `paragraphStyles`, with the names `toc 1` to `toc 9`. A paragraph style named `toc 1` to `toc 9` in `externalStyles`, such as a template's saved by Word in another language, is used in place of `docx`'s too.
When Word updates the table, it copies the formatting set on a heading's text onto the heading's entry, such as `bold: true` on a `TextRun`. That formatting is set on the entry's text, so it takes priority over the `TOC1` style, and `bold: false` in the style doesn't remove it. Formatting that comes from the heading's style isn't copied.
diff --git a/usage/templates.md b/usage/templates.md
index 92d7ef08a5..2ef4531732 100644
--- a/usage/templates.md
+++ b/usage/templates.md
@@ -439,7 +439,7 @@ const doc = await patchDocument({
fs.writeFileSync("My Document.docx", doc);
```
-A heading has the look of the template's heading style. Word only saves the styles that a document uses, so a template may not have it yet, and Word would show the heading as body text. A heading style that the template doesn't have, or another of docx's styles such as `ListParagraph` or `Hyperlink`, is added to it as a `Document` writes it. To give the headings a look of your own, change the heading style in the template in Word, which saves it with the template.
+A heading has the look of the template's heading style. Word only saves the styles that a document uses, so a template may not have it yet, and Word would show the heading as body text. A heading style that the template doesn't have, or another of docx's styles such as `ListParagraph` or `Hyperlink`, is added to it as a `Document` writes it. The `TOC1` to `TOC9` styles of the entries of a table of contents indent each level by the size of the template's Normal font, as Word's do. To give the headings a look of your own, change the heading style in the template in Word, which saves it with the template.
A template saved by Word in another language has its styles under other ids, such as `berschrift1` for Heading 1 in German. A heading is given the template's style of the same name, such as `heading 1`, so it has the template's look there too.
The unique identifier for this abstract numbering definition.