tea.mathoverflow.net - Category Feed (LaTeX) Sun, 04 Nov 2018 12:54:38 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Report bugs with LaTeX (MathJax) rendering here. http://mathoverflow.tqft.net/discussion/637/report-bugs-with-latex-mathjax-rendering-here/ http://mathoverflow.tqft.net/discussion/637/report-bugs-with-latex-mathjax-rendering-here/ Sat, 28 Aug 2010 17:16:57 -0700 Anton Geraschenko MO LaTeX support is now powered by MathJax.

Please report bugs or feature requests here.

]]>
The Tex Symbol for the Real/Complex Numbers http://mathoverflow.tqft.net/discussion/1572/the-tex-symbol-for-the-realcomplex-numbers/ http://mathoverflow.tqft.net/discussion/1572/the-tex-symbol-for-the-realcomplex-numbers/ Sat, 06 Apr 2013 07:47:31 -0700 janoserdmann Math render delay http://mathoverflow.tqft.net/discussion/1324/math-render-delay/ http://mathoverflow.tqft.net/discussion/1324/math-render-delay/ Tue, 13 Mar 2012 07:44:38 -0700 geraldedgar I see a great math render delay today, unlike yesterday. (Safari 5.1.4 just out, is that related?) I open a page, a short question and two answers. Yesterday, rendering took a couple of seconds. Today (I timed it) 90 seconds. At least it is better than math.stackexchange, where math doesn't render at all...
I tried it with an old Safari (3.0.4) and it has the same delay, so perhaps it is not the fault of the new version. Also tried Google Chrome, Firefox, Opera. All have the delay.

]]>
curly braces! http://mathoverflow.tqft.net/discussion/1133/curly-braces/ http://mathoverflow.tqft.net/discussion/1133/curly-braces/ Wed, 07 Sep 2011 12:33:47 -0700 Michael Hardy Once works and twice fails http://mathoverflow.tqft.net/discussion/1050/once-works-and-twice-fails/ http://mathoverflow.tqft.net/discussion/1050/once-works-and-twice-fails/ Thu, 19 May 2011 09:48:27 -0700 Georges Elencwajg Could somebody please explain what is going on? Sorry if this has already been mentioned. ]]> xymatrix http://mathoverflow.tqft.net/discussion/1051/xymatrix/ http://mathoverflow.tqft.net/discussion/1051/xymatrix/ Fri, 20 May 2011 08:44:02 -0700 shenghao Why doesn't \mathit work? http://mathoverflow.tqft.net/discussion/1046/why-doesnt-mathit-work/ http://mathoverflow.tqft.net/discussion/1046/why-doesnt-mathit-work/ Fri, 13 May 2011 18:08:15 -0700 dthurston The commands \mathit seems to be completely ignored in LaTeX input. This yields exceptionally ugly results at times, eg, here. Why does this happen, and can it be fixed?

(\textit likewise does not work right.)

]]>
Tex Issue http://mathoverflow.tqft.net/discussion/1033/tex-issue/ http://mathoverflow.tqft.net/discussion/1033/tex-issue/ Sat, 30 Apr 2011 09:21:23 -0700 StevenLandsburg
The problem was cropping up in several places; I managed to solve most of with small edits, though I have no idea why those edits worked. One remains unresolved. ]]>
Posts using defunct math rendering system http://mathoverflow.tqft.net/discussion/981/posts-using-defunct-math-rendering-system/ http://mathoverflow.tqft.net/discussion/981/posts-using-defunct-math-rendering-system/ Sun, 13 Mar 2011 12:14:17 -0700 Anton Geraschenko In November of 2009, when MO was just a few weeks old, we were exploring different ways to render math. One of the systems we tried would generate images, but this system is now broken. The upshot is that there are a bunch of posts that look broken.

If you come across these posts while browsing, please do fix them so that you and others can read them. Here's a bash one-liner that should do a pretty good job. Click "edit" on the post and copy-paste the source into a file post.txt. Then run

