Hello,
You need to associate a class, id or tag to the style and use the strictWordStyles option is some to overwrite Word styles is needed.
We recommend you to check the examples available on http://www.phpdocx.com/documentation/introduction/html-to-word-PHP ( Using native Word formatting with HTML). They use embedHtml but the same applies to replaceVariableByHTML.
Regards.