emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] feature request: save LaTeX as title for ltxpng html image


From: Carsten Dominik
Subject: Re: [Orgmode] feature request: save LaTeX as title for ltxpng html images
Date: Fri, 26 Mar 2010 21:42:16 +0100


On Mar 26, 2010, at 4:01 PM, Eric Schulte wrote:

Hi,

HTML <img> tags allow both alternate text (rendered when the image can't
be rendered), as well as titles which show as tooltips on hover.  I
wonder if it would be difficult to place the text latex used in
generating an image into these two fields. If not then I at least would
find it useful.

It is not trivial, but not too hard either.

It is not trivial because Org first produces the images and inserts org-style links. Later, in a second step, these links are replaced (formatted for HTML). One way to solve this is that `org-format-latex' will add this information as text properties to the link. Then later, when the HTML formatting is done, the text property could be retrieved and converted into the attributes you are mentioning.

You have worked on org-format-latex before, I think this should be relatively easy for you.

- Carsten





reply via email to

[Prev in Thread] Current Thread [Next in Thread]