Edit online

Associating a CSS to a Document

There are several ways to associate the CSS to your document:
  • Specify it as a PI at the beginning of the XML document:
    <?xml-stylesheet type="text/css" href="my-style.css" ?>
  • Specify it in the meta section of the HTML document:
    <link rel="stylesheet" type="text/css" href="my-style.css" />
  • Specify it from the command line using the -css argument:
    chemistry -in my-doc.xml -css my-style.css -out my-doc.pdf 
Note: The rules from the CSS file indicated using the -css command-line argument take precedence over the ones from CSS files referred from the input document.