Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2005-09-14 21:28:28

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

The math tag

I have now got LaTeX working for those who know what it is!

Example:

I did this using:

The server creates a ".gif" file each time, so to avoid slowing things down, only use it when plain old "x=y+2" won't do!

Another example:

Another example (definition of derivative):

Another example:


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#2 2005-09-14 22:13:14

Jai Ganesh
Administrator
Registered: 2005-06-28
Posts: 48,423

Re: The math tag

Great....
It would take some time to be familiar with the codes smile


It appears to me that if one wants to make progress in mathematics, one should study the masters and not the pupils. - Niels Henrik Abel.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Offline

#3 2005-09-15 09:38:26

Zach
Member
Registered: 2005-03-23
Posts: 2,075

Re: The math tag


Boy let me tell you what:
I bet you didn't know it, but I'm a fiddle player too.
And if you'd care to take a dare, I'll make a bet with you.

Offline

#4 2005-09-15 09:53:36

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

Great! This can be the place to test stuff (the "sandbox") - if it loads really slowly we will know it is the math tag doing it. (Well, we may not know because our browsers will cache the results, but a new visitor may see it load slowly)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#5 2005-09-15 10:01:58

Zach
Member
Registered: 2005-03-23
Posts: 2,075

Re: The math tag

The problem is; that your image writing CGI is really shoddy and the GIFs look bad.


Boy let me tell you what:
I bet you didn't know it, but I'm a fiddle player too.
And if you'd care to take a dare, I'll make a bet with you.

Offline

#6 2005-09-15 18:49:48

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

Re: The math tag

But you have to admit...it's better than nothing Zach. Well done MathsIsFun!

Offline

#7 2005-09-15 20:23:37

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

The renderer isn't mine, it is "mimetex".

It is supposed to make formulas easier to present - so long as you can understand it and it doesn't take too long to render, then that are the first two criteria done. Fast is good, and mimetex seem to be reasonably fast.

Mimetex is fully self-contained, whilst other LaTeX renderers rely on 3 or 4 processes to complete the task (for example, arranging the letters and symbols, then outputting them to postscript using another package, then converting that to a gif using yet another package)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#8 2005-09-17 01:22:10

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

normal

large

I tried with a capital "L"

Apparently I can recompile the tag and "upsize" it so that large is normal - would that be better?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#9 2005-09-17 10:04:05

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

This is the homepage for mimetex: http://www.forkosh.com/mimetex.html

If you have any suggestions about other renderers, I can have a look at them.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#10 2005-09-17 19:47:40

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

I will happily try other renderers - I could have a "mathtest" tag to try them out, I just don't want slow ones. Slow is no fun for anyone.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#11 2005-09-18 09:29:48

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

Well, I have been researching, and have found a utility that can help. It takes "dvi" output and turns it into "png" in one step. This means that I may be able to use the standard "latex" program, (which creates "dvi"s). If I can crack this nut then we might have a better solution.

It could be CPU-intensive, so I would need to cache the answers (so it is only run once not every time someone looks at the page), maybe use the first 50 characters as an identifier, or something.

I will continue to investigate.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#12 2005-09-18 21:03:59

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

You may have noticed I am playing with the tag at the moment.

Don't worry, I can revert back easily.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#13 2005-09-19 00:33:33

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

A completely different method is now used for the math tag. They take longer to create using this method, but I cache the results, so it should be slow only once.

Are they pretty now?

(For those who know LaTeX, "\displaystyle" is the default format)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#14 2005-10-16 22:35:53

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: The math tag

Testing:


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

Board footer

Powered by FluxBB