I recommend you look into LaTeX.Versions are available for Windows and Linux.Takes some learning, but it's a permanent solution.Used extensively by virtually every university.