> I have initial success in doing this and I hope to complete this > soon. However, I would love to understand how mathematical > capabilities of groff can be made as good as that of latex.
Can you be more explicit? What are you missing, what would you like to see? In general, while groff's eqn preprocessor has implemented a lot of TeX's mathematical capabilities, you will never have the same level of automatic positioning as with TeX. > Also, how can I do syntax highlighting? Should I write custom > scripts to format my piece of code? Syntax highlighting on the input or the output side? Werner