- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 17 Jun 2011 08:49:10 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/src
In directory hutz:/tmp/cvs-serv5631/src
Modified Files:
syntax.html
Log Message:
Replaced CDATA example. b=11508.
Thanks David Carlisle.
Index: syntax.html
===================================================================
RCS file: /sources/public/html5/markup/src/syntax.html,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- syntax.html 12 May 2011 07:56:05 -0000 1.91
+++ syntax.html 17 Jun 2011 08:49:08 -0000 1.92
@@ -1192,12 +1192,15 @@
<p>The following shows an example of a CDATA section.</p>
<pre>
<annotation encoding="text/latex">
- <![CDATA[\documentclass{article}
- \begin{document}
- \title{E}
- \maketitle
- The base of the natural logarithms, approximately 2.71828.
- \end{document}]]>
+<![CDATA[\documentclass{article}
+\usepackage{amsmath}
+\begin{document}
+The absolute value of $x$:
+\[
+\left|x\right|= \begin{cases}-x& \text{if $x<0$}\\
+ x& \text{otherwise}\end{cases}
+\]
+\end{document}]]>
</annotation></pre>
</div>
</section>
Received on Friday, 17 June 2011 08:49:12 UTC