Customizing page layout
***********************

This chapter is designed to help you to change the complete layout of the HTML output if you like to do so.

a) General: Philosophy, and how it works

aa) Navigation panels

b) Top page

c) Section pages

Tips how to create a new site design
====================================

Here you can find information how you should work to pick up a new design with texi2html.

Page Layout and the philosophy
==============================

Navigation panels
-----------------

Head and foot Navigation panels.

Top Page
========

Section Pages
=============

Misc pages
==========

Here you can find information about the creation of the ToC (Table Of content), About---Page etc. and specialy how to change them to get your own design.

ToC T2H_DEFAULT_print_toc_frame in texi2html.init

Table Of Contents
-----------------

The following code is the original code out of the initialization file (see Initialization file).

     sub T2H_DEFAULT_print_toc_frame
     {
       my $fh = shift;
       &$T2H_print_page_head($fh);
       print $fh <<EOT;
     <H2>Content</H2>
     EOT
       print $fh map {s/HREF=/target=\"main\" HREF=/; $_;} @stoc_lines;
       print $fh "</BODY></HTML>\n";
     }

As you can see it is very simple Perl Code, which can be changed more or less simple to fit you requirements (see T2H_DEFAULT_print_page_head).

Page header
-----------

Page Head T2H_DEFAULT_print_page_head

     sub T2H_DEFAULT_print_page_head
     {
       my $fh = shift;
       my $longtitle = "$T2H_THISDOC{title}: $T2H_NAME{This}";
       print $fh <<EOT;
     <HTML>
     $T2H_DOCTYPE
     <!-- Created on $T2H_TODAY by $THISPROG -->
     <!--
     $T2H_AUTHORS
     -->
     <HEAD>
     <TITLE>$longtitle</TITLE>

     <META NAME="description" CONTENT="$longtitle">
     <META NAME="keywords" CONTENT="$longtitle">
     <META NAME="resource-type" CONTENT="document">
     <META NAME="distribution" CONTENT="global">
     <META NAME="Generator" CONTENT="$THISPROG">
     $T2H_EXTRA_HEAD
     </HEAD>

     <BODY $T2H_BODYTEXT>
     $T2H_AFTER_BODY_OPEN
     EOT
     }

Page footer
-----------

Page Foot T2H_DEFAULT_print_page_foot