Edit online


How can I add multiple buttons, each showing a different visualization mode of the same document in Author mode?


In the toolbar in Author mode, there is a Styles drop-down menu that contains alternate CSS styles for the same document. To add an alternate CSS stylesheet, open the Preferences dialog box (Options > Preferences), go to Document Type Association, select the document type associated with your documents and click 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 offered for the DITA document type is located here (by default):
If you open it, you will see that it imports the main CSS and then adds selectors of its own.