简体   繁体   中英

validating html files with latex commands

I'm using latex commands in my html code. When I validate the at w3c validator, it is giving me inavlid markup message.

Line 105, Column 31: non SGML character number 12

    \begin{equation}(x^{2})^{4+(frac{1}{5})}\end{equation}

Is there a way to pass validation? Can I ignore this error?

Put your LaTex code into a CDATA block:

<![CDATA[
\begin{equation}(x^{2})^{4+(frac{1}{5})}\end{equation}
]]>

non SGML character number 12 means that you have a control character in your html source. This is likely to be a mistake. Try to spot this character and delete it. Alternatively, retype the line that is causing you the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM