Page 1 of 1

Global CSS file for DocBook project without editing the head

Posted: Wed Oct 16, 2013 12:23 pm
by cube
Hi,

it is possible to apply a CSS for the author mode without editing the header of the XML files?

Snippet from the personal.xml example

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE personnel PUBLIC "PERSONNEL" "personal.dtd">
<?xml-stylesheet type="text/css" href="personal.css"?>
<personnel/
I am not allowed to add my custom styles to the XML files. :cry:

Thanks!
cube

Re: Global CSS file for DocBook project without editing the

Posted: Wed Oct 16, 2013 12:34 pm
by Radu
Hi,

In the Oxygen Preferences->"Document Type Association" page you can edit the Docbook (4 or 5) document type association. In the "Document Type Edit" dialog you go to the Author tab which has a CSS tab. That tab links to the default CSS used for Docbook editing located in:

OXYGEN_INSTALL_DIR/frameworks/docbook/css/docbook.css

You could either edit that CSS and add in it an import to your custom CSS or add in your custom CSS an import to the main "docbook.css" and refer to your custom CSS in the document type CSS list.

Regards,
Radu