W3C home > Mailing lists > Public > public-html-commits@w3.org > June 2011

html5/markup/src syntax.html,1.91,1.92

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 17 Jun 2011 08:49:10 +0000
To: public-html-commits@w3.org
Message-Id: <E1QXUjm-0001XR-PF@lionel-hutz.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>
 &lt;annotation encoding="text/latex">
-  &lt;![CDATA[\documentclass{article}
-  \begin{document}
-  \title{E}
-  \maketitle
-  The base of the natural logarithms, approximately 2.71828.
-  \end{document}]]&gt;
+&lt;![CDATA[\documentclass{article}
+\usepackage{amsmath}
+\begin{document}
+The absolute value of $x$:
+\[
+\left|x\right|= \begin{cases}-x&amp; \text{if $x&lt;0$}\\
+                              x&amp; \text{otherwise}\end{cases}
+\]
+\end{document}]]&gt;
 &lt;/annotation></pre>
    </div>
  </section>
Received on Friday, 17 June 2011 08:49:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 June 2011 08:49:14 GMT