Andrew Dunning
0e1764ec61
Remove extra spaces in default reference docx
...
The line breaks are interpreted as whitespace, resulting in extra leading and trailing spaces in the reference file.
2025-01-31 09:13:18 -08:00
Edwin Török
7b5808292c
reference.docx: fix validation error on cnfStyle
...
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 <edwin@etorok.net >
2023-12-17 10:07:10 -08:00
Edwin Török
f48fa9ac17
reference.docx: fix validation error on tblW
...
```
./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 <edwin@etorok.net >
2023-12-17 10:07:10 -08:00
Edwin Török
79204047a5
reference.docx: fix validation error on pStyle
...
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 <edwin@etorok.net >
2023-12-17 10:07:10 -08:00
John MacFarlane
596257f350
Updated reference.docx.
...
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-12-26 22:02:49 -08:00
Nikolay Yakimov
1710c4bd8b
Add unpacked reference data
2015-03-28 10:26:08 -07:00