tea.mathoverflow.net - Discussion Feed (Report problems with the LaTeX sidebar here.) Sun, 04 Nov 2018 13:08:00 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (399) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=399#Comment_399 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=399#Comment_399 Fri, 13 Nov 2009 07:57:09 -0800 Anton Geraschenko Good catch. Maybe this is the right time to get rid of the png image LaTeX support, since it's pretty clear that jsMath is superior. Weirdly, the asker actually wrote $C^\infty$ (instead of an image) in one spot.

]]>
David Speyer comments on "Report problems with the LaTeX sidebar here." (398) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=398#Comment_398 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=398#Comment_398 Fri, 13 Nov 2009 07:42:11 -0800 David Speyer Images inserted from the side bar don't appear in the mathoverflow.net/questions page.

Example: look at this question. The author apparently used the sidebar to create the symbol C^infty. If you bring up the "all questions" page and scroll until you see this question (page 1 at the moment), you see

Given a compact smooth manifold $M$, it's relatively well known that $(M)$ determines $M$ up to diffeomorphism.

That symbol "(M)" should be "C^infty(M)".

]]>
Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (254) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=254#Comment_254 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=254#Comment_254 Mon, 09 Nov 2009 12:27:13 -0800 Anton Geraschenko @cdouglas: This question belongs on the "bugs with jsMath" thread, so I'll copy it there. I can reproduce this bug in chrome on linux.

]]>
cdouglas comments on "Report problems with the LaTeX sidebar here." (247) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=247#Comment_247 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=247#Comment_247 Mon, 09 Nov 2009 11:59:02 -0800 cdouglas http://mathoverflow.net/questions/4547/definitions-of-hecke-algebras
which displays perfectly in Safari, has the math oddly displaced in Chrome.
This could easily be Chrome's fault rather than MO's, but I thought it worth
reporting. ]]>
Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (214) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=214#Comment_214 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=214#Comment_214 Sun, 08 Nov 2009 22:48:27 -0800 Anton Geraschenko @Dave Penneys: can you explain what issues you're having? Are these problems with the LaTeX sidebar, or with jsMath (where you just put stuff between dollar signs)? What exactly did you try?

I'm guessing you're probably having issues with jsMath. The problem is the interaction between jsMath an Markdown. You can "solve" the problem by escaping special Markdown characters (like _, *, \, and {) with a backslash. Try using \_ and \left\\\{. In fact, you usually don't have to escape underscores and curly braces (but you do have to escape the backslash before a curly brace) because the server side implementation of Markdown is smarter than the javascript version that does the preview. See this post and the jsMath page for more details. I hope the preview will be better in the beta 5 version of the software. It looks like jsMath doesn't recognize \sb, but you should just be able to use underscores.

]]>
Dave Penneys comments on "Report problems with the LaTeX sidebar here." (212) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=212#Comment_212 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=212#Comment_212 Sun, 08 Nov 2009 22:35:04 -0800 Dave Penneys Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (161) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=161#Comment_161 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=161#Comment_161 Fri, 06 Nov 2009 00:04:09 -0800 Anton Geraschenko For some reason, the system messages are heavily cached, so when I change it, you get a mix of the two. We're going to keep the LaTeX-via-images box for a few days while we're ironing out any jsMath issues that arrise, but I think jsMath is clearly far superior, so I think we should get rid of the LaTeX-via-images box as soon as we're pretty sure jsMath is stable.

]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (160) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=160#Comment_160 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=160#Comment_160 Thu, 05 Nov 2009 23:37:54 -0800 Andrew Stacey Depending on which page I'm on, I either get the jsMath banner or the "LaTeX in the box" banner.

