TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a program that generates clickable areas on images with HTML5, taking as input a series of coordinates.

Now what I'd like to do is send to that program a .png of a LaTeX expression (anything, for instance an equation or a sentence) along with the coordinates of the centers of each and every symbols of that expression.

The end goal is to make each symbol clickable separately from one another.

So I've been experimenting for a while to create an algorithm that would, given a latex expression, output the list of the coordinates of the centers of each of its symbols (that's the last piece I need to complete my program). Unfortunately, I couldn't come up with a nice solution.

However, this algorithm has to exist, since those symbols are indeed all properly located when one compiles a latex expression into a .png.

I've been searching in the TeX source code, with no success.

share|improve this question

closed as off-topic by Jubobs, Svend Tveskæg, Jesse, Peter Jansson, Thorsten Jan 11 '14 at 10:13

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Jubobs, Svend Tvesk√¶g, Jesse, Peter Jansson, Thorsten
If this question can be reworded to fit the rules in the help center, please edit the question.

Are you actually speaking of MathJax? If yes, we are not the right site. Your question could better be answered on MathJaX Help Forums. – Speravir Jan 11 '14 at 5:19
The required coordinates are probably pixels, right? – Werner Jan 11 '14 at 5:21