#!/usr/bin/perl $level = "../"; $stylesheet = $level . "/includes/homepage.css"; $mathjax = $level . "/support/MathJax/MathJax.js"; $emailbase = $level . "/scripts/email-base.jsc"; $lang = "en"; $auth = "Luca Giuzzi"; $email = "giuzzi\@ing.unibs.it"; @divtit = ""; @divid = ""; sub processList { # print "ENTER: $_"; #enumerate (ordered lists) if (/\\begin\{enumerate\}/) { $_ = "\
    \n"; $enum = 1; $firstentry = 1; return 1; } if (/\\end\{enumerate\}/) { $_ = "\\n\\n"; $enum = 0; $firstentry = 0; return 1; } #itemize (unordered lists) if (/\\begin\{itemize\}/) { $_ = "\
' . "\n"; $enum == 2 and print '' . "\n"; print '

' . "\n"; } if ( $levl == 2 ) { push @divtit, $titl; push @divid, $idnam; } print < \$titl\ END_SECT } #standard header sub printhead { my $author = shift; my $email = shift; my $of = "of"; if ( $lang =~ /it/ ) { $of = "di"; } print <'."\\n"); ?> Curriculum $of $author


Curriculum $of $auth


END_HEADER } sub createbanner { print <
ENDBAN } #standard epilogue sub printend { my $bsname = "curriculum-eng6"; my $oth = "curriculum-ita6"; my $olang = "Italiano"; my $now_str = gmtime; if ( $lang =~ /it/ ) { $bsname = "curriculum-ita6"; $olang = "English"; $oth = "curriculum-eng6"; } print <
Last updated: $now_str by cur2html 
END_ENDMATTER } while (<>) { processDoc(); } createbanner; printend;