Jan Hidders wrote:
Note that I was talking about math *expressions* and not about simple variable names! For simple variable names the required knowledge of LaTeX is going to be near zero.
And are they going to know that if we tell them that $$ invokes LaTeX? They'll know if we tell them to put $$ around variable names.
I would even argue that always using the TeX markup makes things simpler there. An example in your notation:
.. let $$v<sub>1</sub>$$, ..., $$v<sub>n</sub>$$ be a finite list ..
There are many versions of "my notation" around, but this is none of them.
.. let <var>v</var><sub>1</sub>, ..., <var>v</var><sub><var>n</var></sub> be a finite list ..
This is what I write now, and the HTML that we should produce.
.. let $$v$$<sub>1</sub>, ..., $$v$$<sub>$$n$$</sub> be a finite list ..
This is where $$ parses as <var>.
.. let $$v$$_{1}, ..., $$v$$_{$$n$$} be a finite list ..
This is with a wiki notation for subscripts too.
.. let [[math:v_1, \ldots, v_n]] be a finite list ..
This calls LaTeX to create a PNG stored in a [[math:]] namespace.
and in mine:
.. let [$v_1$], ..., [$v_n$] be a finite list ..
Other than the suboptimal TeX (which may be preferable in our context, since we want to allow for line breaks from time to time), this is like the [[math:]] namespace, as you know. The question is, how do we tell people to write like that? We can't say "Put [$ and $] around math expressions.", because it isn't that simple, and things won't come out right. We can't say "Put [$ and $] around a math expression to call LaTeX.", because it isn't that difficult, and people won't want to try it.
Do you want to write up all of the LaTeX that we use?
Note that all that I'm arguing here is that we have one markup for math and not two (one for <var> and one for LaTeX).
I'd rather have two markups for math than one that won't get used. I think that we have a long way to go before getting a good LaTeX system. But we can implement <var> support (and <sub> and <sup> support) much sooner.
----
OK, new suggestion.
There really are two different kinds of math expression, one kind mosly used for short things, one kind mostly for complicated stuff. These are inline equations (TeX $) and displayed equations (TeX $$). One possibility is to use wiki markup for <var> and the like inline and [[math:]] calling LaTeX for displayed equations. We wouldn't be able to write $\int_a^b f(x),dx$ inline, but I don't think that that's much of a problem.
I haven't thought this one through all the way.
-- Toby Bartels toby+wikipedia-l@math.ucr.edu
On Fri, Aug 09, 2002 at 07:31:54AM -0700, Toby Bartels wrote:
Jan Hidders wrote:
Note that I was talking about math *expressions* and not about simple variable names! For simple variable names the required knowledge of LaTeX is going to be near zero.
And are they going to know that if we tell them that $$ invokes LaTeX? They'll know if we tell them to put $$ around variable names.
People don't read manuals, they first look in other articles how it is done there.
I would even argue that always using the TeX markup makes things simpler there. An example in your notation:
.. let $$v<sub>1</sub>$$, ..., $$v<sub>n</sub>$$ be a finite list ..
There are many versions of "my notation" around, but this is none of them.
This is how the mark-up you suggested could be used. Perhaps it is not how you would like it to be used, but it's still your notatation. But whether you want people to write $$x$$<sub>$$n$$</sub> or $$x<sub>n</sub>$$ is not really to the point anyway.
.. let <var>v</var><sub>1</sub>, ..., <var>v</var><sub><var>n</var></sub> be a finite list ..
This is what I write now, and the HTML that we should produce.
Says who? I don't agree, even apart from the question whether we should support <var> at all (<var> was not included in HTML to write mathematical variables), but since it is not relevant for this discussion I'm going to save that for later.
The question is, how do we tell people to write like that? We can't say "Put [$ and $] around math expressions.", because it isn't that simple, and things won't come out right.
Yes we can, yes it is, and yes they will. As I already explained and Lee also suggested we can analyze what is between the [$ and $] and check which browser is looking and then decide what we are going to output. We could even do a little experimenting and see what looks best.
We can't say "Put [$ and $] around a math expression to call LaTeX.", because it isn't that difficult, and people won't want to try it.
I assume "difficult" -> "simple"? For simple math you only need to know what [$ x_n $] does and maybe not even that if you don't use subscripts.
Do you want to write up all of the LaTeX that we use?
No, I don't intend to do that all by myself. :-) The request for LaTeX is an old one and has been made several times. I know several people who write mathematics in Wikipedia who cannot wait to get their hands on this. There's no doubt that it will be used.
-- Jan Hidders
wikipedia-l@lists.wikimedia.org