diff --git a/MANUAL.txt b/MANUAL.txt index 2177cf926..38890c599 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -3827,6 +3827,54 @@ To disable highlighting, use the `--no-highlight` option. [highlighting-kate]: https://github.com/jgm/highlighting-kate +Custom Styles in Docx Output +============================ + +By default, pandoc's docx output applies a predefined set of styles for +blocks such as paragraphs and block quotes, and uses largely default +formatting (italics, bold) for inlines. This will work for most +purposes, especially alongside a `reference.docx` file. However, if you +need to apply your own styles to blocks, or match a preexisting set of +styles, pandoc allows you to define custom styles for blocks and text +using `div`s and `span`s, respecitively. + +If you define a `div` or `span` with the attribute `custom-style`, +pandoc will apply your specified style to the contained elements. So, +for example, + + Get out, he said. + +would produce a docx file with "Get out," styled with character +style `Emphatically`. Similarly, + + Dickinson starts the poem simply: + +