Tarquin wrote:
TMTOWTDY I suppose...
What does that mean?
Toby Bartels wrote:
I'm not about to get upset if you change by <b> to ''', however, and could be convinced to follow your lead exactly if you work at it; I'll only get upset if you mess with <var>, as explained in another post (not yet made, or look on Jan's page).
I change <b> around the article title in the first sentence.
I do that too.
I haven't changed any <var> tags, though I have created formulae myself with '' around variables, because I'd seen it done like that. The $$ for <var> idea is interesting, but I don't think it will make formulae significantly easier on the eye in raw form.
I don't think that the '' version is easy on the eye either. Easy on the eye would be a limited implementation of TeX that would render the wiki input $$x^2 y = z_1$$ into HTML as <var>x</var><sup>2</sup><var>y</var> = <var>z</var><sub>1</sub>. But that opens up its own whole new can of worms. OTOH, $$x$$<sup>2</sup>$$y$$ = $$z$$<sub>1</sub> would be an improvement, and $$x$$^^2^^$$y$$ = $$z$$__1__ would be even better. (This won't quite work, since ^^ and __ can't be interpreted as toggles, but I'm not sure how to deal with that right now.)
-- Toby Bartels toby+wikipedia-l@math.ucr.edu
I haven't changed any <var> tags, though I have created formulae myself with '' around variables, because I'd seen it done like that. The $$ for <var> idea is interesting, but I don't think it will make formulae significantly easier on the eye in raw form.
I don't think that the '' version is easy on the eye either. Easy on the eye would be a limited implementation of TeX that would render the wiki input $$x^2 y = z_1$$ into HTML as <var>x</var><sup>2</sup><var>y</var>?= <var>z</var><sub>1</sub>. But that opens up its own whole new can of worms. OTOH, $$x$$<sup>2</sup>$$y$$?= $$z$$<sub>1</sub> would be an improvement, and $$x$$^^2^^$$y$$?= $$z$$__1__ would be even better. (This won't quite work, since ^^ and __ can't be interpreted as toggles, but I'm not sure how to deal with that right now.)
Hi,
Axel Boldt proposed to have some elegant way to include TeX-formulas into wiki text.
Building an interpreter as mighty as TeX to process formulas is a big task, and using PHP would take very long to parse one formula.
I've hacked the phpwiki code to add a new namespace [[math: ]] so you can write formulas like [[math:a^2+b^2=c^2]] or [[math:\sum_{n=0}^{\infty}\frac{1}{n}=\infty]].
The code will make TeX create an image (PNG) of the formula. Those images will be cached, they will be created only once and will be shared between articles. ( [[math:E=m c^2]] might be used on many pages ).
Processing one formula took about one minute on a very old 486/DX2, why I didn't submit the code to LDC for review or comments, yet.
Do we have numbers of the utilization of the server, whether a feature like this can be added?
Regards,
JeLuF
On 7/31/02 3:20 PM, "Jens Frank" JeLuF@gmx.de wrote:
Building an interpreter as mighty as TeX to process formulas is a big task, and using PHP would take very long to parse one formula.
I've hacked the phpwiki code to add a new namespace [[math: ]] so you can write formulas like [[math:a^2+b^2=c^2]] or [[math:\sum_{n=0}^{\infty}\frac{1}{n}=\infty]].
The code will make TeX create an image (PNG) of the formula. Those images will be cached, they will be created only once and will be shared between articles. ( [[math:E=m c^2]] might be used on many pages ).
Processing one formula took about one minute on a very old 486/DX2, why I didn't submit the code to LDC for review or comments, yet.
Do we have numbers of the utilization of the server, whether a feature like this can be added?
We should see what PlanetMath is doing/work with them. They're a GFDL math-encyclopedia using TeX and some interesting back-end software. There's no need for us to reinvent the wheel if not necessary.
On Wed, Jul 31, 2002 at 03:34:10PM -0400, The Cunctator wrote:
We should see what PlanetMath is doing/work with them. They're a GFDL math-encyclopedia using TeX and some interesting back-end software. There's no need for us to reinvent the wheel if not necessary.
As far as I can tell they write entire articles in (La)TeX, converting them using LaTeX2HTML, which does much more than just converting formulas. I tried to embedd LaTeX2HTML first, and it was more work than writing a feature-reduced LaTeXformula-2-PNG.
Regards,
JeLuF
The Cunctator wrote:
On 7/31/02 3:20 PM, "Jens Frank" JeLuF@gmx.de wrote:
Building an interpreter as mighty as TeX to process formulas is a big task, and using PHP would take very long to parse one formula.
I've hacked the phpwiki code to add a new namespace [[math: ]] so you can write formulas like [[math:a^2+b^2=c^2]] or [[math:\sum_{n=0}^{\infty}\frac{1}{n}=\infty]].
The code will make TeX create an image (PNG) of the formula. Those images will be cached, they will be created only once and will be shared between articles. ( [[math:E=m c^2]] might be used on many pages ).
That's a _really brilliant_ hack -- the idea of using the TeX code as the name of a page is the obvious right thing! We should have a garbage-collector sweep up orphan math: pages every so often. We should also be really cautious about TeX doing insecure things. Is there a subset of TeX syntax we could parse and validate before we pass it to TeX?
Processing one formula took about one minute on a very old 486/DX2, why I didn't submit the code to LDC for review or comments, yet.
The new server should run that code in about 0.5 second on one of its two processors, given typical CPU scaling figures. See http://field.hypermart.net/CPU/cpu.htm
wikipedia-l@lists.wikimedia.org