Also, what's the default: jsMath or LaTeX-via-images?

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (156) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=156#Comment_156 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=156#Comment_156 Thu, 05 Nov 2009 15:12:18 -0800 Scott Morrison Scott Morrison comments on "Report problems with the LaTeX sidebar here." (155) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=155#Comment_155 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=155#Comment_155 Thu, 05 Nov 2009 14:01:03 -0800 Scott Morrison Scott Morrison comments on "Report problems with the LaTeX sidebar here." (154) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=154#Comment_154 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=154#Comment_154 Thu, 05 Nov 2009 13:46:57 -0800 Scott Morrison I've commented over on the SO blog post Ilya pointed out, complaining that the upstream fix to MarkDown hasn't been merged.

]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (153) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=153#Comment_153 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=153#Comment_153 Thu, 05 Nov 2009 01:00:49 -0800 Andrew Stacey I've just added a comment to the first link mentioning the issue and added the remark about it being fixed in PHP markdown to the second.

]]>
Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (152) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=152#Comment_152 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=152#Comment_152 Wed, 04 Nov 2009 21:16:18 -0800 Anton Geraschenko I've changed the javascript to escape _'s and *'s in the alt text, so this problem should be alleviated. This is kind of hacky because it means that if you edit the source later, you have to manually unescape these characters. Markdown should really protect these characters when they are alt text. I found a bug report on meta.SO which was essentially declined (marked [status-bydesign]), and I posted a new bug report on meta.SE. If there is some kind of Markdown main project, we should file a bug report with them.

]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (151) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=151#Comment_151 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=151#Comment_151 Wed, 04 Nov 2009 11:48:31 -0800 Andrew Stacey @hanche Flott! Jeg viste ikke denne løsningen. Jeg lærer nye ting hver dag.

]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (150) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=150#Comment_150 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=150#Comment_150 Wed, 04 Nov 2009 11:43:57 -0800 Andrew Stacey Ah, so they've already spotted the dangers of underscores in the middle of words so they should be open to a bug report on underscores in images.

(curiously, there's one mention of PHP markdown in that discussion but it doesn't get taken up)

]]>
Harald Hanche-Olsen comments on "Report problems with the LaTeX sidebar here." (149) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=149#Comment_149 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=149#Comment_149 Wed, 04 Nov 2009 11:03:35 -0800 Harald Hanche-Olsen Ilya Nikokoshev comments on "Report problems with the LaTeX sidebar here." (148) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=148#Comment_148 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=148#Comment_148 Wed, 04 Nov 2009 10:28:11 -0800 Ilya Nikokoshev They forked the Markdown, see this SO blog post.

]]>
Ilya Nikokoshev comments on "Report problems with the LaTeX sidebar here." (147) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=147#Comment_147 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=147#Comment_147 Wed, 04 Nov 2009 10:24:16 -0800 Ilya Nikokoshev @Scott: here's the Javascript: document.getElementById("wmd-input").value += ' ' +document.getElementById("code-box").value + ' '

I wasn't able to paste a javascript link here, but you can prefix above with javascript: and put into your bookmarks. Clicking on this bookmark will copy text from the code box to the edit box. Tested: Safari 4.

]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (146) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=146#Comment_146 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=146#Comment_146 Wed, 04 Nov 2009 10:03:44 -0800 Andrew Stacey Do you know what language MO uses? That would give us a high probability of identifying the source of the markdown. Even if they've forked it, it's highly likely that they would implement upstream patches.

Actually, we can do a little detective work ... nope, none of the syntax in extended markdown seems to work which implies that it is plain, ordinary Markdown. In which case, you need to go to the top.

Edit: A little more detective work reveals that this might well be one of the bugs fixed in the latest version of PHP Markdown suggesting that they're not using this version. I'd need to experiment to see if this really is the same bug. Hang on, I can experiment here!

An _interesting image and a really boring_ one

