Unlimited LaTeX Preview with Chrome | Physics Forums

  • Context: LaTeX 
  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The thread discusses the functionality and usability of a new LaTeX preview tool available on Physics Forums, particularly focusing on its performance across different web browsers and operating systems. Participants share their experiences, report issues, and suggest potential improvements related to the tool's operation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants report successful use of the LaTeX preview tool in various browsers, including Chrome, Firefox, and Opera, while others encounter issues, particularly with Internet Explorer.
  • One participant suggests that the problems with LaTeX previews may be related to browser caching and the way file names are assigned to graphics, proposing a potential solution involving unique file names for each preview.
  • Several users express appreciation for the tool, indicating it enhances their ability to preview LaTeX while composing posts.
  • Some participants share alternative methods for saving work when needing to leave the computer, such as copying text to Notepad.
  • A request for a complete reference for LaTeX symbols is made, specifically for Dirac notation.

Areas of Agreement / Disagreement

There is no consensus on the functionality of the LaTeX preview tool, as experiences vary widely among participants. Some report it works well, while others face significant issues.

Contextual Notes

Participants mention specific browser versions and operating systems, highlighting that performance may depend on these factors. There are also unresolved technical details regarding the caching issue and its implications for the tool's reliability.

Who May Find This Useful

This discussion may be useful for forum members interested in LaTeX typesetting, particularly those who frequently compose posts involving mathematical notation and seek effective previewing tools.

Messages
19,910
Reaction score
10,920
You can now use this page for unlimited previewing and testing
https://www.physicsforums.com/mathjax/preview.html

Works best in Chrome. In FF there is a permission problem and the font is a little crude.

I'll look to see how we can add this to the post editor.
 
Last edited:
Physics news on Phys.org
Cool! Works in FF for me (with Windows XP Pro)

Thank you Greg, I'll add it to the LaTeX sticky.
 
I am sad to report that it did not work for me. The one in the link that someone else posted in the other thread did, however.

I typed something into the text box and clicked the side space and nothing happened.
 
Thank you so much for this! I was having some trouble with my previews when replying to people and this will come in handy a lot! Thanks again! Went straight into my bookmarks when I saw it's capabilities.
 
Works in FF 3.0 on OS X.
 
~christina~ said:
I am sad to report that it did not work for me. The one in the link that someone else posted in the other thread did, however.

I typed something into the text box and clicked the side space and nothing happened.
What browser and OS is this on?
 
Works under Opera/Windows XP.
 
Works with Firefox 3.6.9 under Vista, but the very first time I used it, it took about 5-10 secs to get the preview, after that it was very fast.

It doesn't work with Internet Explorer 8.0 under Vista: the displayed preview is always "You typed: ${}$" and messages at the bottom of the screen say that various JS files failed to load.
 
Just in case anybody might be interested, I think I know the root cause of the weird LaTeX issue that everyone seems to have trouble with.

If I had to guess, the original LaTeX issue involves the browser's cache combined with the way PF assigns file names to graphics.

I'm not certain that is the case, but suspect that it's at least something like it. Here is a more detailed scenario of what I'm suspecting:

(a) User originally hits the preview button.
(b) PF processes the LaTeX code, and creates .png graphics files of the equations. Each .png graphics file gets assigned a name and a corresponding link (something or other short of like https://www.physicsforums.com/latex_images/28/2886657-0.png" , but with a slightly different location [in a special "preview" directory] and a different file name).
(c) The image gets downloaded to user via normal http protocol and displayed on the screen
(d) The link is also cached locally on the user's machine.
(e) The user makes an edit to the equation and previews it again.
(f) PF creates a new graphic overwriting the old image, re-using the same file name.
(g) Via http protocol, browser thinks that the local cached graphic is the same graphic as the one on the server (after all, they share the same URL and file name).
(h) Cached graphic gets displayed on the browser.
(i) Only by hitting "refresh" will cause the browser to reload the server content, bypassing the cache.

A solution to this might be to change the algorithm making sure that the PF server does not recycle file names for previews. Of course, that means that more graphics files get stored on the server. So maybe a fix might also involve automatically deleting "preview" graphics files after the preview session is complete, but still not recycling file names (the index for the file names keeps incrementing, even if the files are deleted).
 
Last edited by a moderator:
  • #10
Under Opera it is enough to right click the LaTeX png and select Reload image.
 
  • #11
DrGreg said:
It doesn't work with Internet Explorer 8.0 under Vista: the displayed preview is always "You typed: ${}$" and messages at the bottom of the screen say that various JS files failed to load.

This was what I was seeing.

It works on firefox 3.6.10 for me.
 
  • #12
If I am working on a post, especially one that includes Latex, and I need to leave my computer for an extended time, is there a good way of saving the post and previewing it without actually submitting it? Should the blogs be used in this way?

Bob S
 
  • #13
Bob S said:
If I am working on a post, especially one that includes Latex, and I need to leave my computer for an extended time, is there a good way of saving the post and previewing it without actually submitting it? Should the blogs be used in this way?

Bob S

I would copy paste to notepad and saved locally.
 
  • #14
Borek said:
I would copy paste to notepad and saved locally.
That's exactly what I do, and then I delete the Notepad text after I have made the post.
 
  • #15
I would like the Latex \operator for Dirac bras and kets: <ψ*|function|ψ>. Is there a complete reference for Latex symbols?

Thanks.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
371
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K