l e m m s t e r . d e
  • Home
  • impressum
  • talks
  • Categories
  • Tags
  • Archives

Export to docbook xml with LyX (on Ubuntu 12.10)

  1. Install LyX as well as the dependencies need to author docbook in LyX

    1. apt-get install docbook-dsssl sgmltools-lite jade docbook docbook-xml lyx jadetex
  2. It is commonly written on the web to tell LyX where to find the docbook catalogs by explicitly exporting SGML_CATALOG_FILES. This turned out to be not needed on Ubuntu and in fact caused sgmltools to fail if set (IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet for w3m Text//EN"]).

  3. Start LyX and hit Tools⇒Reconfigure followed by a LyX restart

  4. At this stage create a new document foo.lyx and change the document class to “Docbook articel (SGML)”

    1. Document => Settings => Document class
  5. Save the document and check the DVI preview (CTRL+R)

  6. Export => Docbook (XML) exports foo.lyx to foo.xml which is valid docbook xml


Published

Feb 26, 2013

Category

hacks

Contact

  • Powered by Pelican. Theme: Elegant