cat post.txt | sed -e 's|(http://latex.mathoverflow.net/png[^)]*)|×|g' -e 's/\\sb /_/g' | sed -e 's/!\[\([^×]*\)\]×/$\1$/g'

and paste the output into the MO input box. This command changes something like ![V\sb {ij}](http://latex.mathoverflow.net/png?V%5F%7Bij%7D) into ![V_{ij}]×, and then into $V_{ij}$. The funny symbol × is inserted to clearly delimit the LaTeX source. It's still a good idea to make sure the correction is sane. For example, you may have to add some backquotes (these ones: `) around the dollar signs if there are lots of underscores making things italic.

]]>
Report: How to fix wonky TeX characters http://mathoverflow.tqft.net/discussion/884/report-how-to-fix-wonky-tex-characters/ http://mathoverflow.tqft.net/discussion/884/report-how-to-fix-wonky-tex-characters/ Thu, 06 Jan 2011 23:00:33 -0800 Harry Gindi For as long as MO has used MathJax, I've noticed that a lot of the characters were malfunctioning (in particular, symbols like \bigoplus, \bigotimes, \prod, \coprod, etc) (in particular, they were offset downwards (the baseline was assumed to be the middle of the character, not the bottom)).

Anyway, I realized that the thing causing the problem was that I had installed an old version of the "mathjax fonts" from the mathjax package, the public beta version of the STIX fonts, and the jsMath fonts. I deleted all of them and installed the 1.0 version of the Stix fonts, and now everything looks the way it should.

Just posting this in case anybody else had similar problems.

]]>
HTML entities in comments http://mathoverflow.tqft.net/discussion/841/html-entities-in-comments/ http://mathoverflow.tqft.net/discussion/841/html-entities-in-comments/ Tue, 14 Dec 2010 19:42:19 -0800 Mike Shulman When writing a question or answer, I often try to use HTML entities when possible instead of mathjax, since they don't take time to render. But this doesn't seem to work when writing a comment; in that case HTML entities get escaped and thus don't show the way I want. Is that a known and desired feature?

]]>
Help fix the Math on this question? http://mathoverflow.tqft.net/discussion/831/help-fix-the-math-on-this-question/ http://mathoverflow.tqft.net/discussion/831/help-fix-the-math-on-this-question/ Sun, 12 Dec 2010 07:07:03 -0800 WillieWong This question gives evil red text about bad math processing. I took a look at the LaTeX and don't see anything obviously wrong. Since MathJax preview has been broken since forever on my NetBook, if I were to proceed by trial and error I would be bumping the question all over the place. Can someone else take a look at it?

Thanks.

]]>
How MathJax is Configured on MO? http://mathoverflow.tqft.net/discussion/705/how-mathjax-is-configured-on-mo/ http://mathoverflow.tqft.net/discussion/705/how-mathjax-is-configured-on-mo/ Mon, 11 Oct 2010 03:29:07 -0700 Sadeq I asked this question on Meta.CSTheory, and the moderator offered me to ask it here.

To cut a long story short, the math support on MathOverflow (even on faketestsite) is much better than the support on CSTheory.

Specifically, when asking or answering a question, MO renders the formulas on the fly, while in CSTheory it takes quite some time before the formulas are processed.

I wanted to know how to tweak MathJax on CSTheory to behave like MO?

]]>
Brackets http://mathoverflow.tqft.net/discussion/691/brackets/ http://mathoverflow.tqft.net/discussion/691/brackets/ Thu, 30 Sep 2010 13:50:01 -0700 Andres Caicedo Help test MathJax http://mathoverflow.tqft.net/discussion/473/help-test-mathjax/ http://mathoverflow.tqft.net/discussion/473/help-test-mathjax/ Thu, 24 Jun 2010 21:54:03 -0700 Anton Geraschenko MathJax 1.0 is due to be released very soon (in a week or so?). I think there are good reasons for switching from jsMath to MathJax when that happens. MathJax seems to be more stable and have more uniform behavior across browsers. Also, it allows for the option of converting to MathML in browsers that can handle it.

