# An exact copy of a working LaTeX code doesn't work?

1. Feb 2, 2013

### Fredrik

Staff Emeritus
An exact copy of a working LaTeX code doesn't work!?

OK, someone needs to explain this to me, because my head is about to explode. Forum member Jorriss has a LaTeX code in his signature. It includes the LaTeX code \Psi in two places. The second one is displayed correctly. The first one isn't.

My first thought was that this has to be the 50 character bug, but that didn't seem possible, since there wasn't enough stuff before the first \Psi. I got curious, so I did a right-click, "show math as", "TeX commands", and copied the LaTeX code. I typed four dollar signs in the quick reply box, pasted the LaTeX code in the middle, and did a preview. The first \Psi was still messed up. Then I typed the exact same code below the code that doesn't work, and this time it worked.

So now I thought OK, Jorriss must have done something funny here on purpose. Maybe the character that looks like an i isn't really an i, or something like that. So I deleted the character that looked like an i, typed an i, and previewed. It still didn't work. OK, so it's not the i. Then I repeated the procedure with the s, and then the P, and then the \, and it still didn't work!!! I had replaced all the characters, and it still didn't work.

$$\P​si$$
$$\Psi$$
I have made one observation that may be relevant. My FireFox underlines "si" in the first \Psi, as if it's misspelled, and doesn't underline "si" in any of the other Psis in this post.

2. Feb 2, 2013

### D H

Staff Emeritus
Re: An exact copy of a working LaTeX code doesn't work!?

$ih\frac{\partial\P si}{\partial{t}}=\hat{H}\Psi$

$ih\frac{\partial\Psi}{\partial{t}}=\hat{H}\Psi$

3. Feb 2, 2013

### Jorriss

Re: An exact copy of a working LaTeX code doesn't work!?

Now if only someone could tell me how to make h, h bar.

4. Feb 2, 2013

### micromass

Re: An exact copy of a working LaTeX code doesn't work!?

\hbar

5. Feb 2, 2013

### Jorriss

Re: An exact copy of a working LaTeX code doesn't work!?

Success!

Thank you DH

6. Feb 2, 2013

### AlephZero

Re: An exact copy of a working LaTeX code doesn't work!?

There is an "invisible" character between the P and s in the first "Psi".

If you step the cursor over the text one character at a time with the arrow keys, you need an extra step to get past the invisible character.

FWIW I cut and pasted the text into Notepad, then saved it in Unicode format, then looked at the file in hex. I can see the extra character, but it seems to be something completely invalid - outside the range of valid Unicode characters.

7. Feb 2, 2013

### LCKurtz

Re: An exact copy of a working LaTeX code doesn't work!?

Dang it $\mu \text{-mass}$, all that does is remind me about all the stuff I have forgotten since I studied it 50 years ago.

8. Feb 2, 2013

### micromass

Re: An exact copy of a working LaTeX code doesn't work!?

Sowwy I'll change it.

9. Feb 2, 2013

### LCKurtz

Re: An exact copy of a working LaTeX code doesn't work!?

Of course, you're joking, right? Don't change it.

10. Feb 2, 2013

### Fredrik

Staff Emeritus
Re: An exact copy of a working LaTeX code doesn't work!?

Thank you. It was driving me nuts. I tried something similar to what you did, after reading your suggestion. The output made me LOL a bit.

Code (Text):

$echo P​si > foo.txt$ cat -v foo.txt
PM-bM-^@M-^Ksi