XED script w2x_install_dir/xed/finish-styles.xed
has a optional custom-styles-url-or-file parameter which makes it easy customizing the automatically generated CSS styles.
This parameter may be used to specify the location of a CSS file. The custom CSS styles found in specified file are simply appended to the automatically generated CSS styles. Example:
Example:
w2x -pu edit.finish-styles.custom-styles-url-or-file customize\custom.css¬ manual.docx out\manual_restyled.html
where customize\custom.css
contains:
body { font-family: sans-serif; } .p-Heading1, .p-Heading2, .p-Heading3, .p-Heading4, .p-Heading5, .p-Heading6 { font-family: serif; color: #17365D; padding: 1pt; border-bottom: 1pt solid #4F81BD; margin-bottom: 10pt; margin-left: 0pt; text-indent: 0pt; } .p-Heading1 { border-bottom-width: 2pt; } ... .c-FootnoteReference, .c-EndnoteReference { font-size: smaller; }