You might have noticed the new look of this weblog. It all started due to Asif and Jacques Distler. Asif just started using

$LaTeX$
formulae on his weblog and Jacques has been doing so for quite a while. Asif is using a WordPress plugin to convert

$LaTeX$
equations into images while Jacques converts them (or rather *itex*) to MathML. I am trying to follow Jacques.

The first step needed was to make my pages valid XHTML 1.1. Previously, my site was valid XHTML 1 Transitional. This required changes in my templates. The old MT 2.6 templates I was using were up to no good. Therefore, I took the new MT 3.o default templates and modified them to my own tastes. Even then, I needed to make some changes in the templates and my entries to make them all pass XHTML 1.1 validity tests.

Right now, all the weblog pages other than the individual entry archives are valid XHTML 1.1. The individual entry pages need some more work because the comment forms need to be changed and the comments themselves are very invalid and require a lot of work. I’ll be slowly fixing that over the next few days or months.

Following Jacques’s advice, I also had to serve my pages as `application/xhtml+xml`

instead of `text/html`

. Actually, this needs to be done only for those browsers which can handle MathML, the rest can be fed `text/html`

. Right now, I am only serving my blog home page as `application/xhtml+xml`

using the `Accept`

header. But later on, I’ll move to Jacques’s scheme.

One of the problems with serving `application/xhtml+xml`

is that the browser does not show *anything* if the code is not valid. Therefore, it is extremely important to validate all your pages. This could cause problems with comments since commenters can’t be trusted to use only valid XHTML 1.1. I might later try Jacques’s idea of forcing comment previews and validation. But for now, I’ll have to fix them manually myself.

I have tested the new templates in Firefox 1.0 and Internet Explorer 6.0 on my Windows XP machine. The pages looked OK in both. If you find any problems viewing any of the blog pages or the layout doesn’t seem right, please let me know.

I have installed the itex2MML plugin for Movable Type to create MathML content.

And now for some math tests. If you are using a Mozilla browser (use Firefox please, it’s a much better browser), you’ll need to install Math fonts. If you are using Internet Explorer (why?), you can install the MathPlayer plugin.

As I am lazy, I am using the LaTeX (or

$LaTeX$
) code from a few tests by Jacques and Asif.

First, an integral expression from Asif.

(1)
$${\int}_{0}^{\mathrm{\infty}}\frac{{\mathrm{sin}}^{2}x}{{x}^{-3/2}}{e}^{x}\mathrm{dx}$$
And here is a passage to test arrays.

Establishing driving point impedances works on the principle of simple R-L-C networks, where

${Z}_{L}=L.\frac{\mathrm{di}}{\mathrm{dt}}$
,

${Z}_{C}=1/C\int i\mathrm{dt}$
. Driving point impedances and admittances (in terms of effort and flow) are given as:

(2)
$$e(s)=Z(s)~f(s),\text{and}f(s)=Y(s)~e(s)$$
In the case when we have a 2-port and we have effort of one port and flow of other as inputs and vice versa, then the transfer function of this hybrid formulation can be written as:

(3)
$$\left(\begin{array}{c}{e}_{1}(s)\\ {f}_{2}(s)\end{array}\right)=\left(\begin{array}{cc}{h}_{11}(s)& {h}_{12}(s)\\ {h}_{21}(s)& {h}_{22}(s)\end{array}\right)\left(\begin{array}{c}{e}_{2}(s)\\ {f}_{1}(s)\end{array}\right)$$
or

(4)
$$\left(\begin{array}{c}{f}_{1}(s)\\ {e}_{2}(s)\end{array}\right)=\left(\begin{array}{cc}{g}_{11}(s)& {g}_{12}(s)\\ {g}_{21}(s)& {g}_{22}(s)\end{array}\right)\left(\begin{array}{c}{f}_{2}(s)\\ {e}_{1}(s)\end{array}\right)$$
Now let us test inline and display equations in a `blockquote`

from a post by Jacques.

This is a test of the new `itex2MML+parbreaks`

filter. Here is an inline equation:

$2\mathrm{sin}(x)\mathrm{cos}(x)=\mathrm{sin}(2x)$
.

And here is a display equation

(5)
$${\int}_{0}^{\mathrm{\infty}}{e}^{-{x}^{2}}\mathrm{dx}=\frac{\sqrt{\pi}}{2}$$
And here is some more prose.

Please note that these equations will be properly rendered only on the main page right now and not work on any of the archives (monthly, category and individual entry). I’ll fix that in time though.

Also, unlike Jacques and Asif, I am not allowing Math in the comments, at least until I figure out and implement forced preview and validation.

Finally, I probably have broken my RSS/Atom feeds and accessibilty. I’ll look into that next.

### Like this:

Like Loading...