Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Feb 2, 2013 #1

    Fredrik

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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. jcsd
  3. Feb 2, 2013 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

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

    [itex]ih\frac{\partial\P si}{\partial{t}}=\hat{H}\Psi[/itex]

    [itex]ih\frac{\partial\Psi}{\partial{t}}=\hat{H}\Psi[/itex]
     
  4. Feb 2, 2013 #3
    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.
     
  5. Feb 2, 2013 #4

    micromass

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2016 Award

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

    \hbar
     
  6. Feb 2, 2013 #5
    Re: An exact copy of a working LaTeX code doesn't work!?

    Success!

    Thank you DH
     
  7. Feb 2, 2013 #6

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    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.
     
  8. Feb 2, 2013 #7

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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. :frown:
     
  9. Feb 2, 2013 #8

    micromass

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2016 Award

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

    Sowwy :frown: I'll change it.
     
  10. Feb 2, 2013 #9

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

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

    Of course, you're joking, right? Don't change it.
     
  11. Feb 2, 2013 #10

    Fredrik

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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
     
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: An exact copy of a working LaTeX code doesn't work?
  1. Latex is not working (Replies: 2)

  2. Firefox doesn't work (Replies: 12)

Loading...