Custom Styles

To get text styling that is not supported directly by Sphinx from Word, you need to create a Sphinx role and a CSS style using the option ‘userStyle=stylename CSS attribute’.
You can use your style (or another style class defined in your CSS files) in two ways: in-line and on a paragraph.

Custom styles – inline

If (for example) you want to have some crossed out text, you can do this by putting the text in back-quotes (``) and prefixing with :stylename:.
The strikethrough style is defined with:

userStyle=strikethrough text-decoration: line-through;

Custom styles – paragraph

To make the following paragraph have a particular style, put a paragraph with the Note style:

class:(style)

Overriding CSS values

If you want to override a CSS value to change some setting (eg font color), you can use the Sphinx from Word option ‘css=CSS definition’. The CSS definition will be added to your CSS file.

Note

No syntax checking is done on the CSS definition.
The easiest way to find out which style you want to override is to load your site in a modern web-browser and right click on the area you want to change and Inspect the element in question.