I'll be honest. I didn't think the project through in full before I began, so now I have a dilemma and need your advice.
The project is that I have a huge manual written in good old HTML/CSS. Everything is in subdirectories according to category/subcategory. Sometimes, a section will will link to another one -- sometimes in the same directory and sometimes in a whole new section with links like ../../foo/bar/page.html. Now, I'm looking at the code, and although it is nice looking with highlighted boxes for tips next to some parts ... there is just one problem -- it's really difficult to convert the html to other formats, like PDF with a nice ToC and navigator links. Also, the manual links to external sites for more information, and those URLs don't show up in a converted document.
What I would like, is one source, hopefully in TeX format, and be able to generate any format I want. Is it possible to convert the CSS stylings to a TeX template format, and then convert the html to use that? I am hoping to keep it as individual pages. I am thinking that the subcategories would be a "section" of a book? When I generate HTML, I would like the menu system on the left hand side that links the pages together, the way I have it, but when I output to PDF, it would have all the PDF formatting, like page numbers. Would it be possible to have the links that go to another part of the manual be converted to page numbers in parenthesis after the link, and links to outside sites be converted to footnotes of the current page that the link is on with a number in superscript next to the link?
Or, this is what I am hoping you don't say ... do I need to start from scratch?
Thanks for any help. I'm fairly new to LaTeX, so please explain it easily for me to get.


-Jon
PS. I'm really tired right now so I may have forgotten to say something. That's usually the case. I really need a good nights rest, but I keep thinking about what I need to do for this.