Peter Danenberg wrote:
As an
addition, one actually can adjust the size and baseline
alignment dynamically.
Using the --depth option, I understand, Jan-Åke?
Exactly. A javascript snippet walks through the class="latex"-marked
html pieces, and asks the server for images suitable for the current
fontsize. The font-size is extracted on the client individually and
dynamically for each code piece, while the code is extracted
server-side and images are generated. The client gets a response which
contains links to correct-sized images, and their depth. It then
exchanges the code pieces for the images and sets their vertical-align
suitably.
Benefits:
* No need to pre-render latex code.
* Nicely positioned correctly sized math.
* REAL SIMPLE code: <span class="latex">$\sqrt2$</span>
Drawbacks:
* No javascript? No images. You'll see latex source.
* IE on a high-res screen still has problems, I haven't had time to fix
this.
/JÅ
--
Death before dishonor. Nothing before coffee!