<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../goods/late.xsl" type="text/xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
	<title>LateXSL arrays</title>
	<meta name="author" content="Steve White" />
	<meta http-equiv="content-type"
		content="application/xhtml+xml; charset=UTF-8" />
	<link rel="icon" href="favicon.ico" type="image/png" />
	<link rel="stylesheet" href="../goods/latexsl.css" type="text/css"/>
</head>
<body>
<p class="browser-nocss2"><strong>
This document can be viewed properly only in modern browsers
with good support for CSS2 and the full HTML character set.
</strong></p>
<h1><span class="latex-logo"><span class="L">L</span><span class="A">a</span>T<span class="E">e</span>X</span>
	to HTML via XSLT<br />
<small>arrays</small></h1>

<p>The LaTeX array column delimiter '<code>&amp;</code>' used unadorned in
	an embedded formula would be confused with the HTML use of the same character. 
	One solution is to type out the HTML character entity
	'<code>&amp;amp;</code>' for the character:
</p>
<div class="latex">
	\begin{array}[pos]{r|l|c}
		a_{11} &amp; a_{12} &amp; a_{13} \\
		a_{21} &amp; a_{22} &amp; a_{23} \\
		a_{31} &amp; a_{32} &amp; a_{33}
	\end{array}
</div>
<p>The '<code>&amp;</code>' can be used directly by wrapping the whole
	LaTeX formula in a <code>CDATA</code> section:
</p>
<div class="latex">
	<![CDATA[
	\begin{array}[t]{r|l|c}
		a_{11} & a_{12} & a_{13} \\
		a_{21} & a_{22} & a_{23} \\
		a_{31} & a_{32} & a_{33}
	\end{array}
	]]>
</div>

</body>
</html>

