aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v0/css.rb5
-rw-r--r--lib/sisu/v0/html.rb9
-rw-r--r--lib/sisu/v0/html_format_css.rb3
3 files changed, 13 insertions, 4 deletions
diff --git a/lib/sisu/v0/css.rb b/lib/sisu/v0/css.rb
index 13e5e026..febf0cd1 100644
--- a/lib/sisu/v0/css.rb
+++ b/lib/sisu/v0/css.rb
@@ -422,7 +422,7 @@ WOK
text-align: right;
}
- h1, h2, h3, h4, h5, h6 {
+ h0, h1, h2, h3, h4, h5, h6 {
display: block;
font-family: #{fonts};
font-weight: bold;
@@ -642,6 +642,9 @@ WOK
h6 {
font-size: 100%;
}
+ h0 {
+ font-size: 80%;
+ }
h1.norm, h2.norm, h3.norm {
font-size: 110%;
margin-left: 10mm;
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb
index 2894fa27..89c6d463 100644
--- a/lib/sisu/v0/html.rb
+++ b/lib/sisu/v0/html.rb
@@ -390,12 +390,11 @@ WOK
end
toc={}
format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title)
- toc[:seg]=format_toc.lev1
title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/
m=/#{$1}/
para.gsub!(m,'')
if para=~/^\d~\s+Document Information/
- %{<b><a href="#docinfo">#{linkname}</a></b>}
+ %{<a href="#docinfo">#{linkname}</a>}
else linkname
end
else
@@ -406,7 +405,11 @@ WOK
%{<b><a href="##{link}">#{linkname}</a></b>}
end
format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title)
- toc[:scr]=format_toc.lev1
+ if para =~/^\d~\s+Document Information/
+ toc[:seg]=toc[:scr]=format_toc.lev0
+ else
+ toc[:seg]=toc[:scr]=format_toc.lev1
+ end
toc
end
def level_2
diff --git a/lib/sisu/v0/html_format_css.rb b/lib/sisu/v0/html_format_css.rb
index 9ef61a02..497e883c 100644
--- a/lib/sisu/v0/html_format_css.rb
+++ b/lib/sisu/v0/html_format_css.rb
@@ -469,6 +469,9 @@ module SiSU_HTML_Format_type
def lev6
lev('h6','toc')
end
+ def lev0 #docinfo
+ lev('h0','toc')
+ end
end
end
__END__