Graphics, Figures & TablesLaTeX to HTML graph (formula) question

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

LaTeX to HTML graph (formula) question

Post by casperyc »

bad.jpg
bad.jpg (36.9 KiB) Viewed 3876 times
this is something i have now.
it does not display the codes in the property of the picture when opening from the webpage
good.jpg
good.jpg (54.21 KiB) Viewed 3876 times
this is from wiki page
it shows the original codes

How do I get my page like that?

currently i am using htlatex.exe to compile
and it is the only working command for me to convert tex to html

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

LaTeX to HTML graph (formula) question

Post by frabjous »

WikiMedia uses Texvc, not htlatex, to generate its converted equations. I imagine this is just a difference between them.

What you describe as "property of the picture" is not a property of the picture (i.e., it's not included in the image file somehow), but is the alternate text that gets displayed either if the image file is missing, or someone is using a text-only browser. Almost no one uses text-only browsers any more, so I'm not sure why you care very much about this. You could always manually change the alt="..." attribute of the HTML img tag yourself if it were very important for some reason.

Or you could try to switch to texvc from htlatex. I don't have much experience with either, personally. Maybe someone else would.
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

LaTeX to HTML graph (formula) question

Post by casperyc »

frabjous wrote:WikiMedia uses Texvc, not htlatex, to generate its converted equations. I imagine this is just a difference between them.

What you describe as "property of the picture" is not a property of the picture (i.e., it's not included in the image file somehow), but is the alternate text that gets displayed either if the image file is missing, or someone is using a text-only browser. Almost no one uses text-only browsers any more, so I'm not sure why you care very much about this. You could always manually change the alt="..." attribute of the HTML img tag yourself if it were very important for some reason.

Or you could try to switch to texvc from htlatex. I don't have much experience with either, personally. Maybe someone else would.
The only reason at the moment is that I think it's 'nice' and maybe if I wanted to use the formula, I can just simply copy and paste it.

And I am trying to figure out whether this is something to do with 'wiki', maybe it's their own special server like some other maths or physics forums that supports tex input.

Thanks!
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

Re: LaTeX to HTML graph (formula) question

Post by casperyc »

sorry to bother again
but where is download link for texvc?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

LaTeX to HTML graph (formula) question

Post by frabjous »

Yes, texvc is part of the mediawiki-math package (on Ubuntu, at least).

It's really made to run on linux. If you're using Windows, then look here and here, however.

I have no personal experience with this, however.
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

LaTeX to HTML graph (formula) question

Post by casperyc »

do not have Visual C++ and MASM, make the bytecode version texvc.bc (by typing for example mingw32-make texvc.bc in the math directory) and rename it to texvc.exe.
I think that page does not explain in great detail,
i have installed
and ran

Code: Select all

mingw32-make texvc.bc
in my cmd, it does not work

But dont worry, i will wait for someone familar to sort this out.

Thanks!
Post Reply