version 1.1, 2003/09/08 11:58:38 |
version 1.2, 2016/06/29 15:26:24 |
Line 1510 sub update_sec_num { |
|
Line 1510 sub update_sec_num { |
|
$level--; # here we start at 0 |
$level--; # here we start at 0 |
if ($name =~ /^appendix/) { |
if ($name =~ /^appendix/) { |
# appendix style |
# appendix style |
if (defined(@appendix_sec_num)) { |
if ( @appendix_sec_num ) { |
&incr_sec_num($level, @appendix_sec_num); |
&incr_sec_num($level, @appendix_sec_num); |
} else { |
} else { |
@appendix_sec_num = ('A', 0, 0, 0); |
@appendix_sec_num = ('A', 0, 0, 0); |
Line 1518 sub update_sec_num { |
|
Line 1518 sub update_sec_num { |
|
return(join('.', @appendix_sec_num[0..$level])); |
return(join('.', @appendix_sec_num[0..$level])); |
} else { |
} else { |
# normal style |
# normal style |
if (defined(@normal_sec_num)) { |
if ( @normal_sec_num ) { |
&incr_sec_num($level, @normal_sec_num); |
&incr_sec_num($level, @normal_sec_num); |
} else { |
} else { |
@normal_sec_num = (1, 0, 0, 0); |
@normal_sec_num = (1, 0, 0, 0); |