feature/1545  (topic level styling for pdf2 plugin)

My first github pull-request - hope I've done it right.

The branch also includes some other changes I needed to make in order to get the 'Build' and 'Usage' stages to work  when I tested out the plugin.

Pointers to how to create tests for this would be welcome.

Thanks,

Nigel