It is currently Thu, 30-03-17, 20:24 GMT

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Mathematical Formulae
PostPosted: Fri, 06-09-13, 12:45 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4433
Location: Hamburg, Germany
In our CM forums the chances are not so small that a decent rendering of mathematical formulae is urgently desired.

Unfortunately, the LaTeX module is said not to work very reliably for phpbb3 forums.
So what to do?

This problem is also quite familiar to me professionally:

Theoretical research physicists have to give plenty of talks with formulae. In the olden days we all used LaTeX for writing them on the foils. But if one has to give e.g. review talks at conferences that usually involve many pictures as well, the easiness of placing them with MS Powerpoint is also very much appreciated. Since the intrinsic capability of composing formulae in Powerpoint is meager (as to be expected ;-) ), one also needs some extra tricks here...

What works pretty well is the following recipe:

Use e.g. an external LaTeX installation to compose your formulae and produce a PDF file thereof. Alternatively, use someone elses formulae in a PDF file or (like me) dump Maple/Mathematica workfiles into PDF. Let us simply assume you have a PDF file containing the formulae in question...

Then you load these into your PDF reader and magnify the display to 200 (- 400) % (Try out best setting once. This is crucial!!). Use the PDF reader's image selection cursor, mark appropriate rectangles containing your formulae and copy the stuff to your clipboard (image mode NOT text mode!).

If this is done, load the GIMP and paste your fomula images from the clipboard onto the GIMP canvas. If you are in a hurry, just save each formula into a .JPG file. Some readers (Linux) also allow to save the selected images directly into JPG files (without using the clipboard). With the JPG format you'll get a white background behind the formulae, since JPG's don't support transparency!

If you are more of a perfectionist, do this with the formula display in GIMP:

With a click you can simply place the current background color into the Alpha channel which simply means that you cleanly generate a transparent background! In order to retain the transparency in your saved file, you need to use the lossless PNG format.

With mouse_right click on colors->color to Alpha...In the upcoming dialog, chose your current background color (white) and click OK. Then the background of your formula turns transparent. This also works fine with anti-aliased fonts! Save the formula as a PNG. If you can upload the formulae to some server (e.g. ibiblio, ...) then you may avoid the built-in "attachment" tool and get e.g. the following pretty good quality with a color-matched background:

Image

The appearance of the much quicker JPG method you can examine e.g. in my recent galactic halo stars post, viewtopic.php?f=11&t=544#p10516

Fridger


Top
 Profile  
 
PostPosted: Tue, 10-09-13, 18:15 GMT 
Offline
User avatar

Joined: Fri, 02-07-10, 11:20 GMT
Posts: 64
Another way to go about this is to use this LaTeX editor

1) Type in the LaTeX
2) Select png, appropriate resolution setting
3) Right click on equation and click "copy image URL" (or its equivalent on your OS and browser)
4) Place that url inbetween the img tags in the post.

Image


Top
 Profile  
 
PostPosted: Wed, 11-09-13, 8:37 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4433
Location: Hamburg, Germany
Excellent!

Perhaps it's worth adding that each of the two methods has its advantages, depending on the kind of application:

My method above is very handy, if you got the formulae already (e.g. after PDF conversion from Maple / Mathematica or in a PDF-formatted paper or (review) talk of yourself or others, etc).

If you still have to compose the LaTeX part, then such a editor (with online formula display) is unbeatable.

Note also that in the LaTeX editor quoted by Hungry, you may select whether you want transparent or some colored background and also what type of font and which font size you prefer!

Fridger

PS: Anybody recognizes that formula appearing twice on this page? ;-)


Top
 Profile  
 
PostPosted: Wed, 11-09-13, 9:57 GMT 
Offline
Site Admin
User avatar

Joined: Thu, 30-08-07, 22:52 GMT
Posts: 2726
Location: France, South, not far from Montpellier
t00fri wrote:
PS: Anybody recognizes that formula appearing twice on this page?

Yes of course!

:mrgreen:


Top
 Profile  
 
PostPosted: Wed, 11-09-13, 10:03 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4433
Location: Hamburg, Germany
ElChristou wrote:
t00fri wrote:
PS: Anybody recognizes that formula appearing twice on this page?

Yes of course!

:mrgreen:


Hi hi. :roll:

But it's a famous formula not unrelated to what we are doing here...


Top
 Profile  
 
PostPosted: Wed, 11-09-13, 23:56 GMT 
Offline
User avatar

Joined: Fri, 02-07-10, 11:20 GMT
Posts: 64
I'm not exactly sure but it looks like the Schwarzschild metric to me.


Top
 Profile  
 
PostPosted: Thu, 12-09-13, 9:05 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4433
Location: Hamburg, Germany
Hungry4info wrote:
I'm not exactly sure but it looks like the Schwarzschild metric to me.


Yes, it's the metric of a Schwarzschild Black Hole of mass M. G is Newton's gravitational constant and units of lightspeed c = 1 are used as usual.

Fridger


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group