I sure can't help you with the content, but a bit of advice: use LaTeX for the typesetting. You will be able to use your favourite ASCII editor for the writing, and still get a far more beautiful result than what you get with a word processor.
Here's a short article I wrote showing you how to do just that:
My Documents: LaTeX for the nontechnical user