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

Bug LaTex oddness

  1. Jan 3, 2009 #1

    Vanadium 50

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2015 Award

    If you check out this thread, you'll see some LaTeX strangeness.

    Specifically, not all the images appear, and the ones that do appear seem not to match the LaTeX source. It's almost as if the images are offset: i.e. the n-th bit of source ends up displayed at the (n+3)-th slot.
     
  2. jcsd
  3. Jan 3, 2009 #2

    Gokul43201

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Testing: [itex]\nu_\mu,~\nu_{\mu}[/itex]

    [tex]\nu_\mu,~\nu_{\mu}[/tex]

    Seems to be okay here. Can't think of anything obvious that would do this just there.

    PS: You should try inline [itex]\LaTeX[/itex] for little bits in the middle of a sentence/paragraph.
     
  4. Jan 4, 2009 #3

    Redbelly98

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    Vanadium,

    You might try editing your entry that has the odd LaTex, and then SAVE it without actually changing anything. At least, that trick worked on a different bug that occurred in the PF Library ... see my comment of Jan1-09 here:
    https://www.physicsforums.com/library.php?do=view_item&itemid=25
     
  5. Jan 4, 2009 #4

    Vanadium 50

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2015 Award

    Redbelly. I just did that. It looks the same, I'm afraid.
     
  6. Jan 4, 2009 #5

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    It's because some of your tags were [TEX] and some were [tex]. For some reason, the software doesn't like this. I've amended them, and now it looks OK to me.
     
    Last edited: Jan 4, 2009
  7. Jan 4, 2009 #6

    Vanadium 50

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2015 Award

    Thanks, Cristo.

    How odd that upper case works and lower case works, but you can't mix them.
     
  8. Jan 10, 2009 #7

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    I've seen that happen when editing LaTex. Clicking the refresh button clears it up. Now, does anyone know why it is necessary to "refresh" when you when you have just saved an edit?
     
  9. Jan 10, 2009 #8

    Hootenanny

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    When you submit a post containing latex tags the server recognises the tags and generates the latex output from your source. The output is saved as an image file with name corresponding to the post number and the equation number in that post: "[post number]-[equation number].png". So for example, if I were to create a latex equation in this post, it's file name would be "2029042-0.png". If I were then to create an additional equation, it would be named "2029042-1.png" and so forth.

    Now once the server has created the image, it replaces the latex source in your post with the URL of the latex image. When you click edit the server then replaced the latex image with the latex source so you can edit it. Now, when you edit a latex equation and click save, the server re-generates the latex image and overwrites the existing latex image file; so if I were to edit the equation corresponding to "2029042-0.png" then the new latex image also be called "2029042-0.png" and would replace the old file.

    Unfortunately, the way VBulletin is coded means that when you click save, only the text in your post is refreshed, meaning that you will be viewing cached images. This is good in one respect in that you don't have to waste bandwidth re-downloading images if you simply want to edit a post, however bad in another respect if you have edited a latex image.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: LaTex oddness
  1. Oddness in library (Replies: 2)

  2. Latex test (Replies: 2)

  3. Facebook and Latex (Replies: 3)

  4. LaTeX incomplete (Replies: 2)

  5. Latex broken? (Replies: 2)

Loading...