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 +4 -4
- data/Rakefile +3 -0
- data/lib/hiki2latex/hiki2latex.rb +11 -2
- data/lib/hiki2latex/version.rb +1 -1
- data/lib/hiki2latex.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf56fc15ae33e9d3655a56db908f383f5ab116d
|
4
|
+
data.tar.gz: 7588923c7e66cabd2e9ade0cfb9b588ddef879bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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")
|
data/lib/hiki2latex/version.rb
CHANGED
data/lib/hiki2latex.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|