David Kastrup wrote:
Brion Vibber brion@pobox.com writes:
Saying it's easy is nice, providing code to do it is better. ;)
What do you mean, "to do it"?
He means, send us a patch to the MediaWiki software that implements your suggestion.
With preview.sty, the output is written into a single line,
Either I'm dumb, or you have never mentioned how to get it (what anyway? dvips or what?) to output this "single line".
It should be a one-liner in most scripting languages.
Often the difficult thing is not to write the one line, but to figure out where in the code to put it.
Additionally, you're forgetting that the LaTeX is (obviously) not rendered and re-rendered and re-re-rendered for every single pageview. The images are cached. Hence you would also need to come up with a way to cache these extra values, and then tell the parser to output them in the right place.
Programming that in PHP into the MediaWiki software is what Brion meant by "the code to do it".
Timwi