Insert PNG Files in Physics Forum: Guide

  • Thread starter Thread starter Buzz Bloom
  • Start date Start date
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: [tex]E = \frac{mc^2}{\sqrt{1 - v^2/c^2}}[/tex]
  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}} # #
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 64 ·
3
Replies
64
Views
7K
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K