aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG_v28
-rw-r--r--data/doc/sisu/v2/CHANGELOG8
-rw-r--r--lib/sisu/v2/texpdf_format.rb4
3 files changed, 19 insertions, 1 deletions
diff --git a/CHANGELOG_v2 b/CHANGELOG_v2
index 0647cd47..6beafd0c 100644
--- a/CHANGELOG_v2
+++ b/CHANGELOG_v2
@@ -23,6 +23,14 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.9.orig.tar.gz
* texpdf, use of monospace in headings causes table of contents breakage, fix
(requested fix, Ben Armstrong (live-manual))
+ * texpdf, toc now contains level 3~ to be consistent with other output
+ formats
+ (requested fix, Ben Armstrong (live-manual) "all TOC for different formats
+ include headings for 1~ 2~ and 3~ *except* PDF which only has 1~ and 2~. i
+ consider this a bug. how do i fix it?")
+ (the fix is a workaround manually indenting level 3 further than
+ level 2 as both levels make use of LaTeX "subsubsection")
+
* html & css, ocn (object numbers) now link to themselves, clicking on one
places that object at the top of the browser and provides its url
(requested, Ben Armstrong (live-manual))
diff --git a/data/doc/sisu/v2/CHANGELOG b/data/doc/sisu/v2/CHANGELOG
index 11b6e850..984fe865 100644
--- a/data/doc/sisu/v2/CHANGELOG
+++ b/data/doc/sisu/v2/CHANGELOG
@@ -23,6 +23,14 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.9.orig.tar.gz
* texpdf, use of monospace in headings causes table of contents breakage, fix
(requested fix, Ben Armstrong (live-manual))
+ * texpdf, toc now contains level 3~ to be consistent with other output
+ formats
+ (requested fix, Ben Armstrong (live-manual) "all TOC for different formats
+ include headings for 1~ 2~ and 3~ *except* PDF which only has 1~ and 2~. i
+ consider this a bug. how do i fix it?")
+ (the fix is a workaround manually indenting level 3 further than
+ level 2 as both levels make use of LaTeX "subsubsection")
+
* html & css, ocn (object numbers) now link to themselves, clicking on one
places that object at the top of the browser and provides its url
(requested, Ben Armstrong (live-manual))
diff --git a/lib/sisu/v2/texpdf_format.rb b/lib/sisu/v2/texpdf_format.rb
index aae545cb..732a903e 100644
--- a/lib/sisu/v2/texpdf_format.rb
+++ b/lib/sisu/v2/texpdf_format.rb
@@ -284,7 +284,9 @@ module SiSU_TeX_Pdf
cont_ln.gsub!(/\s*\\Footnote[A]\{[*+]+\d*\}\{%\n .+? \}\s*/,' ')
end
dob.tmp.gsub!(/^(.*)?\n?$/m,
- '\subsubsection*{\1}')
+ "\\subsubsection*{\\1}
+\\addcontentsline{toc}{subsubsection}{~~~~#{cont_ln} \\\\
+}")
dob
end
def indent