I've implemented MathJax on faketestsite and I invite you to go try it out.

  • It's configured to try to convert to MathML, but to use HTML-CSS if the browser doesn't support MathML (what browsers aside from Firefox support MML?).
  • All macros that work on MO should work on faketestsite.
  • The live preview should work.
  • Math in the comments should work properly.

One issue I've encountered is that when I use Firefox and get MathML output, it looks like I don't have enough fonts installed. For example, \mathfrak and \mathcal both come out as upright roman font. Does anybody know how to solve this?

It's likely to feel a bit slow right now. There are two reasons for this. One is that I'm hosting MathJax on my home computer, so fetching the scripts and fonts may be slow. The other is that MathJax is still being optimized for speed. Both of these will be resolved by the time we start using MathJax on MO.

]]>
Problem for displaying jsMath with IE8 http://mathoverflow.tqft.net/discussion/487/problem-for-displaying-jsmath-with-ie8/ http://mathoverflow.tqft.net/discussion/487/problem-for-displaying-jsmath-with-ie8/ Tue, 06 Jul 2010 06:10:31 -0700 TheBridge
I just wanted to report that I couldn't display Latex on the forum

I have posted on user's group of jsMath and someone says that it is a bug on the forum and that is has nothing to do with jsMath

Here is the link to the post I left on this forum

http://sourceforge.net/projects/jsmath/forums/forum/592273/topic/3761789

Any help appreciated

Regards ]]>
\underbrace stopped working http://mathoverflow.tqft.net/discussion/416/underbrace-stopped-working/ http://mathoverflow.tqft.net/discussion/416/underbrace-stopped-working/ Mon, 31 May 2010 12:59:24 -0700 Ilya Grigoriev
I've used an \underbrace in a reply to some question a while ago, and I remember it working fine. Now, it doesn't work anymore: on Opera it says "undefined control sequence \underbrace", on IE 8 it just destroys jsMath (it gets to trying to render the underbrace, and freezes: the counder freezes at something line 68% completed, reprocessing math or reloading the page does not help).

Should I remove the \underbrace? Will it work again? What happened?

Thanks,
Ilya.

P.S. Offending post:
http://mathoverflow.net/questions/14529/visualisation-of-riemann-stieltjes-integrals/14536#14536

Somebody else's post with an \underbrace , same symptoms, I think:
http://mathoverflow.net/questions/13270/orthogonality-relation-for-quadratic-dirichlet-characters/13382#13382 ]]>
Latex Errors http://mathoverflow.tqft.net/discussion/415/latex-errors/ http://mathoverflow.tqft.net/discussion/415/latex-errors/ Sun, 30 May 2010 16:02:02 -0700 mlewko
It's likely this has been discussed elsewhere, but I haven't been able to find it if it has. ]]>
Editing LaTeX out of titles http://mathoverflow.tqft.net/discussion/341/editing-latex-out-of-titles/ http://mathoverflow.tqft.net/discussion/341/editing-latex-out-of-titles/ Thu, 08 Apr 2010 19:30:54 -0700 Harry Gindi To improve readability, whenever I see LaTeX in titles, I remove it and replace it with unicode characters because it doesn't display properly on the front page, and having jsMath run on the front page significantly slows down the site (this was tried a while ago). If the expression is complicated, I often add in words to compensate for the missing symbols. I was wondering if something like the following could be added to the FAQ (I'm not going to claim that this is worded well):

Please try to avoid using LaTeX in the titles, since it does not render on the front page, and this makes it harder to read. If you do put LaTeX in the title, someone may edit it out to improve readability, so please don't be surprised if this happens.

