From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: feature request: save LaTeX as title for ltxpng html images Date: Fri, 26 Mar 2010 21:42:16 +0100 Message-ID: References: <87aatv2kkj.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvHVU-0002Ly-0w for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:55:56 -0400 Received: from [140.186.70.92] (port=41351 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvHVR-0002LG-9i for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvHVN-0005gL-Co for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:55:50 -0400 Received: from mail-ew0-f227.google.com ([209.85.219.227]:32901) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvHVN-0005fy-2f for emacs-orgmode@gnu.org; Fri, 26 Mar 2010 17:55:49 -0400 Received: by mail-ew0-f227.google.com with SMTP id 27so87964ewy.30 for ; Fri, 26 Mar 2010 14:55:48 -0700 (PDT) In-Reply-To: <87aatv2kkj.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode On Mar 26, 2010, at 4:01 PM, Eric Schulte wrote: > Hi, > > HTML 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