Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6eb1f6b

Browse files
committed
Improve support for logical node names.
1 parent f4aeb84 commit 6eb1f6b

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Doc/.latex2html-init

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,32 @@ sub remove_general_markers {
250250
}
251251
}
252252

253+
# In addition to the standard stuff, add label to allow named node files.
254+
sub do_cmd_tableofcontents {
255+
local($_) = @_;
256+
$tocfile = $CURRENT_FILE;
257+
$TITLE = $toc_title;
258+
&anchor_label("contents",$CURRENT_FILE,$_); # this is added
259+
join('', '<P>', &make_section_heading($toc_title, "H2"), $toc_mark, $_);
260+
}
261+
262+
# In addition to the standard stuff, add label to allow named node files.
263+
sub do_cmd_listoffigures {
264+
local($_) = @_;
265+
$TITLE = $lof_title;
266+
$loffile = $CURRENT_FILE;
267+
&anchor_label("figures",$CURRENT_FILE,$_); # this is added
268+
join('', '<P>' , &make_section_heading($lof_title, "H2"), $lof_mark, $_);
269+
}
270+
271+
# In addition to the standard stuff, add label to allow named node files.
272+
sub do_cmd_listoftables {
273+
local($_) = @_;
274+
$TITLE = $lot_title;
275+
$lotfile = $CURRENT_FILE;
276+
&anchor_label("tables",$CURRENT_FILE,$_); # this is added
277+
join('', '<P>' , &make_section_heading($lot_title, "H2"), $lot_mark, $_);
278+
}
253279

254280
# In addition to the standard stuff, add label to allow named node files.
255281
sub do_cmd_textohtmlinfopage {

0 commit comments

Comments
 (0)