Semi related to the quoted note.
I wonder if one could use asciidocs + latex and come up with an equation reference system that works close to native latex documents.
Something gives me a hunch that asciidoc might be more suitable than other alternatives tried before, for this purpose.