From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uriel Avalos Subject: Bug: LaTeX fragments export to invalid XHTML Date: Tue, 23 Nov 2010 09:45:28 -0500 Message-ID: <15613.0510069945$1290523983@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35871 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKu7W-0006gw-M9 for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 09:45:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKu7Q-0001Rv-KW for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 09:45:22 -0500 Received: from smtp105.prem.mail.ac4.yahoo.com ([76.13.13.44]:31760) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PKu7Q-0001Rr-FI for emacs-orgmode@gnu.org; Tue, 23 Nov 2010 09:45:16 -0500 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: emacs-orgmode@gnu.org This is the sample file: * Hello world \begin{align*} x&=\frac{-b^2\pm\sqrt{b^2-4ac}}{2a} \end{align*} When you validate the resulting HTML file at the w3c site (http://validator.w3.org/check), it fails the check. If you recall, when org-export-with-latex-fragments is set to dvipng, it produces PNG images with the ALT attribute equal to the corresponding LaTeX equation. In this case, the resulting IMG tag is: \begin{align*}x&=\frac{-b^2\pm\sqrt{b^2-4ac}}{2a}\end{align*} Apparently, you can't have unescaped & (ampersands) in an ALT tag. Thus, the resulting HTML file fails to validate.