diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-01 01:50:20 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-01 01:50:20 +0100 |
commit | ad5fbbc14216107e19b16654de7ac6dcab28e052 (patch) | |
tree | 41afa26f781f5ab6268eb67903f71f3020b7d86a /lib/sisu/v0/texpdf_format.rb | |
parent | small update and fix (diff) |
proposed as sisu-0.60.0, see updated CHANGELOG
* parameter reading on first run of file, (initialization of parameters)
* composite files (.ssm) building moved to processing directory, to overcome
problem of non-writable sisu-source document directories, perhaps also
cleaner (management of files)
* latex/pdf minor cleaning,
* caret '^' is latex special character, additional match for escaping
* clean major headings of markup heading tag with tilde and name
e.g. '1~meta'
* param / metadata, hash sums now returns has sum and file-name only even for
sisu-skin
Diffstat (limited to 'lib/sisu/v0/texpdf_format.rb')
-rw-r--r-- | lib/sisu/v0/texpdf_format.rb | 4 |
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!(/_/,'<=underscore>') # _ SiSU special character also LaTeX @string.gsub!(/|/,'|') # | SiSU not really special sisu character but done, also LaTeX @string.gsub!(/:/,':') # : SiSU not really special sisu character but done, also LaTeX - @string.gsub!(/^/,'<=caret>') # ^ SiSU not really special sisu character but done, also LaTeX + @string.gsub!(/^|\^/,'<=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*/,' ') |