$Texi2HTML::Config::unknown = \&lilypond_unknown;
-my $lastfilename;
-my $docnr = 0;
-my $page_toc_depth = 2;
-my @default_toc = [];
my @section_to_filename;
-
#############################################################################
### DEBUGGING
#############################################################################
### SPLITTING BASED ON NUMBERED SECTIONS
#############################################################################
+my $lastfilename;
+my $docnr = 0;
+my $node_to_filename_map = ();
+
# This function makes sure that files are only generated for numbered sections,
# but not for unnumbered ones. It is called after texi2html has done its own
# splitting and simply returns the filename for the node given as first argument
### CUSTOM TOC FOR EACH PAGE (in a frame on the left)
#############################################################################
+my $page_toc_depth = 2;
+my @default_toc = [];
+
# recursively generate the TOC entries for the element and its children (which
# are only shown up to maxlevel. All ancestors of the current element are also
# shown with their immediate children, irrespective of their level.