# LaTeX PopUps

1. Jul 14, 2007

### ehrenfest

The LaTex pop-up that results from clicking on a LaTeX block sometimes has syntax different from the original post for example,

$$\psi(x,t) = \int{U(x,t;xsingle-quote,tsingle-quote)\psi(xsingle-quote,tsingle-quote)dxsingle-quote}$$ is from recent post of mine.

It would be nice if all of those LaTex pop-ups were copy-and-pastable :)

2. Jul 14, 2007

### VietDao29

What do you mean by different? To me, they look axactly the same. Your syntax in the post, and the pop-up (you can quote ur self, or edit the post to see the syntax) are identical.

I'm not very sure if I understand you correctly. =.="

3. Jul 15, 2007

### ehrenfest

Yes I probably explained that a bit unclearly. I went to the following page
https://www.physicsforums.com/showthread.php?t=177059 and copied a Latex block from that post and pasted it here in order to show how copying and pasting can mess up you're LaTeX. However, to see how the syntax in a pop-up can give you a different result than the original compare my first latex block in this thread to my first latex block in the linked thread and see that the pop-up gives the same result. I think it is just the " ' "s that are different.

4. Jul 15, 2007

### VietDao29

Ah, yes, I got it.

Well, I noticed that a while ago. Whenever, you type in 's in your LaTeX, it'll be shown as single-quote when you try to see the syntax by clicking on it. However, when you quote it, it'll show you exactly how it was written, i.e the 's. So instead of clicking, and pasting. You can try quoting instead.

5. Jul 15, 2007

### -Job-

I believe the reason for this is a security issue we had a while back.
We should be replacing single quote characters with & #39; (no space after the &) which renders as ' and is safe.

6. Jul 15, 2007

### CompuChip

Wasn't there a \prime ($\prime$) command in LaTeX?

7. Jul 15, 2007

### Schrodinger's Dog

Not related, but I haven't got my head around spacing in latex, how do you introduce a space, I can see how to align text but not to introduce a blank.

8. Jul 15, 2007

### ranger

Just use a "\" between each word as in This\ is\ how\ to\ add a\ whitespace\ in\ Latex
$$This\ is\ how\ to\ add\ a\ whitespace\ in\ Latex$$

9. Jul 15, 2007

### Schrodinger's Dog

Ah $$thank\ you$$ very helpful.

test

$$\int {x^2}\ dx\rightarrow \frac{1}{3}\ x^3\ +\ c$$

Last edited: Jul 15, 2007
10. Jul 15, 2007

### Dr Transport

here is how to add spaces in LaTex....

small \,

medium \:

large\;

quad \quad

double quad \qquad

11. Jul 15, 2007

### robphy

I think we're in math mode, by default:

ab
$$ab$$

a b
$$a b$$

a\ b
$$a\ b$$

a\!b
$$a\!b$$ a negative thin space

a\hspace{1in}b
$$a\hspace{1in}b$$

a\hspace{1in}b\hspace{-.5in}c
$$a\hspace{1in}b\hspace{-.5in}c$$

12. Jul 16, 2007

### CompuChip

don't forget, you can use the \text command if you $$\text{just want to make text, which looks better} than\ text\ with\ manual\ spacing\ in\ \mu\forall\theta\,\mathcal{M}\circ\mathrm{d}\epsilon$$.

13. Jul 16, 2007

### neutrino

Nice. Thanks. I think we can now make all posts look like textbooks.

14. Jul 16, 2007

### chroot

Staff Emeritus
This is not an option without rewriting part of the vB code so that HTML escapes are preserved as escapes in quotes.

- Warren

15. Jul 16, 2007

### -Job-

I think that won't be an issue if you do the replacement when displaying a post, rather than when posting.

16. Jul 16, 2007

### chroot

Staff Emeritus
That won't work either, because JavaScript will actually interpet HTML escapes in statements being executed, too. They may be a way to turn that "feature" off, but, if there is, I don't know it.

- Warren

17. Jul 17, 2007

### Schrodinger's Dog

Indeed thanks a lot for all the answers. Now my latex will look polished

18. Jul 19, 2007

### makc

Check here: $$f"$$, this replaces " with &quote; you could also simply replace ' with \' just before writing whatever is there after document.write(', or even change it to document.write(" since " are already escaped (that is, if there are no " in tags).

If you are willing to show us relevant parts of code, I might be able to suggest the most transparent fix.

Last edited: Jul 19, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?