Is there any opposition to something like this, or even the entire practice of editing LaTeX out of titles?

]]>
Why do I have to reload each question to make it render? http://mathoverflow.tqft.net/discussion/292/why-do-i-have-to-reload-each-question-to-make-it-render/ http://mathoverflow.tqft.net/discussion/292/why-do-i-have-to-reload-each-question-to-make-it-render/ Wed, 17 Mar 2010 14:18:10 -0700 Sammy Black Is it possible to use xypic commands? http://mathoverflow.tqft.net/discussion/298/is-it-possible-to-use-xypic-commands/ http://mathoverflow.tqft.net/discussion/298/is-it-possible-to-use-xypic-commands/ Sun, 21 Mar 2010 16:16:54 -0700 Unknown G. What's the deal with LaTeX errors? http://mathoverflow.tqft.net/discussion/105/whats-the-deal-with-latex-errors/ http://mathoverflow.tqft.net/discussion/105/whats-the-deal-with-latex-errors/ Thu, 17 Dec 2009 10:23:53 -0800 David Speyer
When mathoverflow displays your question (or answer), there are two javascript programs which parse your text. The first is wmd. This inserts links and images, makes words bold and italic, and strips out any HTML that might be inserted by malicious users. It probably also does some other things that I am not thinking of right now. The second is jsmath. This creates equations. The important thing to understand is that jsmath is operating on the output of wmd, not on your raw input.

This can cause problems when wmd modifies your input in unexpected ways. The main workaround is to enclose your equations in back-single-quotes. (This character `.) This tells wmd to leave them alone. You can also try to make wmd produce output which will be valid LaTeX. I do this sometimes, but it is probably not good practice because wmd may change and then your solution will likely break. (Paging the experts: are there any known cases where the back-single-quote solution does not work as expected?)

Here are the main known issues:

* and _ are special characters for wmd, involved in the encoding of bold and italics. Fortunately, the contexts in which wmd modifies these characters are largely, but not completely, disjoint from those in these characters appear in equations. If you have used one of these characters, and something is going horribly wrong, you should definitely try back-single-quoting the equation that contains it.

\{ , \} and \\ Both jsmath and wmd use backslash for special purposes. When wmd sees \* , for example, it replaces it by * . When wmd sees \{ , \} or \\ , it replaces them by { , } and \ respectively. Then jsmath sees these characters and responds accordingly; which is to say, it usually does nothing which is visible to the user. Users tend to find this experience frustrating. :)

PREVIEW VERSUS DISPLAY

There is a further issue. Remember how I said that there are two javascript programs? There are actually three. For reasons known only to Fog Creek (who wrote StackExchange, the underlying software of this website), there are two different versions of wmd. One of these is used to produce the preview that you see while writing a question/answer and the other one of which is used to produce the final displayed version. They are very subtly different, but the differences tend to be exactly in the areas which effect the interaction with jsmath. To make things worse, we don't have access to the code for the wmd which does the final display, and we do not have the ability to modify it

Anton has responded by trying to write a clone of the final display wmd and using it in place of the standard preview wmd that came with the website. At this point, his clone is very good, so you probably won't see any differences between the previewed version and the final one. However, if you do spot such a difference, please mention it at http://tea.mathoverflow.net/discussion/30/2/report-bugs-with-latex-jsmath-rendering-here/#Item_34 ]]>
Report problems with the LaTeX sidebar here. http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/ http://mathoverflow.tqft.net/discussion/27/report-problems-with-the-latex-sidebar-here/ 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.

]]>
What are our options for getting LaTeX support? http://mathoverflow.tqft.net/discussion/3/what-are-our-options-for-getting-latex-support/ http://mathoverflow.tqft.net/discussion/3/what-are-our-options-for-getting-latex-support/ Wed, 21 Oct 2009 10:06:10 -0700 Scott Morrison What is the preferred mark-up for LaTeX? http://mathoverflow.tqft.net/discussion/4/what-is-the-preferred-markup-for-latex/ http://mathoverflow.tqft.net/discussion/4/what-is-the-preferred-markup-for-latex/ Wed, 21 Oct 2009 10:06:45 -0700 Scott Morrison