git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Support 9 levels of headers.

Closes #1642.

commitd5086e7bd77e62dbdb6256c7586c7aed0c614d38 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 13 Mar 2017, 21:48 (10 years ago) parent4de4816
2 files changed+66−5
MANUAL.txt+6−5 data/docx/word/styles.xml+60
MANUAL.txt+6−5
@@ -790,11 +790,12 @@ Options affecting specific writers
790790 than modifying the styles used by pandoc: [paragraph]
791791 Normal, Body Text, First Paragraph, Compact, Title,
792792 Subtitle, Author, Date, Abstract, Bibliography, Heading 1,
793− Heading 2, Heading 3, Heading 4, Heading 5, Heading 6, Block
794− Text, Footnote Text, Definition Term, Definition, Caption,
795− Table Caption, Image Caption, Figure, Figure With Caption,
796− TOC Heading; [character] Default Paragraph Font, Body Text
797− Char, Verbatim Char, Footnote Reference, Hyperlink; [table]
793+ Heading 2, Heading 3, Heading 4, Heading 5, Heading 6,
794+ Heading 7, Heading 8, Heading 9, Block Text, Footnote Text,
795+ Definition Term, Definition, Caption, Table Caption,
796+ Image Caption, Figure, Figure With Caption, TOC Heading;
797+ [character] Default Paragraph Font, Body Text Char,
798+ Verbatim Char, Footnote Reference, Hyperlink; [table]
798799 Normal Table.
799800
800801 ODT: For best results, the reference ODT should be a modified
data/docx/word/styles.xml+60
@@ -251,6 +251,66 @@
251251 <w:szCs w:val="24" />
252252 </w:rPr>
253253 </w:style>
254+ <w:style w:type="paragraph" w:styleId="Heading7">
255+ <w:name w:val="Heading 7" />
256+ <w:basedOn w:val="Normal" />
257+ <w:next w:val="BodyText" />
258+ <w:uiPriority w:val="9" />
259+ <w:unhideWhenUsed />
260+ <w:qFormat />
261+ <w:pPr>
262+ <w:keepNext />
263+ <w:keepLines />
264+ <w:spacing w:before="200" w:after="0" />
265+ <w:outlineLvl w:val="6" />
266+ </w:pPr>
267+ <w:rPr>
268+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
269+ <w:color w:val="4F81BD" w:themeColor="accent1" />
270+ <w:sz w:val="24" />
271+ <w:szCs w:val="24" />
272+ </w:rPr>
273+ </w:style>
274+ <w:style w:type="paragraph" w:styleId="Heading8">
275+ <w:name w:val="Heading 8" />
276+ <w:basedOn w:val="Normal" />
277+ <w:next w:val="BodyText" />
278+ <w:uiPriority w:val="9" />
279+ <w:unhideWhenUsed />
280+ <w:qFormat />
281+ <w:pPr>
282+ <w:keepNext />
283+ <w:keepLines />
284+ <w:spacing w:before="200" w:after="0" />
285+ <w:outlineLvl w:val="7" />
286+ </w:pPr>
287+ <w:rPr>
288+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
289+ <w:color w:val="4F81BD" w:themeColor="accent1" />
290+ <w:sz w:val="24" />
291+ <w:szCs w:val="24" />
292+ </w:rPr>
293+ </w:style>
294+ <w:style w:type="paragraph" w:styleId="Heading9">
295+ <w:name w:val="Heading 9" />
296+ <w:basedOn w:val="Normal" />
297+ <w:next w:val="BodyText" />
298+ <w:uiPriority w:val="9" />
299+ <w:unhideWhenUsed />
300+ <w:qFormat />
301+ <w:pPr>
302+ <w:keepNext />
303+ <w:keepLines />
304+ <w:spacing w:before="200" w:after="0" />
305+ <w:outlineLvl w:val="8" />
306+ </w:pPr>
307+ <w:rPr>
308+ <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
309+ <w:color w:val="4F81BD" w:themeColor="accent1" />
310+ <w:sz w:val="24" />
311+ <w:szCs w:val="24" />
312+ </w:rPr>
313+ </w:style>
254314 <w:style w:type="paragraph" w:styleId="BlockText">
255315 <w:name w:val="Block Text" />
256316 <w:basedOn w:val="BodyText" />