hiki2latex 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a5cb80fa71a49cb6dfb51866f8d441984b26358
4
- data.tar.gz: d0aaf58a2706e6a9c9dcdf13a92af15b2d506b2d
3
+ metadata.gz: acf56fc15ae33e9d3655a56db908f383f5ab116d
4
+ data.tar.gz: 7588923c7e66cabd2e9ade0cfb9b588ddef879bb
5
5
  SHA512:
6
- metadata.gz: 7dff3f64abe07c2df59b2e8695dcd1cc8083dd8f7606f987eae8a575c641c5cd6e192224468f68a1a64a772add9d8369f12463610c3fe91754f103d4b056a677
7
- data.tar.gz: ad24fe77bfce62f53eed05914e05e1b64ce796fdea7cb33b1da23fd140461cf0f6164dbec25674521437ce99ed053b59d6d78aa58b058d09b16300ee281e0c98
6
+ metadata.gz: 5a79a7d3b203eadfe090e21f81b38a038b5e26d0b3aa7bdc947ac56b6bff7eba70ab7989ab2af2397d467c0ab9d881f5b4cdec740830a79b3691930fc6f6d2b5
7
+ data.tar.gz: a7e09f9abc89787cdd28adc66991665d7212bcb13b6d69c2af22b17fcb0ea8e6ad759f2bbeb6638cdf76ee15624c46432f3821ea302248dd0641bef5ff121dd4
data/Rakefile CHANGED
@@ -27,5 +27,8 @@ task :update do
27
27
  system 'git add -A'
28
28
  system 'git commit'
29
29
  system 'git push -u origin master'
30
+ print 'in kwansei.ac.jp, you need setenv for proxy.'
31
+ print 'setenv HTTP_PROXY http://proxy.kwansei.ac.jp:8080'
32
+ print 'setenv HTTP_PROXY http://proxy.ksc.kwansei.ac.jp:8080'
30
33
  system 'bundle exec rake release'
31
34
  end
@@ -140,7 +140,14 @@ class LatexOutput
140
140
  str.gsub!(/_/,"\\_")
141
141
  patterns = [/\$(.+?)\$/ , /\\verb\|(.+?)\|/, /equation(.+?)equation/m ]
142
142
  patterns.each{|pattern|
143
- str.gsub!(/\\_/,"_") if str.match(pattern)
143
+ # str.gsub!(/\\_/,"_") if str.match(pattern)
144
+ str.gsub!(pattern){|text|
145
+ if text =~ /\\_/ then
146
+ text.gsub!(/\\_/,'_')
147
+ else
148
+ text
149
+ end
150
+ }
144
151
  }
145
152
  str
146
153
  end
@@ -171,6 +178,7 @@ class LatexOutput
171
178
  style='customRuby' if info=='ruby'
172
179
  style='customCsh' if (info=='tcsh' or info=='csh')
173
180
  style='customTeX' if info=='tex'
181
+ style='customJava' if info=='java'
174
182
  preformatted_with_style(str,style)
175
183
  else
176
184
  preformatted(text(str))
@@ -309,7 +317,8 @@ class LatexOutput
309
317
 
310
318
  cont.each_with_index{|line,i|
311
319
  line.each{|ele|
312
- buf << "#{ele} &"
320
+ # buf << "#{ele} &"
321
+ buf << escape_snake_names(ele)+" &"
313
322
  }
314
323
  buf.slice!(-1)
315
324
  buf << ((i==0)? "\\\\ \\hline\n" : "\\\\\n")
@@ -1,3 +1,3 @@
1
1
  module Hiki2latex
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
data/lib/hiki2latex.rb CHANGED
@@ -65,7 +65,7 @@ module Hiki2latex
65
65
  \\usepackage[dvipdfmx]{graphicx}
66
66
  \\usepackage[dvipdfmx]{color}
67
67
  \\usepackage{listings}
68
-
68
+ % to use japanese correctly, install jlistings.
69
69
  \\lstset{
70
70
  basicstyle={\\small\\ttfamily},
71
71
  identifierstyle={\\small},
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiki2latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler