aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-05-12 22:52:04 -0400
committerRalph Amissah <ralph@amissah.com>2014-05-12 22:52:04 -0400
commit41d62d53264b7af387361e27bc5d1ff874e9d3fa (patch)
tree783b6609db65a0812d1733432ba3eda83caa8ac7 /lib
parentv6: texpdf, for urls switch to sans serif (small fontsize) (diff)
v6: texpdf, '&' in heading breaks toc (now removed from toc (not heading)), bug
* revisit, bug
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v6/texpdf_format.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sisu/v6/texpdf_format.rb b/lib/sisu/v6/texpdf_format.rb
index a16b39b9..eab84823 100644
--- a/lib/sisu/v6/texpdf_format.rb
+++ b/lib/sisu/v6/texpdf_format.rb
@@ -235,6 +235,7 @@ module SiSU_TeX_Pdf
cont_ln=cont_ln.gsub(/\\begin\{(monosp)\}(.+?)\\end\{\1\}/m,'\2').
gsub(@@tex_pattern_margin_number,'')
cont_ln=remove_footnotes(cont_ln)
+ cont_ln=cont_ln.gsub(/\{[\\]+(&)\}/,'\\1')
titleset=''
dob.tmp=dob.tmp.gsub(/^(.*)\n?$/m,
"#{titleset}\\part*{\\1}
@@ -249,6 +250,7 @@ module SiSU_TeX_Pdf
cont_ln=cont_ln.gsub(/\\begin\{(monosp)\}(.+?)\\end\{\1\}/m,'\2').
gsub(@@tex_pattern_margin_number,'')
cont_ln=remove_footnotes(cont_ln)
+ cont_ln=cont_ln.gsub(/\{[\\]+(&)\}/,'\\1')
dob.tmp=dob.tmp.gsub(/^(.*)\n?$/m,
"\\clearpage
\\part*{\\1}
@@ -289,6 +291,7 @@ module SiSU_TeX_Pdf
dob.tmp=dob.tmp.gsub(/.+/m,'')
end
cont_ln=remove_footnotes(cont_ln)
+ cont_ln=cont_ln.gsub(/\{[\\]+(&)\}/,'\\1')
dob.tmp=dob.tmp.gsub(/^(.*)?\n?$/m,
"\\#{sect}*{\\1}
#{tocadd}{#{pre}#{cont_ln}#{post}}#{headadd}")