tea.mathoverflow.net - Discussion Feed (Looking for folks to test some $math$ preview stuff) Sun, 04 Nov 2018 13:43:59 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=739#Comment_739 Fri, 04 Dec 2009 15:26:23 -0800 David Speyer 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=734#Comment_734 Fri, 04 Dec 2009 09:15:28 -0800 danlec
`$\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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=732#Comment_732 Thu, 03 Dec 2009 21:18:02 -0800 David Speyer 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=729#Comment_729 Thu, 03 Dec 2009 16:56:41 -0800 danlec
(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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=646#Comment_646 Wed, 25 Nov 2009 09:36:56 -0800 danlec 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=645#Comment_645 Wed, 25 Nov 2009 09:34:55 -0800 David Speyer 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=643#Comment_643 Wed, 25 Nov 2009 08:57:58 -0800 Anton Geraschenko 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=642#Comment_642 Wed, 25 Nov 2009 08:53:30 -0800 David Speyer 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=641#Comment_641 Wed, 25 Nov 2009 08:46:08 -0800 danlec @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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=640#Comment_640 Wed, 25 Nov 2009 06:57:02 -0800 David Speyer 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 http://mathoverflow.tqft.net/discussion/62/looking-for-folks-to-test-some-math-preview-stuff/?Focus=639#Comment_639 Tue, 24 Nov 2009 21:19:39 -0800 danlec 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)

]]>