[l2h] Feature request for CSS

Uli Wortmann uli.wortmann at utoronto.ca
Mon Aug 25 15:40:09 CEST 2003


Hi Hakan,

    HK> Hello, currently I am converting a book project into html with
    HK> l2h. The overall design of the default output from l2h is kind
    HK> of poor (to be honest: it is very poor), the conversion from
    HK> LaTeX to raw HTML is very good, though. So I played a bit with
    HK> CSS. Unfortunately the output of l2h is not coverd by <div
    HK> class='logical part'></div> in a consequent matter.

I had similar troubles, and patched my l2h files. I think I submitted
the changes to Ross, so they may become available in a future release.

if you use

        $HTML_VERSION="4.0,math";

in your .latex2html-init file, you get at least a div-pair for the
nav-buttons. Than you may use css to suppres their appearance.

WRT footnotes, try

$NO_FOOTNODE = 2;


I use the following in my .latex2html-init file to get more css
control over the navigation bar (note however, that css2 support in
internet explorer 6 is close to zero). Anyhow, maybe it is helpful as
an example (note that I commented out the reference to the icons,
which are now done via css):

sub top_navigation_panel {

    "<!--Start of Navigation Panel-->\n".
    '<div class="navigation-panel">'."\n".

    # Now add a few buttons with a space between them
    #'<div class="navigation-buttons">'.
    #"$NEXT $UP $PREVIOUS $CONTENTS $INDEX $CUSTOM_BUTTONS" .
    #"</div>".
    
    #'<div class="navigation-extra">'.
    #"<A HREF=\"$HOME_LINK\" TARGET=\"_top\"> ".$MY_TITLE."</A>, ".
    #$address_data[1].
    #"</div>".

    '<div class="navigation-text">'."\n".
    '<TABLE class="nav"><TR>'.
 
    # If ``next'' section exists, add its title to the navigation
    # panel
    '<TD><span class="nav-button">'.
    ($NEXT_TITLE ? "<B> Next:</B> $NEXT_TITLE\n" : undef) .
    "</span></TD>".

    # Similarly with the ``up'' title ...
    '<TD><span class="nav-button">'.
    ($UP_TITLE ? "<B>Up:</B> $UP_TITLE\n" : undef) .
    "</span></TD>".

    # ... and the ``previous'' title
     '<TD><span class="nav-button">'.	
    ($PREVIOUS_TITLE ? "<B> Previous:</B> $PREVIOUS_TITLE\n" : undef).
     "</span></TD>".	

     "</TR></TABLE></div>".

    #  Line Break, horizontal rule (3-d dividing line) and new paragraph
    "<BR> <P>\n".
   "</div>";
}

cheers

        uli
-- 
	Ulrich G. Wortmann          http://individual.utoronto.ca/uliw
	Dept. of Geology,           Fax  : 416 978 3938
	University of Toronto       Phone: 416 978 7084
	22 Russell Street, Toronto, ON, Canada M5S 3B1 


More information about the latex2html mailing list