How to convert image if that's a latex image !?

Discuss various technical topics not related to Mozilla.
User avatar
LIMPET235
Moderator
Posts: 39937
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: How to convert image if that's a latex image !?

Post by LIMPET235 »

More of a "Tech." query.
Moving it there...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
User avatar
Grumpus
Posts: 13240
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: How to convert image if that's a latex image !?

Post by Grumpus »

Just a thought but you may be able to find a conversion program which would take the various Latex image formats (don't know which one wiki used) and re-do as text in something like rtf or xml.
It may be as suggested to just convert by retyping or print the image or page.
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: How to convert image if that's a latex image !?

Post by patrickjdempsey »

From the Wikipedia page in the OP... with images enabled:

The values for 15°, 18°, 36°, 54°, 72°, and 75° are derived as follows:

Image
Image
Image
Image


With images disabled:

The values for 15°, 18°, 36°, 54°, 72°, and 75° are derived as follows:

\sin 15^\circ = \cos 75^\circ = \frac{\sqrt6-\sqrt2}{4}\,\!
\sin 18^\circ = \cos 72^\circ = \frac{\sqrt5-1}{4}
\sin 36^\circ = \cos 54^\circ = \frac{\sqrt{10-\sqrt{20}}}{4}
\sin 54^\circ = \cos 36^\circ = \frac{\sqrt5+1}{4}\,\!


So the formula is shown, just not in a convenient format. It probably wouldn't be too hard for someone to write an extension that replaced the latex format here with Unicode or possibly even the closest ASCII text, but you'd have to find someone interested enough in doing it. And that's only for relatively simple formulas like this... there's a bunch of formulas that I don't think are going to easily translate to text... which is the entire reason for this concept to begin with.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
ar11x
Posts: 90
Joined: January 6th, 2015, 4:45 am

Re: How to convert image if that's a latex image !?

Post by ar11x »

patrickjdempsey wrote:From the Wikipedia page in the OP... with images enabled:

The values for 15°, 18°, 36°, 54°, 72°, and 75° are derived as follows:

Image
Image
Image
Image


With images disabled:

The values for 15°, 18°, 36°, 54°, 72°, and 75° are derived as follows:

\sin 15^\circ = \cos 75^\circ = \frac{\sqrt6-\sqrt2}{4}\,\!
\sin 18^\circ = \cos 72^\circ = \frac{\sqrt5-1}{4}
\sin 36^\circ = \cos 54^\circ = \frac{\sqrt{10-\sqrt{20}}}{4}
\sin 54^\circ = \cos 36^\circ = \frac{\sqrt5+1}{4}\,\!


So the formula is shown, just not in a convenient format. It probably wouldn't be too hard for someone to write an extension that replaced the latex format here with Unicode or possibly even the closest ASCII text, but you'd have to find someone interested enough in doing it. And that's only for relatively simple formulas like this... there's a bunch of formulas that I don't think are going to easily translate to text... which is the entire reason for this concept to begin with.

What's 'not a convenient format'?
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: How to convert image if that's a latex image !?

Post by patrickjdempsey »

I don't even know how to answer that.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: How to convert image if that's a latex image !?

Post by rsx11m »

LaTeX code is ASCII text - it's "code" like C++ or Python (and I think retrieving that was the aim of ar11x's question). The inconvenience is rather that it's hiding in the "alt" attribute and thus isn't easily available for copy-pasting and such (and it would still be a wiki-specific solution which wouldn't work for sites that don't provide the original encoding of an equation in this way).
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: How to convert image if that's a latex image !?

Post by patrickjdempsey »

I just mean that it's formatted strangely and in code instead of in symbols. ^circ\ is difficult to look at and read as °.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: How to convert image if that's a latex image !?

Post by rsx11m »

Why? I recognize immediately what's meant. :mrgreen:
Post Reply