aboutsummaryrefslogtreecommitdiff
path: root/data/docx
AgeCommit message (Collapse)Author
2025-08-04reference.docx: don't left-align table header rown.west
See #11019. Previously, centering tables in `reference.docx` would leave the header row left-aligned. Why the OOXML 'standard' would allow table elements to be aligned differently from the rest of the table in the first place is anyone's guess.
2025-06-10Update East Asia font theme in styles.xml to minorEastAsiaTomBen
2025-06-10Update language settings in styles.xml for East Asia to Simplified ChineseTomBen
2025-05-13Add footnote block text sampleAndrew Dunning
2025-05-13Remove extra spaces in default reference docxAndrew Dunning
The line breaks are interpreted as whitespace, resulting in extra leading and trailing spaces in the reference file.
2025-01-31Docx title style corrections (#10581)Andrew Dunning
Base Author and Date styles on Title; remove condensed spacing.
2024-12-22Docx writer: restart footnotes by section by default.John MacFarlane
This can be overridden by a final sectPr element in the body of the reference.docx. It will only change things for `--top-level-division=chapter`, since only top-level chapters are put in separate sections. For that use it will mean that footnote numbers start over with each chapter, which is usually what is wanted. Closes #2773.
2024-05-18Cleaned up Abstract Title and Subtitle in default reference docx.John MacFarlane
Center Subtitle, remove color.
2024-04-13reference.docx: use current standard Word theme.John MacFarlane
This includes using the sans-serif font Aptos instead of the serif font Cambria. See #7280.
2024-04-13reference.docx: Remove duplicate DefaultParagraphFont in styles.xml.John MacFarlane
2024-04-13reference.docx: stay closer to Word's current defaults.John MacFarlane
We use the default styles for headings and the title instead of what pandoc was using. See #7280.
2023-12-17reference.docx: fix validation error on w:bCsEdwin Török
``` { "Description": "The element has unexpected child element 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:bCs'.", "Path": { "NamespacesDefinitions": [ "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"" ], "Namespaces": { }, "XPath": "/w:styles[1]/w:style[15]/w:rPr[1]", "PartUri": "/word/styles.xml" }, "Id": "Sch_UnexpectedElementContentExpectingComplex", "ErrorType": "Schema" }, ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on w:bEdwin Török
From OOXMLValidator: ``` { "Description": "The element has unexpected child element 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:b'.", "Path": { "NamespacesDefinitions": [ "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"" ], "Namespaces": { }, "XPath": "/w:styles[1]/w:style[9]/w:rPr[1]", "PartUri": "/word/styles.xml" }, "Id": "Sch_UnexpectedElementContentExpectingComplex", "ErrorType": "Schema" }, ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on doNotTrackMovesEdwin Török
``` { "Description": "The element has unexpected child element 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:doNotTrackMoves'.", "Path": { "NamespacesDefinitions": [ "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"" ], "Namespaces": { }, "XPath": "/w:settings[1]", "PartUri": "/word/settings.xml" }, "Id": "Sch_UnexpectedElementContentExpectingComplex", "ErrorType": "Schema" } ``` According to `wml.xsd` the order is: ``` <xsd:complexType name="CT_Settings"> <xsd:sequence> <xsd:element name="doNotTrackMoves" type="CT_OnOff" minOccurs="0"/> [...] <xsd:element name="footnotePr" type="CT_FtnDocProps" minOccurs="0"/> ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on cnfStyleEdwin Török
Error from OOXMLValidator: ``` { "Description": "The required attribute 'val' is missing.", "Path": { "NamespacesDefinitions": [ "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"" ], "Namespaces": { }, "XPath": "/w:document[1]/w:body[1]/w:tbl[1]/w:tr[1]/w:trPr[1]/w:cnfStyle[1]", "PartUri": "/word/document.xml" }, "Id": "Sch_MissRequiredAttribute", "ErrorType": "Schema" }, ``` This is a bitmask where the first bit means 'first row', which is set as an attribute already. Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on tblWEdwin Török
``` ./tmp/document-pretty.xml:260: element tblW: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblW', attribute '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}w': '0.0' is not a valid value of the union type '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_MeasurementOrPercent'. ``` See http://officeopenxml.com/WPtableWidth.php, there is a disagreement here between standard versions on whether a `%` is required or not when type=`pct`, but the default is 0 when omitted, so just delete this entry. Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on pStyleEdwin Török
There were 2 `pStyle` for `Abstract`: ``` ./tmp/document-pretty.xml:47: element pStyle: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}pStyle': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}keepNext, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}keepLines, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}pageBreakBefore, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}framePr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}widowControl, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}numPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}suppressLineNumbers, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}pBdr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}shd, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tabs ). ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: Fix validation error on tcBordersEdwin Török
According to `wml.xsd` the order must be: ``` <xsd:sequence> <xsd:element name="tcBorders" type="CT_TcBorders" minOccurs="0" maxOccurs="1"/> [...] <xsd:element name="vAlign" type="CT_VerticalJc" minOccurs="0"/> ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error, remove extra >Edwin Török
There was an extra `>` which showed up as "character content" in the XML: ``` /tmp/styles-pretty.xml:113: element rPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}rPr': Character content other than whitespace is not allowed because the content type is 'element-only'. ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on spacingEdwin Török
``` ./tmp/styles-pretty.xml:111: element spacing: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}spacing': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textDirection, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textAlignment, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}textboxTightWrap, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}outlineLvl, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}divId, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}cnfStyle, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}pPrChange ). ``` According to `wml.xsd` `spacing` must be placed before `jc`: ``` <xsd:sequence> <xsd:element name="spacing" type="CT_Spacing" minOccurs="0"/> [...] <xsd:element name="jc" type="CT_Jc" minOccurs="0"/> ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-17reference.docx: fix validation error on qFormatEdwin Török
``` ./tmp/styles-pretty.xml:30: element qFormat: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}qFormat': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}rPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}trPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tcPr, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblStylePr ). ``` According to `wml.xsd` it must come before `pPr`: ``` <xsd:complexType name="CT_Style"> <xsd:sequence> [...] <xsd:element name="qFormat" type="CT_OnOff" minOccurs="0"/> [...] <xsd:element name="pPr" type="CT_PPrGeneral" minOccurs="0" maxOccurs="1"/> ``` Signed-off-by: Edwin Török <[email protected]>
2023-12-08Docx writer: Use different style for block quotes in notes.John MacFarlane
Using "Footnote Block Text" for the style name, so it can be given a different font size if footnotes are. Closes #9243.
2023-03-17Docx writer: include abstract title.John MacFarlane
Closes #8702. Uses localized term for abstract.
2021-05-15docx writer settings.xml:John MacFarlane
- Set zoom to 100% by default. - Align math options more with current Word defaults (e.g. Cambria Math font).
2021-05-15docx writer: Remove rsids from settings.docx.John MacFarlane
Word will add these when revisions are made. But it's pointless to start out with a set of them.
2021-01-12Docx writer: handle table header using styles.John MacFarlane
Instead of hard-coding the border and header cell vertical alignment, we now let this be determined by the Table style, making use of Word's "conditional formatting" for the table's first row. For headerless tables, we use the tblLook element to tell Word not to apply conditional first-row formatting. Closes #7008.
2020-07-22Docx writer: support --number-sections.John MacFarlane
Closes #1413.
2019-11-16Change styles in reference.docx.John MacFarlane
All headings now have a uniform color. Level-1 headings no longer set `w:themeShade="B5"`. Level-2 headings are now 14 point rather than 16 point. Level-3 headings are now 12 point rather than 14 point. Level-4 headings are italic rather than bold. Closes #5820.
2019-11-14Change reference.docx to use more normal block quotes.John MacFarlane
Indented left and right, same font and size. Previously it was unindented, smaller font and different typeface. See #5820.
2018-10-09Docx writer: added framework for custom properties.John MacFarlane
So far, we don't actually write any custom properties, but we have the infrastructure to add this. See #3034.
2017-12-26Updated reference.docx.John MacFarlane
Instead of just "Hello, world", the document now contains exemplars of most of the styles that have an effect on pandoc documents. This makes it easier to see the effect of style changes. Closes #4175.
2017-06-27Removed redundant element from data/docx/word/numbering.xml.John MacFarlane
The elements we need are generated when the document is compiled; this didn't do anything.
2017-05-25Docx writer: Use Table rather than "Table Normal" for table style.John MacFarlane
"Table Normal" is the default table style and can't be modified. Closes #3275, further testing welcome.
2017-05-18Docx writer: Change FigureWithCaption to CaptionedFigure (#3658)Ian
Edit styles.xml as part of the fix for #3656
2017-03-13Docx writer: Support 9 levels of headers.John MacFarlane
Closes #1642.
2015-07-15Reference Docx: Add missing Header 6 style (steel blue)Ophir Lifshitz
Based on Header 4 (bold, steel blue) and Header 5 (italic, steel blue)
2015-07-15Reference Docx: Correct outlineLvl for Header stylesOphir Lifshitz
Not sure if this actually affects anything
2015-03-30Merge pull request #2035 from lierdakil/issue2031John MacFarlane
Docx Writer/Reference: Add keepNext to objects w/ captions
2015-03-29Add toc heading style to reference.docxNikolay Yakimov
2015-03-29Reference Docx: Add keepNext to table captionsNikolay Yakimov
2015-03-29Docx Writer: Add a style to figure imagesNikolay Yakimov
Figures with empty captions use style "Figure" Figures with nonempty captions use style "Figure with Caption", which is based on "Figure", and additionally has keepNext set.
2015-03-29Reference Docx: update word/footnotes.xmlNikolay Yakimov
2015-03-28Add unpacked reference dataNikolay Yakimov