Re: Docbook notes
Jean Jordaan <jean-kb4xc5yObU3kQYj/0HfcvhBnub05S5/[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
> I suppose LyX comes close. I should try it out when I have some time. That's what I also always think, but I was always disappointed. For me, nothing comes close to editing XML in Vim, with Stephen Riehm's bracketing macros :)) For me, this is also true of the various StructuredText options. I might write drafts in STX, just so that I can write w/o worrying about tags. But once the text has taken shape, I would prefer to generate DocBook from that and switch to editing the DocBook. The XML version will always be the richer version. For example, I would want to add an index at some point. With the XML version, I would go through the text adding <indexterm> tags, and the index will be generated automatically upon processing. From http://cyberelk.net/tim/docbook/selfdocbookx/indexing.html """ Adding an index to your document is easy; the DocBook XSL stylesheets automatically cross-reference your tagged index words to generate the page numbers in the index section. For example, in the source XML of this document you'll see that the index section at the end is indicated by just “<index />”. """ That's from another nice doc, by the way: "The Selfdocbook (XML edition) is a self-documenting introduction to DocBook DocBook (XML) book. It includes its own DocBook XML source in the appendix, and so can be used to learn DocBook by example." > Can it also read docbook files? I can't even find a reference to > writing docbook on their site. Here's a HowTo: DocBook with LyX http://bgu.chez.tiscali.fr/doc/db4lyx/ From that: http://bgu.chez.tiscali.fr/doc/db4lyx/xml-overview.html#id2705103 """ Importing XML files To import XML file into LyX, you can use the DB2LyX set of stylesheets, that translate any XML file to a LyX-1.1.6 file compliant format. [...] LyX version 1.2.0 is expected to be able to export as XML DocBook, and even import an XML DocBook document. """ But like I said, I'm sticking with Vim :) -- Jean Jordaan http://www.upfrontsystems.co.za ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01