Multiple Rendering Modes for the Same Document in Author Mode
Question
How can we add multiple buttons, each showing a different visualization mode of the same document in Author mode?
Answer
In the toolbar of the Author mode there is a Styles drop-down menu that contains alternative CSS styles for the same document. To add an alternative CSS stylesheet, open the Preferences dialog box , go to Document Type Association, select the document type associated with your documents and press Edit. In the Document Type configuration dialog box that appears, go to the Author tab, and in the CSS subtab add references to alternate CSS stylesheets.
For example, one of the alternate CSS stylesheets that we offer for the DITA document type is located here:
[OXYGEN_INSTALL_DIR]/frameworks/dita/css_classed/hideColspec.css
If
you open it, you will see that it imports the main CSS and then adds selectors of
its own.