(I guess you need to look at the alt tags to see what I'm testing, but if the bug was in PHP Markdown then the "and a" would be italicised)

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (145) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=145#Comment_145 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=145#Comment_145 Wed, 04 Nov 2009 09:56:37 -0800 Scott Morrison Re: the underlying bug in Markdown for handling underscores and stars in the alt text.

Does anyone know how the Markdown code is maintained? Does FogCreek use a standard distribution of Markdown, or have they forked. Can we just submit bug reports and/or patches to someone further upstream than FogCreek?

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (144) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=144#Comment_144 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=144#Comment_144 Wed, 04 Nov 2009 09:55:00 -0800 Scott Morrison @Ilya, re: automatically pasting. This would require some ever so slightly deeper javascript magic. In principle I think I know how to do it, but won't unless someone comes by my office to do it with me. :-)

]]>
Ilya Nikokoshev comments on "Report problems with the LaTeX sidebar here." (143) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=143#Comment_143 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=143#Comment_143 Wed, 04 Nov 2009 09:15:06 -0800 Ilya Nikokoshev Great work! Would it be possible to make it perfect by adding a button to paste text from the right box to the left in a single click?

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (142) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=142#Comment_142 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=142#Comment_142 Wed, 04 Nov 2009 09:12:31 -0800 Scott Morrison My vote is also "LaTeX-style equations" in the help box. On the other hand I reserve the right to fudge the difference while discussing it further here. :-)

]]>
rwbarton comments on "Report problems with the LaTeX sidebar here." (141) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=141#Comment_141 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=141#Comment_141 Wed, 04 Nov 2009 08:54:25 -0800 rwbarton Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (140) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=140#Comment_140 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=140#Comment_140 Wed, 04 Nov 2009 08:22:30 -0800 Andrew Stacey That behaviour with the underscores shouldn't happen. That's a bug. It ought to get "protected" as it ends up inside the alt tag, and thus inside an HTML tag. However, a quick experiment shows that it's a "feature" (ie bug) in the original Markdown so you may be right about the difficulty of getting it fixed (though it really would be simplicity itself to fix). Escaping it just involves putting in backslashes, as I'm sure you're aware. However, I presume that this isn't a long-term solution (at least, I hope not!) and once something is integrated with the interpreter then irritations like this should disappear.

As for the name, why not simply "LaTeX-style equations"? That makes it clear that it might not be quite LaTeX (and I'd suggest a thread here where people can note common differences) and also makes it clear that it's for equations only. Otherwise someone might be tempted to write their whole answer in LaTeX!

]]>
Anton Geraschenko comments on "Report problems with the LaTeX sidebar here." (138) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=138#Comment_138 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=138#Comment_138 Wed, 04 Nov 2009 07:32:49 -0800 Anton Geraschenko @David Brown: The problem is that the underscores in the alt text are special Markdown characters. When you have two underscores on a line, everything between them gets italicized. Since this is the "intended" behavior, I don't think Fog Creek will fix it, but we can. We just have to decide how to. The problem is that if we change the alt text (e.g. by escaping all the underscores and stars), then it becomes slightly harder to edit the source. I think this is a tolerable price to pay. I'll see if I can modify the javascript to escape underscores and stars. For now, you can escape them manually, like I did in your question.

@Andrew: I'd be happy to use a more accurate name. I get the same little twinge of annoyance every time I see (or use) the term "LaTeX", but I don't see a good way around it without constantly launching into explanations about how it isn't really LaTeX.

@fedja: sometimes, the box doesn't appear for me, but it appears after reloading the page. Does this work for you?

]]>
fedja comments on "Report problems with the LaTeX sidebar here." (137) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=137#Comment_137 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=137#Comment_137 Wed, 04 Nov 2009 06:13:25 -0800 fedja
Edit: I installed IE and it appears there, but not on FF. Seems like some common problem with javascript when these 2 browsers handle things differently. It would be nice if somebody looked into it. ]]>
Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (136) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=136#Comment_136 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=136#Comment_136 Wed, 04 Nov 2009 03:18:05 -0800 Andrew Stacey Yes and No. In the Grand Scheme of Things, then no, it doesn't really matter. In the scheme of trying to make the site as useful as possible, then yes, it does matter. You can't type arbitrary LaTeX syntax into that box, it doesn't work. You can type a simplified subset of LaTeX. Exactly what that subset is, I don't know. A little experimenting showed that it stripped out certain commands, but not others.

