Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA249      CA318      CA425      CA651

w2mind.computing.dcu.ie      w2mind.org

Missing
DCU student

CASE3 student Paul Bunbury is missing since Thur 2 Feb 2012.
See appeals on crime.ie and garda.ie and facebook.

He is a great coder. See DCU page and boards.ie page.
He won major coding contests in 2010 and 2011.
He is author of the brilliant "FloodItWorld".
DCU can confirm that in Jan 2012 he passed all 6 modules comfortably.


Displaying equations in HTML (using transparent gifs)


Like a lot of people, I write my mathematics in latex and then run latex2html to convert it to HTML for the web.

latex2html renders mathematics as inline images. We have 3 colors to think of - the mathematics, its background within the image, and the background of the window. Ideally, we would like black-on-X-on-X. One way of achieving this would be to have black-on-(transparent)-on-X. This is what latex2html does by default.

For various reasons, many of my pages use normal, solid, non-transparent, white gifs, and then a white background.



How to make non-transparent gifs (latex2html switch)

TRANSPARENT_IMAGES 0; 

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

I had some problems with the above switch, so here's an alternative. I noticed that 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
do
 giftopnm $i | pnmdepth 255 | pgmtoppm "#ffffcc" | ppmtogif > tmp.gif
 mv tmp.gif $i
done

How to convert to other color (giftrans)

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


Links



Feeds      HumphrysFamilyTree.com

Bookmark and Share           On Internet since 1987.