I work on a lot of language-based projects, and the larger ones require semi-formal specification documents. In the past, I've used OpenOffice.org or just plain HTML for these documents, and manually converted them to whatever other formats were needed. For my current project, however, I need to generate output in several formats (HTML, PDF, man page, and text, minimally) and I'm looking for a document markup or page-description language that can handle multiple output formats and the usual programming-documentation-related formatting requirements:
- Section delimiters
- Internal and external links
- Named character and paragraph styles
- Automatic section numbering
- Automatic table-of-contents generation
- Unicode support
I need a high degree of control over the generated output, for the sake of visual consistency. This seems like a pretty reasonable set of requirements, but offhand I don't know of a unified tool that really suits the job. I was thinking of making one, and if that becomes necessary then this question serves a dual purpose for gauging interest.