\documenttype[mathml-altheim]{html}
% Locate gellmu.el as "http://www.albany.edu/~hammond/gellmu/gellmu.el"
% Use: "emacs -batch -l gellmu.el -f gellmu-xhtml whatever.glm" to make
% "whatever.xml". Then view "whatever.xml" with MathML-enabled Mozilla.
% The "mathml-altheim" \documenttype option sets it up the Carlisle/Altheim
% XHTML 1.1 plus MathML 2.0 unified document type definition.
%
\newcommand{\mns}{xmlns="http://www.w3.org/1998/Math/MathML"}
\newcommand{\drmath}[1]{\math[\mns class="display" mode="display"]{\mrow{#1}}}
\newcommand{\plus}{\mo{+}}
\newcommand{\mul}{\mo{ }}
\newcommand{\eqn}[2]{\mrow{#1}\mo{=}\mrow{#2}}
\newcommand{\bal}[1]{\mfenced{\mrow{#1}}}
\newcommand{\gexp}[2][\mi{e}]{\msup{\mrow{#1}\mrow{#2}}}
\newcommand{\infty}{\mi{∞}}
\newcommand{\dlog}[1]{\mfrac{\mrow{\mi{d#1}}\mi{#1}}}
\newcommand{\frac}[2]{\mfrac{\mrow{#1}\mrow{#2}}}
\newcommand{\int}[3]{\msubsup{\mo{∫}\mrow{#1}#2}\mrow{#3}}
\newcommand{\prod}[3]{\msubsup{\mo{∏}\mrow{#1}#2}\mrow{#3}}
\begin{head}
\style[type="text/css"]{
body {
html,background: #fff;
color: black;
background-color: white;
}
h1 {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.display {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
}
\title{MathML Examples}
\end{head}
\begin{body}
\h1{MathML Examples}
\h2[class="display"]{William F. Hammond}
\p[class="display"]{Copyright © 2001 William F. Hammond}
\p{
This is an XHTML document with MathML markup prepared using the basic
layer of GELLMU and the XML namespaces regime for extending the basic
tagset of XHTML.
}
\p{
Here is a displayed form of the Weierstrass infinite product expansion
of the gamma function.
}
\drmath{
\eqn{
\int{\mn{0}}{\infty}{
\gexp{\mi{t}}{\mi{x}} \mul \gexp{\mi{-t}} \mul
\dlog{t}
}
}{
\frac{\mn{1}}{\mi{x}} \mul
\prod{\mrow{\mi{k}\mo{=}\mn{1}}}{\infty}{
\mrow{
\frac{
\gexp{\bal{\mn{1}\plus\frac{\mn{1}}{\mi{k}}}}{\mi{x}}
}{
\bal{\mn{1}\plus\frac{\mi{x}}{\mi{k}}}
}
}
}
}
}
\end{body}