From: Uriel Avalos <amscopub-mail@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Bug: LaTeX fragments export to invalid XHTML
Date: Tue, 23 Nov 2010 09:45:28 -0500 [thread overview]
Message-ID: <15613.0510069945$1290523983@news.gmane.org> (raw)
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:
<img src="<filenameofPNG>"
alt="\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.
reply other threads:[~2010-11-23 14:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='15613.0510069945$1290523983@news.gmane.org' \
--to=amscopub-mail@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.