1 Dec 2002 02:00
TeX
Here is first version of TeX rendering extension to Wikipedia.
It's not production code yet.
Please comment.
= How does it work =
New preference is introduced which says whether to:
* always render images as PNGs
* render them as HTML if they are simple enough, or as PNGs otherwise.
* leave them as pseudo-TeX (mainly for text browsers where neither PNG
nor HTML rendering would be visible)
ISSUE 1: While HTML reduces bandwidth, it is much uglier, so default is PNG-only.
ISSUE 2: PNGs are rendered with "a bit too big" font. That's on purpose.
A big too big works well in big and medium resolution, and is still readable
in small resolution. But "a bit too little" with big resolution would be very
hard to read.
Also new table is introduced:
CREATE TABLE math (
math_inputhash char(32) NOT NULL,
math_outputhash char(32) NOT NULL,
math_html text NOT NULL,
UNIQUE KEY math_inputhash (math_inputhash)
);
math_inputhash is MD5 of input markup, math_outputhash
is MD5 of output markup, math_html is HTML rendering or ""
if it's too difficult for HTML.
(Continue reading)
RSS Feed