1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<meta name="generator" content="AsciiDoc 8.5.0" />
7
<title>LaTeXMathML Formulae</title>
8
<style type="text/css">
10
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
12
border: 1px solid red;
17
margin: 1em 5% 1em 5%;
22
text-decoration: underline;
42
h1, h2, h3, h4, h5, h6 {
44
font-family: sans-serif;
51
border-bottom: 2px solid silver;
69
border: 1px solid silver;
88
font-family: sans-serif;
94
span#revnumber, span#revdate, span#revremark {
95
font-family: sans-serif;
99
font-family: sans-serif;
101
border-top: 2px solid silver;
107
padding-bottom: 0.5em;
111
padding-bottom: 0.5em;
116
margin-bottom: 1.5em;
118
div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
119
div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
120
div.admonitionblock {
122
margin-bottom: 1.5em;
124
div.admonitionblock {
126
margin-bottom: 2.5em;
129
div.content { /* Block element content. */
133
/* Block element titles. */
134
div.title, caption.title {
136
font-family: sans-serif;
140
margin-bottom: 0.5em;
146
td div.title:first-child {
149
div.content div.title:first-child {
152
div.content + div.title {
156
div.sidebarblock > div.content {
158
border: 1px solid silver;
162
div.listingblock > div.content {
163
border: 1px solid silver;
172
div.quoteblock > div.attribution {
181
div.verseblock > div.content {
184
div.verseblock > div.attribution {
188
/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
189
div.verseblock + div.attribution {
193
div.admonitionblock .icon {
197
text-decoration: underline;
199
padding-right: 0.5em;
201
div.admonitionblock td.content {
203
border-left: 2px solid silver;
206
div.exampleblock > div.content {
207
border-left: 2px solid silver;
211
div.imageblock div.content { padding-left: 0; }
212
span.image img { border-style: none; }
213
a.image:visited { color: white; }
217
margin-bottom: 0.8em;
230
list-style-position: outside;
233
list-style-type: decimal;
236
list-style-type: lower-alpha;
239
list-style-type: upper-alpha;
242
list-style-type: lower-roman;
245
list-style-type: upper-roman;
248
div.compact ul, div.compact ol,
249
div.compact p, div.compact p,
250
div.compact div, div.compact div {
252
margin-bottom: 0.1em;
255
div.tableblock > table {
256
border: 3px solid #527bbd;
259
font-family: sans-serif;
271
/* Because the table frame attribute is overriden by CSS in most browsers. */
272
div.tableblock > table[frame="void"] {
275
div.tableblock > table[frame="hsides"] {
276
border-left-style: none;
277
border-right-style: none;
279
div.tableblock > table[frame="vsides"] {
280
border-top-style: none;
281
border-bottom-style: none;
287
margin-bottom: 0.8em;
290
padding-bottom: 15px;
292
dt.hdlist1.strong, td.hdlist1.strong {
298
padding-right: 0.8em;
304
div.hdlist.compact tr {
313
.footnote, .footnoteref {
317
span.footnote, span.footnoteref {
318
vertical-align: super;
322
margin: 20px 0 20px 0;
326
#footnotes div.footnote {
332
border-top: 1px solid silver;
342
div#footer-badges { display: none; }
347
font-family: sans-serif;
351
margin-bottom: 0.1em;
354
div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
370
/* Workarounds for IE6's broken and incomplete CSS2. */
372
div.sidebar-content {
374
border: 1px solid silver;
377
div.sidebar-title, div.image-title {
379
font-family: sans-serif;
382
margin-bottom: 0.5em;
385
div.listingblock div.content {
386
border: 1px solid silver;
391
div.quoteblock-attribution {
396
div.verseblock-content {
399
div.verseblock-attribution {
404
div.exampleblock-content {
405
border-left: 2px solid silver;
409
/* IE6 sets dynamically generated links as visited. */
410
div#toc a:visited { color: blue; }
412
<script type="text/javascript">
414
window.onload = function(){asciidoc.footnotes();}
415
var asciidoc = { // Namespace.
417
/////////////////////////////////////////////////////////////////////
418
// Table Of Contents generator
419
/////////////////////////////////////////////////////////////////////
421
/* Author: Mihai Bazon, September 2002
422
* http://students.infoiasi.ro/~mishoo
424
* Table Of Content generator
427
* Feel free to use this script under the terms of the GNU General Public
428
* License, as long as you do not remove or alter this notice.
431
/* modified by Troy D. Hanson, September 2006. License: GPL */
432
/* modified by Stuart Rackham, 2006, 2009. License: GPL */
435
toc: function (toclevels) {
437
function getText(el) {
439
for (var i = el.firstChild; i != null; i = i.nextSibling) {
440
if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
442
else if (i.firstChild != null)
448
function TocEntry(el, text, toclevel) {
451
this.toclevel = toclevel;
454
function tocEntries(el, toclevels) {
455
var result = new Array;
456
var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
457
// Function that scans the DOM tree for header elements (the DOM2
458
// nodeIterator API would be a better technique but not supported by all
460
var iterate = function (el) {
461
for (var i = el.firstChild; i != null; i = i.nextSibling) {
462
if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
463
var mo = re.exec(i.tagName);
465
result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
474
var toc = document.getElementById("toc");
475
var entries = tocEntries(document.getElementById("content"), toclevels);
476
for (var i = 0; i < entries.length; ++i) {
477
var entry = entries[i];
478
if (entry.element.id == "")
479
entry.element.id = "_toc_" + i;
480
var a = document.createElement("a");
481
a.href = "#" + entry.element.id;
482
a.appendChild(document.createTextNode(entry.text));
483
var div = document.createElement("div");
485
div.className = "toclevel" + entry.toclevel;
486
toc.appendChild(div);
488
if (entries.length == 0)
489
toc.parentNode.removeChild(toc);
493
/////////////////////////////////////////////////////////////////////
494
// Footnotes generator
495
/////////////////////////////////////////////////////////////////////
497
/* Based on footnote generation code from:
498
* http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
501
footnotes: function () {
502
var cont = document.getElementById("content");
503
var noteholder = document.getElementById("footnotes");
504
var spans = cont.getElementsByTagName("span");
507
for (i=0; i<spans.length; i++) {
508
if (spans[i].className == "footnote") {
510
// Use [\s\S] in place of . so multi-line matches work.
511
// Because JavaScript has no s (dotall) regex flag.
512
note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
513
noteholder.innerHTML +=
514
"<div class='footnote' id='_footnote_" + n + "'>" +
515
"<a href='#_footnoteref_" + n + "' title='Return to text'>" +
516
n + "</a>. " + note + "</div>";
518
"[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
519
"' title='View footnote' class='footnote'>" + n + "</a>]";
520
var id =spans[i].getAttribute("id");
521
if (id != null) refs["#"+id] = n;
525
noteholder.parentNode.removeChild(noteholder);
527
// Process footnoterefs.
528
for (i=0; i<spans.length; i++) {
529
if (spans[i].className == "footnoteref") {
530
var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
531
href = href.match(/#.*/)[0]; // Because IE return full URL.
534
"[<a href='#_footnote_" + n +
535
"' title='View footnote' class='footnote'>" + n + "</a>]";
547
<h1>LaTeXMathML Formulae</h1>
551
<div class="sectionbody">
552
<div class="paragraph"><p><a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
553
capability has been added to <em>AsciiDoc</em> for users who are more familar
554
with or prefer LaTeX math formulas to the
555
<a href="http://www.methods.co.nz/asciidoc/asciimathml.html">ASCIIMathML</a>
557
<div class="paragraph"><p><em>LaTeXMathML</em> is a derivative of
558
<a href="http://www.methods.co.nz/asciidoc/asciimathml.html">ASCIIMathML</a> — in
559
terms of usage the only difference it that you use the <tt>latexmath</tt>
560
attribute instead of the <tt>asciimath</tt> attribute.</p></div>
561
<div class="paragraph"><p><em>LaTeXMathML</em> processes LaTeX math formulas not arbitrary LaTeX (as
562
<tt>dblatex(1)</tt> does). See the
563
<a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
564
website for details.</p></div>
565
<div class="paragraph"><p>Here’s the <a href="latexmathml.txt"><em>AsciiDoc</em> source</a> that generated this
567
<div class="paragraph"><p>Some example <em>LaTeXMathML</em> formulas:</p></div>
568
<div class="ulist"><ul>
571
$R_x = 10.0 \times \sin(R_\phi)$
576
<span style="font-size: 2em;">$\sum_{n=1}^\infty \frac{1}{2^n}$</span>
581
$\lim_{x\to\infty} f(x) = k \choose r + \frac ab
582
\sum_{n=1}^\infty a_n + \displaystyle{ \left\{ \frac{1}{13}
583
\sum_{n=1}^\infty b_n \right\} }$
588
$\$\alpha + \$\beta = \$(\alpha + \beta)$
593
$\begin{eqnarray} x & = & \frac{-7 \pm
594
\sqrt{49 - 24}}{6} \\ & = & -2 \textrm{ or } -\frac13.
600
$\displaystyle{ V_i = C_0 - C_3
601
\frac{C_1\cos(\theta_i+C_3)}{C_4+C_1\cos(\theta_i+C_2)} }$
608
<div id="footnotes"><hr /></div>
610
<div id="footer-text">
611
Last updated 2009-02-27 10:24:12 NZDT