tea.mathoverflow.net - Discussion Feed (Looking for folks to test some $math$ preview stuff) 2018-11-04T13:43:59-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher David Speyer comments on "Looking for folks to test some $math$ preview stuff" (739) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=739#Comment_739 2009-12-04T15:26:23-08:00 2018-11-04T13:43:59-08:00 David Speyer http://mathoverflow.tqft.net/account/23/ You're right. I thought I tested this on math.MO, but I was wrong. math-preview and math.MO both handle this correctly in displaymath mode and wrongly for inline math. See this ... danlec comments on "Looking for folks to test some $math$ preview stuff" (734) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=734#Comment_734 2009-12-04T09:15:28-08:00 2018-11-04T13:43:59-08:00 danlec http://mathoverflow.tqft.net/account/47/ @David: It seems like the input mixes $ and ` in a way that doesn't *preview* correctly on MO (i.e. I get the same missing braces complaints)... I'm afraid to actually try to post it because I don't ...
`$\sum_{\mbox{$`p$ is prime}} 1/p$]]>
David Speyer comments on "Looking for folks to test some $math$ preview stuff" (732) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=732#Comment_732 2009-12-03T21:18:02-08:00 2018-11-04T13:43:59-08:00 David Speyer http://mathoverflow.tqft.net/account/23/ The speed seems fine to me. But I think you are not quite handling mboxes correctly. See this question. The speed seems fine to me. But I think you are not quite handling mboxes correctly. See this question.

]]>
danlec comments on "Looking for folks to test some $math$ preview stuff" (729) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=729#Comment_729 2009-12-03T16:56:41-08:00 2018-11-04T13:43:59-08:00 danlec http://mathoverflow.tqft.net/account/47/ I stuck some more stuff on http://math-preview.stackexchange.com, including an example of live comment previewing (although I suspect that it may be slow on some people's machines). Again, if it's ...
(I know no-one has any rep on that server, but you can always make a comment against your own question)]]>
danlec comments on "Looking for folks to test some $math$ preview stuff" (646) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=646#Comment_646 2009-11-25T09:36:56-08:00 2018-11-04T13:43:59-08:00 danlec http://mathoverflow.tqft.net/account/47/ I wasn't clear on the function of $$math$$, but it should be working now David Speyer comments on "Looking for folks to test some $math$ preview stuff" (645) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=645#Comment_645 2009-11-25T09:34:55-08:00 2018-11-04T13:43:59-08:00 David Speyer http://mathoverflow.tqft.net/account/23/ See my comments over here. In the preview, before jsmath runs, something is turning "&" into "&". This does not happen when the answer is displayed on the ... See my comments over here. In the preview, before jsmath runs, something is turning "&" into "&". This does not happen when the answer is displayed on the answer page.

I would say that this is a bug in Anton's wmd clone except that this problem doesn't happen on math.MO. So I am puzzled.

(Sorry about using capitalization to escape special characters, but I don't have time to fight with markdown on this forum right now.) Edit: I (Anton) edited this post to fix this.

]]>
Anton Geraschenko comments on "Looking for folks to test some $math$ preview stuff" (643) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=643#Comment_643 2009-11-25T08:57:58-08:00 2018-11-04T13:43:59-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ The preview for this answer looks wrong in two ways: in the indented code, dollar signs are converted to <math> and </math>, but left alone in the final output within ... The preview for this answer looks wrong in two ways:

  1. in the indented code, dollar signs are converted to <math> and </math>, but left alone in the final output
  2. within <pre> tags, stuff between dollar signs is processed, but not in the final output

The existing auto-preview on MO doesn't share these errors. Are you processing the math before Markdown processing? If yes, it would be better to do it after, because that's the way it actually happens (the server does Markdown conversion before jsMath gets to do anything).

I've tweaked the italics/bold function in wmd.js so that it matches the server side implementation almost exactly, so people should now be getting a fairly accurate preview of which math will work properly (e.g. \sum_n a_n is fine) and which math they need to do something about (e.g. f'n=g{n-1} won't work correctly, so you should add some backquotes).

]]>
David Speyer comments on "Looking for folks to test some $math$ preview stuff" (642) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=642#Comment_642 2009-11-25T08:53:30-08:00 2018-11-04T13:43:59-08:00 David Speyer http://mathoverflow.tqft.net/account/23/ Thanks! Just to clarify, the examples I was giving were with double dollarsigns. Apparently, this forum's preview is also bewildering, even when I say to format comments as text. I've tried an failed ... every occurence of <latex> and </latex> above were originally double dollar signs.]]> danlec comments on "Looking for folks to test some $math$ preview stuff" (641) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=641#Comment_641 2009-11-25T08:46:08-08:00 2018-11-04T13:43:59-08:00 danlec http://mathoverflow.tqft.net/account/47/ @David: Thanks for taking a look; there are certainly several general formatting issues ... but I didn't want to bother chasing them all down if the speed was still an issue. I'll see what I can do ... @David: Thanks for taking a look; there are certainly several general formatting issues ... but I didn't want to bother chasing them all down if the speed was still an issue. I'll see what I can do to start addressing these other things (because fast and broken isn't any good either!)

For one thing it doesn't recognize the <latex>math</latex> format, just the $math$ format, but that's an easy fix!

]]>
David Speyer comments on "Looking for folks to test some $math$ preview stuff" (640) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=640#Comment_640 2009-11-25T06:57:02-08:00 2018-11-04T13:43:59-08:00 David Speyer http://mathoverflow.tqft.net/account/23/ The speed is OK, but I am getting a lot of other odd problems. I don't know if these are reproducible but: (1) When I entered my answer and was first brought back to the main page for this question, ... The speed is OK, but I am getting a lot of other odd problems. I don't know if these are reproducible but:

(1) When I entered my answer and was first brought back to the main page for this question, jsmath didn't run, so I just saw the underlying LaTeX code. Reloading didn't help, but going to another page and coming back fixed it.

(2) When previewing this question, jsmath didn't seem to recognize double dollarsigns. That is to say, when I had entered

<latex>\pi^2/6=\sum_{n=1}^{\infty} 1/n^2</latex>

the preview was a textstyle sum, enclosed in a single pair of dollarsigns.

When I went on to enter

<latex>\pi^2/6=\sum_{n=1}^{\infty} 1/n^2</latex>

and

<latex>\pi^4/90=\sum_{n=1}^{\infty} 1/n^4</latex>

the preview showed "and" in italics, with no line breaks. Presumably, jsmath had paired the fourth and fifth dollarsigns with each other.

]]>
danlec comments on "Looking for folks to test some $math$ preview stuff" (639) http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=639#Comment_639 2009-11-24T21:19:39-08:00 2018-11-04T13:43:59-08:00 danlec http://mathoverflow.tqft.net/account/47/ Okay, after everyone got frustrated with the scriptlet, I've tried out some other ways of integrating live preview. Can folks (especially those who have "slow" computers that were bogged ... Okay, after everyone got frustrated with the scriptlet, I've tried out some other ways of integrating live preview.

Can folks (especially those who have "slow" computers that were bogged down with the scriptlet stuff) check

http://math-preview.stackexchange.com/

or more specifically

http://math-preview.stackexchange.com/questions/ask

If that's working out for people, then I won't feel bad about offering the code to mathoverflow.net.

(Note that if you have a slow connection, the page will probably be slow to load at first, as your browser's cache gets filled. Also, if you have a slow internet connection, it is totally worth downloading the jsMath fonts; your browser won't have to download as much stuff to get the math to display)

]]>