Insert PNG Files in Physics Forum: Guide

  • Thread starter Thread starter Buzz Bloom
  • Start date Start date
AI Thread Summary
To insert PNG files into a Physics Forum message, users can either use the image BBCode with the image URL or upload the image as an attachment. A more efficient method involves copying the LaTeX code from Wikipedia's "math" tags and pasting it into the forum message. Users should wrap the code with "tex" tags or use "$" symbols for inline rendering. The preview feature can be utilized to ensure the equation displays correctly before posting. This approach allows for clear communication of equations without relying solely on image files.
Buzz Bloom
Gold Member
Messages
2,517
Reaction score
465
I frequently want to discuss in a Physics Forum an equation in a Wikipedia article. I can acquire an equation there as a PNG file. Is there a way I can insert a PNG file into a forum message?
 
Physics news on Phys.org
Either use the image bbcode (there is a button in the editor) using the image URL or download the image and upload it as an attachment and then you can insert it into the message.
 
Buzz Bloom said:
I frequently want to discuss in a Physics Forum an equation in a Wikipedia article. I can acquire an equation there as a PNG file. Is there a way I can insert a PNG file into a forum message?
As Wikipedia uses LaTeX like our website does, there's a better way.
  1. Start to edit the Wikipedia page, look for the equation which will be coded in between "math" tags, e.g.
    Code:
    <math>E = \frac{mc^2}{\sqrt{1 - v^2/c^2}}</math>
  2. Copy the code between the tags (excluding the tags) and paste it into your message on this website.
  3. Add "tex" tags e.g.
    Code:
    [ tex ]E = \frac{mc^2}{\sqrt{1 - v^2/c^2}}[ /tex ]
    but without the spaces in the square brackets
  4. Use the "Preview..." button to check that it works: E = \frac{mc^2}{\sqrt{1 - v^2/c^2}}
  5. Don't forget to close the Wikipedia page without saving.
 
Last edited:
Many thanks to both Greg Bernhardt and DrGreg.
 
Instead of using [ tex ] or [ itex ] tags (without the extra spaces) as DrGreg mentioned, I prefer to use $ or # tags, as there is less typing to do.

So instead of this example of DrGreg's:
Code:
[ tex ]E = \frac{mc^2}{\sqrt{1 - v^2/c^2}}[ /tex ]

I would do this:
Code:
$ $ E = \frac{mc^2}{\sqrt{1 - v^2/c^2}} $ $
Again, without the extra spaces between each pair of $ characters.

To render inline, as opposed to standalone expressions or equations, a pair of # characters at front an back is equivalent to the [ itex ] and [ /itex ] tags.
Code:
# # E = \frac{mc^2}{\sqrt{1 - v^2/c^2}} # #
 
I want to thank those members who interacted with me a couple of years ago in two Optics Forum threads. They were @Drakkith, @hutchphd, @Gleb1964, and @KAHR-Alpha. I had something I wanted the scientific community to know and slipped a new idea in against the rules. Thank you also to @berkeman for suggesting paths to meet with academia. Anyway, I finally got a paper on the same matter as discussed in those forum threads, the fat lens model, got it peer-reviewed, and IJRAP...
About 20 years ago, in my mid-30s (and with a BA in economics and a master's in business), I started taking night classes in physics hoping to eventually earn the science degree I'd always wanted but never pursued. I found physics forums and used it to ask questions I was unable to get answered from my textbooks or class lectures. Unfortunately, work and life got in the way and I never got further the freshman courses. Well, here it is 20 years later. I'm in my mid-50s now, and in a...

Similar threads

Replies
7
Views
2K
Replies
4
Views
1K
Replies
3
Views
2K
Replies
13
Views
2K
Replies
32
Views
4K
Replies
3
Views
3K
Back
Top