# Testing new latex processor

by Greg Bernhardt
Tags: latex
 Sci Advisor P: 1,593 Why not choose \$as the LaTeX delimiter? Then there is no collision with ordinary dollar signs. Of course, it means you still can't copy and paste directly from LaTeX documents, but with your other solutions, you can't do that anyway. Edit: Of course, then we'd have trouble writing Perl regular expressions in our posts! How does MathJax work; i.e., when does it run in the processing sequence? It seems to be a Javascript that runs on the completed page, which is long after the vBulletin parser processes the posts. In that case, I think we're stuck with 'itex' and 'tex'. I would recommend against making the delimiter some random symbol. The$ sign is standardized already, but if it can't be the $sign, it shouldn't be some other symbol. Emeritus Sci Advisor PF Gold P: 9,356  Quote by Ben Niehoff Why not choose \$ as the LaTeX delimiter? Then there is no collision with ordinary dollar signs.
It's significantly harder to to type than ££.
(Edit: If you're that attached to standard usage, doesn't it also bother you that your suggestion is a complete reversal of the default "$for itex", "\$ for dollar sign"?)

 Quote by Ben Niehoff It seems to be a Javascript that runs on the completed page, which is long after the vBulletin parser processes the posts. In that case, I think we're stuck with 'itex' and 'tex'.
As I said, all that's required is a simple edit of a MathJax configuration file. (OK, maybe not if you specifically want to use \$as a delimiter). Emeritus Sci Advisor HW Helper Thanks PF Gold P: 11,731  Quote by Ben Niehoff I would recommend against making the delimiter some random symbol. The$ sign is standardized already, but if it can't be the $sign, it shouldn't be some other symbol. Why not? What's wrong with using something like ##? Emeritus Sci Advisor PF Gold P: 9,356  Quote by Fredrik The simple option is: ££...££ for itex $$...$$ for tex Almost everyone has # and/or £ on the 3 key, and$ on the 4 key. Most (all?) of the ones who don't can still type those symbols easily. The complicated option is: ££...££, ##...##, §§...§§, ··...·· for itex. $$...$$, ¢¢...¢¢ for tex. The §,· and ¢ characters are minor improvements for Germans, Spaniards, and French Canadians respectively. The only advantage it has for them is that it allows them to use either Shift+3 for itex and Shift+4 for tex, or Alt Gr+3 for itex and Alt Gr+4 for tex, instead of e.g. Alt Gr+3 for itex and Shift+4 for tex. Keyboard layouts at Wikipedia.
I had another look a the keyboard layout page. I had forgotten that ££ is a bad option for people with a US keyboard. ## is better for them. But most of the rest of the world should prefer ££ (based on the location on the keyboard), so here's a third option:
##...## or ££...££ for itex
$$...$$ for tex
Emeritus
 Quote by Fredrik ##...## or ££...££ for itex $$...$$ for tex
 P: 27 Why is my latex code not processed? \frac{i \hbar t}{m}[\itex] [itex]\frac{i\hbart}{m}[\itex] [itex]\frac{i\hbar t}{m}[\itex] Emeritus Sci Advisor PF Gold P: 9,356  Quote by Juqon Why is my latex code not processed? Your closing itex tags are wrong. Use /, not \.  P: 27 Oh, of course, thank you! :)  P: 27 And what about this code? http://www.physicsforums.com/showpos...33&postcount=6 Mentor P: 12,069  Quote by Juqon And what about this code? http://www.physicsforums.com/showpos...33&postcount=6 As a start, you need to put some spaces in with that code. After 50 consecutive characters without a space, the processor will automatically insert a space. By the way, you don't need the {} brackets when they surround a single character, i.e. t^{2} can be simply replaced with t^2. That will give you fewer brackets, and be easier to debug in case the numbers of {'s and }'s don't match. Admin P: 23,538  Quote by Juqon And what about this code? http://www.physicsforums.com/showpos...33&postcount=6 First - split it into separate equations replacing \\ with [/tex]- you will see some of the equations are parsed correctly, while others are not. Emeritus Sci Advisor PF Gold P: 9,356  Quote by Juqon And what about this code? http://www.physicsforums.com/showpos...33&postcount=6 What the other two guys said. As an alternative to multiple tex tags, use the align environment. That will make the \\ code work. Like this: \begin{align} a &= b\\ &=c \end{align} Tex tags are actually not necessary when the latex code starts with a begin statement, and ends with the corresponding end statement. Also, please don't post equations with lines that are that long. They are seriously annoying in a browser window. So please insert a few extra \\ to make the lines shorter.  P: 27 Absolutely right, and the space broke the command \r ight. And that with the new line separation was very motivating. Very helpful, thanks!  P: 12 Hello! I am writing because I do not know how to write the following formula in MathJax I have read this entire thread and information about extracurricular parentheses, but in this case it's not that simple. Did you have problems with habits relating to of the old system? What about tables? It is not possible to create them? [itex]\small\overbrace{a,...,a}^{\mbox{k a's}}, \underbrace{b,...,b}_{\mbox{l b's}}\hspace{10} \large\underbrace{\overbrace{a...a}^{\mbox{k a's}}, \overbrace{b...b}^{\mbox{l b's}}}_{\mbox{k+l elements}} $\small\overbrace{a,...,a}^{\mbox{k a's}}, \underbrace{b,...,b}_{\mbox{l b's}}\hspace{10pt} \large\underbrace{\overbrace{a...a}^{\mbox{k a's}}, \overbrace{b...b}^{\mbox{l b's}}}_{\mbox{k+l elements}}$ $\left[ \frac{X}{Y}\right ]$ On mathtex that gives Emeritus Sci Advisor PF Gold P: 9,356  Quote by paul-g I am writing because I do not know how to write the following formula in MathJax You can't open with "tex" and close with "itex" or vice versa. You need to specify a unit for the hspace command. Note sure about the tables. [tex]\small\overbrace{a,...,a}^{\mbox{k a's}}, \underbrace{b,...,b}_{\mbox{l b's}}\hspace{10pt} \large\underbrace{\overbrace{a...a}^{\mbox{k a's}}, \overbrace{b...b}^{\mbox{l b's}}}_{\mbox{k+l elements}}
$$\left[ \frac{X}{Y}\right ]$$