> In my opinion, option -image-type should also be valid for icons. As a simple > fix, move the %icons =(...) from l2hconf to latex2html in the following way > (line numbers for latex2html-2002, but works similarly for 2K.1):
Yes, that may be a simple fix. But there are may other possible simple fixes as well, each applicable to a different class of usage. Coding in l2hconf.pin is customisable. It is intended to be cudtomised prior to installation, so as to reflect what is available at the local site. With icons, you are supposed to setup an $ICONSOURCE repository, where LaTeX2HTML simply points-to, for the icons on each HTML page that it generates. If this location has PNG images, then that's the $IMAGE_TYPE to use. If it has GIFs, then $IMAGE_TYPE must say so. However you can always override this locally for your documents. Just redefine %icons in a local .latex2html-init file, or in a file of any other name, and use the -init_file switch. You could even have a collection of different repositories for different image-types. The $ICONSOURCE is a variable, which you can set differently for each job, using an initialisation file, as mentioned above. It would be quite wrong to take the initial %icons setting out of l2hconf.pin , as it serves there as a place where not only the image-type can be set, but also the names and sizes of the icon graphics can be changed. It is quite common to use different icons; e.g. arrows, or with words in a non-english language, or with coloured backgrounds. The purpose of l2hconf.pin is to collect together all those pieces of Perl coding that a normal user might reasonably wish to change. They were put into a single file, specifically to make these bits easy to find and possibly to change in place, or to copy for pasting into an initialisation file for local edits. You are welcome -- indeed encouraged --- to customise the use of icons at your own site. However, I do not see any reason here to change the way the LaTeX2HTML distribution is structured. Any such change would, in my opinion, make the distribution less flexible for general usage. Hope this helps, Ross Moore > *** l2hconf.pin.ORI Tue Oct 12 07:15:03 1999 > --- l2hconf.pin Wed Apr 10 16:50:05 2002 > *************** > *** 1031,1063 **** > ### Icons ################################################################ > > # Icon names and real icon files. > > - %icons = ( > - 'cross_ref_visible_mark' ,"crossref.$IMAGE_TYPE", > - 'anchor_mark' , '', # ,' ', > - 'anchor_invisible_mark' , '', # ,' ', > - 'up_visible_mark' ,"up.$IMAGE_TYPE", > - 'next_visible_mark' ,"nx_grp.$IMAGE_TYPE", > - 'previous_visible_mark' ,"pv_grp.$IMAGE_TYPE", > - 'next_page_visible_mark' ,"next.$IMAGE_TYPE", > - 'previous_page_visible_mark' ,"prev.$IMAGE_TYPE", > - 'contents_visible_mark' ,"contents.$IMAGE_TYPE", > - 'index_visible_mark' ,"index.$IMAGE_TYPE", > - # 'image_visible_mark' ,"image.$IMAGE_TYPE", > - 'footnote_mark' ,"footnote.$IMAGE_TYPE", > - 'up_inactive_visible_mark' ,"up_g.$IMAGE_TYPE", > - 'next_inactive_visible_mark' ,"nx_grp_g.$IMAGE_TYPE", > - 'previous_inactive_visible_mark' ,"pv_grp_g.$IMAGE_TYPE", > - 'next_page_inactive_visible_mark' ,"next_g.$IMAGE_TYPE", > - 'previous_page_inactive_visible_mark' ,"prev_g.$IMAGE_TYPE", > - 'change_begin_visible_mark',"ch_begin.$IMAGE_TYPE", > - 'change_begin_right_visible_mark',"ch_beg_r.$IMAGE_TYPE", > - 'change_end_visible_mark',"ch_end.$IMAGE_TYPE", > - 'change_end_right_visible_mark',"ch_end_r.$IMAGE_TYPE", > - 'change_delete_visible_mark',"ch_delet.$IMAGE_TYPE", > - 'change_delete_right_visible_mark',"ch_del_r.$IMAGE_TYPE" > - ); > - > %iconsizes = > ( > 'up' ,'WIDTH="26" HEIGHT="24"', > --- 1031,1038 ---- > ### Icons ################################################################ > > # Icon names and real icon files. > + # *** moved to latex2html *** > > %iconsizes = > ( > 'up' ,'WIDTH="26" HEIGHT="24"', > *** latex2html.pin.ORI Sun Mar 31 07:15:01 2002 > --- latex2html.pin Wed Apr 10 16:50:05 2002 > *************** > *** 400,405 **** > --- 400,434 ---- > This installation supports (first is default): @IMAGE_TYPES > EOF > } > + > + # Icon names and real icon files. > + > + %icons = ( > + 'cross_ref_visible_mark' ,"crossref.$IMAGE_TYPE", > + 'anchor_mark' , '', # ,' ', > + 'anchor_invisible_mark' , '', # ,' ', > + 'up_visible_mark' ,"up.$IMAGE_TYPE", > + 'next_visible_mark' ,"nx_grp.$IMAGE_TYPE", > + 'previous_visible_mark' ,"pv_grp.$IMAGE_TYPE", > + 'next_page_visible_mark' ,"next.$IMAGE_TYPE", > + 'previous_page_visible_mark' ,"prev.$IMAGE_TYPE", > + 'contents_visible_mark' ,"contents.$IMAGE_TYPE", > + 'index_visible_mark' ,"index.$IMAGE_TYPE", > + # 'image_visible_mark' ,"image.$IMAGE_TYPE", > + 'footnote_mark' ,"footnote.$IMAGE_TYPE", > + 'up_inactive_visible_mark' ,"up_g.$IMAGE_TYPE", > + 'next_inactive_visible_mark' ,"nx_grp_g.$IMAGE_TYPE", > + 'previous_inactive_visible_mark' ,"pv_grp_g.$IMAGE_TYPE", > + 'next_page_inactive_visible_mark' ,"next_g.$IMAGE_TYPE", > + 'previous_page_inactive_visible_mark' ,"prev_g.$IMAGE_TYPE", > + 'change_begin_visible_mark',"ch_begin.$IMAGE_TYPE", > + 'change_begin_right_visible_mark',"ch_beg_r.$IMAGE_TYPE", > + 'change_end_visible_mark',"ch_end.$IMAGE_TYPE", > + 'change_end_right_visible_mark',"ch_end_r.$IMAGE_TYPE", > + 'change_delete_visible_mark',"ch_delet.$IMAGE_TYPE", > + 'change_delete_right_visible_mark',"ch_del_r.$IMAGE_TYPE" > + ); > + > &set_if_false($NO_IMAGES, $opt{images}); > if ($opt{noaccent_images}) { > $ACCENT_IMAGES = ''; > _______________________________________________ > latex2html mailing list > [EMAIL PROTECTED] > http://tug.org/mailman/listinfo/latex2html _______________________________________________ latex2html mailing list [EMAIL PROTECTED] http://tug.org/mailman/listinfo/latex2html