diff -Naur latex2html-master.orig/latex2html.pin latex2html-master/latex2html.pin --- latex2html-master.orig/latex2html.pin 2021-02-25 00:50:58.000000000 +0700 +++ latex2html-master/latex2html.pin 2021-05-16 22:05:26.890093313 +0700 @@ -378,6 +378,7 @@ if (defined $TITLE && !length($TITLE)) { die "Error: Empty title (-title).\n"; } +$LONG_LINKPOINT = $TITLE if (defined $TITLE && $LONG_TITLES && $LINKPOINT); if ($opt{rootdir}) { $ROOTED = 1; $FIXEDDIR = $opt{rootdir}; @@ -897,6 +898,8 @@ local($EXTN) = $EXTN; $EXTN =~ s/_\w+(\.html?)/$1/ if ($frame_main_name); local($from,$to) = (eval($LINKPOINT),eval($LINKNAME)); + $from = &make_long_title($LONG_LINKPOINT) . $EXTN + if ($LONG_TITLES && $LONG_LINKPOINT); if (length($from) && length($to) && ($from ne $to)) { #frames may have altered $EXTN $from =~ s/$frame_main_name(\.html?)/$1/ if ($frame_main_name);