bringmewater@gmail.com wrote:
Quote:
Is there any software that will let me write books and export to both
PDF and HTML with automatically generated TOC, Index (with page numbers
for PDF) and hyperlinks?
|
Yes, loads. What's best depends on how much you're doing, how much
you're re-working afterwards, what your books are and what your skills
are.
The easy route here is something very like
XML -[XSLT transform] -XSL:FO -[Apache FOP] -PDF
XML -[XSLT transform] -HTML
Now you don't have to do it this way. There are any number of piss-poor
overpriced commercial products that will do it badly for you instead.
If you spend money on this, chances are you're wasting it _and_ you're
getting a bad result.
Then there are the LaTeX nutters with their beards and their equations
and their sandals and their Erdos numbers and their beards....
So you're going to do it with XML. Only question is, what to use as a
schema? There are three possible choices with some merit:
* Docbook. It's big and ugly, but it's already there and there's a
stack of XSLT based on it, especially for ToCs
* XHTML. Has a very obvious easy translation to HTML for web
publishing. Isn't even too bad for structuring content, so long as you
also pre-define a large set of class atribute values and the set of
elements it's acceptable to use them on within your system.
* Open Office and wherever desktop XML is going. Not there yet, but
it's one to watch for the future.
Oh, and avoid _any_ M$oft protocol anywhere near this. You really don't
want to look in that particular pit of weevils.