aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/texpdf_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/texpdf_format.rb')
-rw-r--r--lib/sisu/v0/texpdf_format.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v0/texpdf_format.rb b/lib/sisu/v0/texpdf_format.rb
index 83fd90a1..55f1e19a 100644
--- a/lib/sisu/v0/texpdf_format.rb
+++ b/lib/sisu/v0/texpdf_format.rb
@@ -464,7 +464,7 @@ WOK
@string.gsub!(/&#095;/,'<=underscore>') # _ SiSU special character also LaTeX
@string.gsub!(/&#124;/,'|') # | SiSU not really special sisu character but done, also LaTeX
@string.gsub!(/&#058;/,':') # : SiSU not really special sisu character but done, also LaTeX
- @string.gsub!(/&#094;/,'<=caret>') # ^ SiSU not really special sisu character but done, also LaTeX
+ @string.gsub!(/&#094;|\^/,'<=caret>') # ^ SiSU not really special sisu character but done, also LaTeX
@string.gsub!(/\#/,'<=hash>')
##watch placement, problem sequence ^
@string.gsub!(/<sup><font face=symbol>&atild;<\/font><\/sup>/,' ')
@@ -600,7 +600,7 @@ WOK
para.gsub!(/(?:\\begin\{bfseries\}|\\begin\{itshape\})(.+?)(?:\\end\{bfseries\}|\\end\{itshape\})/m,'\1')
cont_ln=para.dup
cont_ln.gsub!(/#{@@tex_pattern_margin_number}/,'')
- cont_ln.gsub!(/#{lev}#{@@tilde}\s+/,'')
+ cont_ln.gsub!(/#{lev}#{@@tilde}(?:\S+)?\s+/,'')
if para =~/\\[Ff]ootnote/ #and para =~/^[1-6]#{@@tilde}/ # removing footnotes from headings!
cont_ln.gsub!(/\s*\\footnote\[\d+\]\{%\n .+? \}\s*/,' ')
cont_ln.gsub!(/\s*\\Footnote[A]\{[*+]+\d*\}\{%\n .+? \}\s*/,' ')