aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-11-29 13:53:17 -0500
committerRalph Amissah <ralph@amissah.com>2010-11-29 14:07:51 -0500
commitb4566320aa08e7311abd3659637921b3302f16bf (patch)
treea08908125f6334003978af1f44ff392ba86e94db /lib
parentepub: ocn (object numbers) now link to themselves (diff)
texpdf: toc now contains level 3~ consistent with other output formats
(requested fix, Ben Armstrong (live-manual))
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v2/texpdf_format.rb4
1 files changed, 3 insertions, 1 deletions
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