tea.mathoverflow.net - Discussion Feed (LaTeX in comments) Sun, 04 Nov 2018 13:47:01 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Harald Hanche-Olsen comments on "LaTeX in comments" (5645) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=5645#Comment_5645 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=5645#Comment_5645 Wed, 26 May 2010 14:42:14 -0700 Harald Hanche-Olsen Not possible. But a workaround is to write your comment in the answer field, where you have preview. Then cut-and-paste into the comment field and post. (You will get a question about abandoning the answer you started.)

]]>
faheem comments on "LaTeX in comments" (5642) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=5642#Comment_5642 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=5642#Comment_5642 Wed, 26 May 2010 10:20:25 -0700 faheem
I just posted a question, and a couple of comments related to that question. I can preview the question - specifically the math typesetting for the question, but I can't do the same with the comments. Am I missing something, or is this currently not possible for some reason? ]]>
Pete L. Clark comments on "LaTeX in comments" (3365) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3365#Comment_3365 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3365#Comment_3365 Tue, 23 Feb 2010 22:19:27 -0800 Pete L. Clark Pete L. Clark comments on "LaTeX in comments" (3322) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3322#Comment_3322 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3322#Comment_3322 Tue, 23 Feb 2010 08:37:44 -0800 Pete L. Clark
Possibly it's an unrelated bug. I certainly wouldn't know. But probably we should wait until tomorrow to see what happens. ]]>
François G. Dorais comments on "LaTeX in comments" (3320) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3320#Comment_3320 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3320#Comment_3320 Tue, 23 Feb 2010 08:06:58 -0800 François G. Dorais @Anton: Very nice addition, thank you! I've been observing a minor overall regression in LaTeX rendering when using Firefox 3.6. I often have to reload pages in order to have the LaTeX rendered (even outside comments), which didn't happen before.

]]>
Harry Gindi comments on "LaTeX in comments" (3284) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3284#Comment_3284 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3284#Comment_3284 Sun, 21 Feb 2010 21:39:35 -0800 Harry Gindi That's quite nice. It works really well!

]]>
Anton Geraschenko comments on "LaTeX in comments" (3283) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3283#Comment_3283 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3283#Comment_3283 Sun, 21 Feb 2010 21:24:25 -0800 Anton Geraschenko Ok, I've loaded a customized version of the comment function in the footer. Now the text field should be 9 rows tall and LaTeX should always render in comments.

]]>
Anton Geraschenko comments on "LaTeX in comments" (3282) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3282#Comment_3282 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3282#Comment_3282 Sun, 21 Feb 2010 20:29:00 -0800 Anton Geraschenko @Mariano: Yes, I understand that, but I would still have to maintain the code difference relative to the trunk. I guess the one thing we would gain is that you'd only end up loading the code once, rather than loading the original and then overwriting it with the modified version, but I think that browsers cache javascript heavily enough that it wouldn't make much difference.

]]>
Mariano comments on "LaTeX in comments" (3281) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3281#Comment_3281 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3281#Comment_3281 Sun, 21 Feb 2010 20:17:54 -0800 Mariano @Anton: If SE were F/OSS, you could overwrite question.js in the copy you deployed in your own server?

]]>
Anton Geraschenko comments on "LaTeX in comments" (3280) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3280#Comment_3280 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3280#Comment_3280 Sun, 21 Feb 2010 20:09:31 -0800 Anton Geraschenko @Mariano: I think overwriting the comments function may actually be reasonable. In any case, I don't really see why I would be any less reluctant to do this if SE were F/OSS.

Yes, MO's data will be available in a form which would make porting to a F/OSS app possible, but isn't right now. Beta 7 of SE will be rolled out Monday or Tuesday, and will include a way for me to get an XML dump of the database. Right now, there isn't an open alternative that I think is worth switching to, but there are some in the works.

]]>
Mariano comments on "LaTeX in comments" (3279) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3279#Comment_3279 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3279#Comment_3279 Sun, 21 Feb 2010 19:57:52 -0800 Mariano Urgh. I am waaaaaay too spoilt by open source software, I guess. In those circumstances, changing the height in CSS is probably the way to go.

(I wonder if MO's data is available in some form which would make porting it to a F/OSS app possible, were it to exist?)

]]>
Anton Geraschenko comments on "LaTeX in comments" (3278) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3278#Comment_3278 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3278#Comment_3278 Sun, 21 Feb 2010 19:49:20 -0800 Anton Geraschenko @Mariano: I can't edit question.js at all. The only way I can make that modification is by overwriting the comments function by loading some other piece of javascript (this is what I did with the editor to incorporate jsMath into the preview). I'm a bit hesitant to do this, which is why I made the change in css instead. It looks like the comments function is under 300 lines long, and I can probably get away with a very small diff, so my hesitation may be unfounded ... I'll think about it.

]]>
Mariano comments on "LaTeX in comments" (3274) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3274#Comment_3274 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3274#Comment_3274 Sun, 21 Feb 2010 18:48:05 -0800 Mariano Thanks for the bigger textareas! I have no idea what sort of access you have to the source or how/if you patch it, really, but you could change the rows="3" attribute in the textarea instead of its height. This textarea is constructed in code, as far as I can see, in the renderForm function defined in question.js:

var renderForm = function(postId, jDiv) {
      var jForm = $("#form-comments-" + postId);
      if (jForm.length > 0) {
          var form = '<table><tr><td><textarea name="comment" cols="68" rows="3" maxlength="' + maxCommentLength;
          form += '" onblur="comments.updateTextCounter(this)" ';

Changing the rows="3" in the line starting with var form=.... into rows="8" might also do the trick, slightly more cleanly.

]]>
Anton Geraschenko comments on "LaTeX in comments" (3265) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3265#Comment_3265 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3265#Comment_3265 Sun, 21 Feb 2010 11:21:11 -0800 Anton Geraschenko Changing the comments so that LaTeX renders properly when you fetch more comments is possible. Daniel LeCheminant has done it on http://math-preview.stackexchange.com/, but it requires completely replacing the javascript for managing comments, and I'm not willing to commit to maintaining such a large difference between MO and the default SE code. If you have any ideas for how to post-process the comments after they've been fetched without rewriting this code, please let me know.

The small text area for comments has always bothered me too (though I use Chrome, which allows easy resizing). I've used css to change the height of the box to 130px, which should be tall enough to fit 600 characters.

]]>
Zev Chonoles comments on "LaTeX in comments" (3262) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3262#Comment_3262 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3262#Comment_3262 Sun, 21 Feb 2010 08:34:15 -0800 Zev Chonoles Mariano comments on "LaTeX in comments" (3260) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3260#Comment_3260 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3260#Comment_3260 Sun, 21 Feb 2010 07:28:54 -0800 Mariano By the way: can we make the comment editing boxes bigger? The corresponding textarea elements currently have a rows="3" attribute, but editing up to 300 characters in 3 lines is quite annoying---specially since there is no preview.

]]>
Mariano comments on "LaTeX in comments" (3211) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3211#Comment_3211 http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3211#Comment_3211 Fri, 19 Feb 2010 06:29:47 -0800 Mariano When one clicks on the 'Show N more comments' thingie on, say, a question, the LaTeX rendering of comments which were visible goes away. IIRC, it used to be the case that the old comments stayed rendered but the newly displayed ones did not have their latex rendered...

]]>