The preview feature mitigates this a little, since it's obvious that stuff isn't appearing as one would expect, but it's still not technically correct to say that you can use LaTeX input.

]]>
Kevin Lin comments on "Report problems with the LaTeX sidebar here." (135) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=135#Comment_135 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=135#Comment_135 Wed, 04 Nov 2009 02:10:58 -0800 Kevin Lin Andrew Stacey comments on "Report problems with the LaTeX sidebar here." (133) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=133#Comment_133 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=133#Comment_133 Tue, 03 Nov 2009 23:53:54 -0800 Andrew Stacey I know this is just being really picky, but is it possible to call this something more accurate than "LaTeX"? It's LaTeX mathematics mode, so you don't need to put in the dollars, and ordinary text commands may or may not work, depending on whether or not they are valid in mathematics mode.

But apart from that, that's a great feature to have.

]]>
David Zureick-Brown comments on "Report problems with the LaTeX sidebar here." (132) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=132#Comment_132 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=132#Comment_132 Tue, 03 Nov 2009 23:31:16 -0800 David Zureick-Brown
Let G and H be affine algebraic groups over a scheme S of characteristic 0 and let ![\textbf{Hom}_{S,gp}(G,H)](http://latex.mathoverflow.net/png?%5Ctextbf%7BHom%7D%5F%7BS%2Cgp%7D%28G%2CH%29) be the functor ![T \mapsto \text{Hom}_{T,gp}(G,H)](http://latex.mathoverflow.net/png?T%20%5Cmapsto%20%5Ctext%7BHom%7D%5F%7BT%2Cgp%7D%28G%2CH%29)

Edit (Scott): Dave was having trouble because it was typesetting *correctly* here. I told meta to "Format comments as Text", so the Markdown is no longer interpreted. ]]>
David Zureick-Brown comments on "Report problems with the LaTeX sidebar here." (131) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=131#Comment_131 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=131#Comment_131 Tue, 03 Nov 2009 23:30:04 -0800 David Zureick-Brown It looks a little wonky if you use latex with a sentence: http://mathoverflow.net/questions/4062/can-homgpg-h-fail-to-be-representable-for-affine-algebraic-groups.

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (126) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=126#Comment_126 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=126#Comment_126 Tue, 03 Nov 2009 20:04:52 -0800 Scott Morrison Known bug: the sidebar doesn't appear while you're editing an answer.

]]>
Scott Morrison comments on "Report problems with the LaTeX sidebar here." (125) http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=125#Comment_125 http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/?Focus=125#Comment_125 Tue, 03 Nov 2009 16:18:49 -0800 Scott Morrison We've just setup some LaTeX support, thanks to the great work of "OlegK", the author of the "SELaTeX" project, and John Forkosh, the author of the mathtex project.

You'll see a sidebar on the right, which allows you to type LaTeX and provides a real-time preview. When you're done, you can copy and paste the code over to your post. The code it produces is MarkDown syntax for an image tag. It generates alt-text containing the original LaTeX, so you can edit and see other people's source if you need to.

We've modified the original SELaTeX code in order to use our own LaTeX renderer, rather than the one over at codecogs.com. It's possible we'll have issues with this, so please report any problems.

We are well aware of the insufficiencies of this solution. In particular, it would be lovely to provide MathML to browsers that can handle it, but for now that's beyond us. It would be great to be able to write LaTeX inline in your post, rather than having to jump to the sidebar, but that will have to wait on support from FogCreek, the makers of the StackExchange software. Anyway -- perfect is the enemy of good, so for now we're going with this.

]]>