Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Online coding site: Ancient Brain

coders   JavaScript worlds


CA114      CA170      CA686

Online AI coding exercises

Project ideas

Math in HTML

How to put math into HTML pages.


Write in Latex

How to make non-transparent gifs (latex2html switch)


How to make non-transparent gifs (comment latex2html code)

Other way: latex2html generates normal gifs first and only then runs a routine to make them transparent. So I copied the latex2html file itself, edited the make_transparent routine, and commented out the relevant lines.

How to convert to other color (netpbm)

You can then convert these images to a color (non-transparent) other than white, and then give the pages that color background.

To use netpbm / pbmplus to convert the images:

for i in *.gif
 giftopnm $i | pnmdepth 255 | pgmtoppm "#ffffcc" | ppmtogif > tmp.gif
 mv tmp.gif $i

How to convert to other color (giftrans)

You can do the same conversion using giftrans:
 giftrans -g white="#ffffcc" $i > tmp.gif

Write in HTML / JS

ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.