Doku-Base
Texi2html Linux Dokumentation
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.7 Customizing the texi2html css lines

It is possible to modify the texi2html css lines by modifying the entries or adding to the %css_map hash. Each key is a css selector, the corresponding value is a style string.

The whole css text is in the variable $CSS_LINES. If this variable is defined the variable value is used instead of being constructed using the %css_map entries. For example if you don't want any css entries, set

 
$CSS_LINES = '';

Another possiblility is to modify the array corresponding with the array reference $Texi2HTML::THISDOC{'css_import_lines'} that contains the @import lines of CSS files, and similarly it is possible to modify the array corresponding with the array reference $Texi2HTML::THISDOC{'css_lines'} that contains the normal CSS files lines (for details on what corresponds with those different lines, see (texinfo)HTML CSS section `HTML CSS' in GNU Texinfo). The right place to modify these arrays is in a function appearing in the @command_handler_process array (see section Bypassing normal formatting). Later, the CSS lines are allready expanded, by the function reference below.

It is also possible to change completely the way $CSS_LINES are generated by redefining the following function reference:

Function Reference: css_lines \@import_lines \@rule_lines

This function should be used to construct the $CSS_LINES. \@import_lines are the @import lines of the files specified with --include-css’, and \@rule_lines are the css commands lines of these files. See section Customizing the HTML and text style.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]


Doku-Base

This document was created by Netzdino using texi2html.