XED script w2x_install_dir/xed/finish-styles.xed
has a optional css-uri parameter which allows to specify the CSS file where all CSS rules, whether automatically generated or custom, are to be saved.
Same example as above but using an external CSS file rather than embedded CSS styles:
w2x -p edit.finish-styles.css-uri manual_restyled_css/manual.css¬ -pu edit.finish-styles.custom-styles-url-or-file customize\custom.css¬ manual.docx out\manual_restyled.html
All the CSS styles, whether automatically generated or the custom ones found in customize\custom.css
, end up in manual_restyled_css\manual.css
. Moreover, out\manual_restyled.html
contains a link to manual_restyled_css\manual.css
.
<link href="manual_restyled_css/manual.css" rel="stylesheet" type="text/css"/>