tea.mathoverflow.net - Discussion Feed (LaTeX in comments) 2018-11-04T13:47:01-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher Harald Hanche-Olsen comments on "LaTeX in comments" (5645) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=5645#Comment_5645 2010-05-26T14:42:14-07:00 2018-11-04T13:47:01-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ 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 ... 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 2010-05-26T10:20:25-07:00 2018-11-04T13:47:01-08:00 faheem http://mathoverflow.tqft.net/account/232/ Hi. This looks like a reasonable place to post this, so rather than opening a new thread, I will.I just posted a question, and a couple of comments related to that question. I can preview the ...
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 2010-02-23T22:19:27-08:00 2018-11-04T13:47:01-08:00 Pete L. Clark http://mathoverflow.tqft.net/account/64/ Well now it's tomorrow (so to speak), and the problem remains: on Firefox 3.6, the latex / jsmath stuff in questions and answers does not render properly until the page is reloaded. (The same is ... Pete L. Clark comments on "LaTeX in comments" (3322) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3322#Comment_3322 2010-02-23T08:37:44-08:00 2018-11-04T13:47:01-08:00 Pete L. Clark http://mathoverflow.tqft.net/account/64/ @Francois(gdorais): I've noticed the same thing. It started yesterday, so I've been assuming it had something to do with the "construction work" that the banner claims has been / ...
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 2010-02-23T08:06:58-08:00 2018-11-04T13:47:01-08:00 François G. Dorais http://mathoverflow.tqft.net/account/144/ @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 ... @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 2010-02-21T21:39:35-08:00 2018-11-04T13:47:01-08:00 Harry Gindi http://mathoverflow.tqft.net/account/55/ That's quite nice. It works really well! 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 2010-02-21T21:24:25-08:00 2018-11-04T13:47:01-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ 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. 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 2010-02-21T20:29:00-08:00 2018-11-04T13:47:01-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ @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, ... @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 2010-02-21T20:17:54-08:00 2018-11-04T13:47:01-08:00 Mariano http://mathoverflow.tqft.net/account/61/ @Anton: If SE were F/OSS, you could overwrite question.js in the copy you deployed in your own server? @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 2010-02-21T20:09:31-08:00 2018-11-04T13:47:01-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ @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 ... @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 2010-02-21T19:57:52-08:00 2018-11-04T13:47:01-08:00 Mariano http://mathoverflow.tqft.net/account/61/ 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 ... 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 2010-02-21T19:49:20-08:00 2018-11-04T13:47:01-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ @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 ... @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 2010-02-21T18:48:05-08:00 2018-11-04T13:47:01-08:00 Mariano http://mathoverflow.tqft.net/account/61/ 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 ... 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 2010-02-21T11:21:11-08:00 2018-11-04T13:47:01-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ 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 ... 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 2010-02-21T08:34:15-08:00 2018-11-04T13:47:01-08:00 Zev Chonoles http://mathoverflow.tqft.net/account/123/ I've experienced both of the problems Mariano's describing. As for resizing the comment boxes, that's one of the reasons I switched to Chrome - it makes all entry fields resizable. Mariano comments on "LaTeX in comments" (3260) http://mathoverflow.tqft.net/discussion/228/latex-in-comments/?Focus=3260#Comment_3260 2010-02-21T07:28:54-08:00 2018-11-04T13:47:01-08:00 Mariano http://mathoverflow.tqft.net/account/61/ 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 ... 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 2010-02-19T06:29:47-08:00 2018-11-04T13:47:01-08:00 Mariano http://mathoverflow.tqft.net/account/61/ 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 ... 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...

]]>