I am writing a book and I want to post it online (into various web pages) and also want to have a hardcopy. The book has a lot of figures and math equations. How can I prepare the posts to minimize formatting?
Currently, I am writing using LaTeX, but I understand it is not efficient at all, because copy and paste from a text file and then formatting for a web page take a lot of time.
Is there any better way?