hiki2latex 0.9.16 → 0.9.17

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: 1d313774a64d10f03b7baf54e0a9f62438fb7512
4
- data.tar.gz: 66b38b8812b11528f5c140b01d0a6cdae3e9adc7
3
+ metadata.gz: e889815899dec1c7a0fb25a390586fbe65568ccf
4
+ data.tar.gz: b9506fabb7e78d903492c72d658bc436d9078c0f
5
5
  SHA512:
6
- metadata.gz: a54bbaac1171aceb5ddd5e5b9cfc43cc90007d4d96a546fae5eff4576de5bf899bec3e86306443ba1a1f5a580d7debe7e4d7dca0e7052b93dc8883dc259b407b
7
- data.tar.gz: f6902b1fac6a2e2ca48253a0aaf09703cb858750ee58f69fe69bc6f475b70cce5e6e7b6f3d443bc81cb46a0e510bdf63cf3b7fc3092fdffb93362ff14db66ad6
6
+ metadata.gz: 0272c92b6eed9f937be8b7a219b2497d615247c757cb97a5c44a467c843e36683824f6fc654171d530cb4171ef42edd4531aff716cd17b6c83b52cd080ec8c9e
7
+ data.tar.gz: e45841a0b80d2a6b3e0d036564040cff927e293b456945a9eb6ee33d6a0af86d39f609e4557e90de090cf2c641dd21c34bd3329e2bfc4cfdbfb5bec262449c1a
@@ -49,17 +49,17 @@ class LatexOutput
49
49
 
50
50
  def headline(level, title)
51
51
  title = escape_snake_names(title)
52
- tmp=title.split(/:/)
53
- if tmp.size==2 then
54
- case tmp[0]
52
+ if tmp=title.match(/(.+?):(.+)/)
53
+ # if tmp.size==2 then
54
+ case tmp[1]
55
55
  when 'title','author','date','abstract'
56
- @head << "\\#{tmp[0]}\{#{tmp[1]}\}\n"
56
+ @head << "\\#{tmp[1]}\{#{tmp[2]}\}\n"
57
57
  when 'Title','Author','Date','Abstract'
58
- @head << "\\#{tmp[0].downcase}\{#{tmp[1]}\}\n"
58
+ @head << "\\#{tmp[1].downcase}\{#{tmp[2]}\}\n"
59
59
  when 'caption'
60
- @caption << "#{tmp[1]}"
60
+ @caption << "#{tmp[2]}"
61
61
  when 'reference'
62
- @f << "\\section*\{#{tmp[1]}\}\n"
62
+ @f << "\\section*\{#{tmp[2]}\}\n"
63
63
  else
64
64
  # @f << "\\#{tmp[0]}\{#{tmp[1]}\}\n"
65
65
  headline_section(level,title)
@@ -1,3 +1,3 @@
1
1
  module Hiki2latex
2
- VERSION = "0.9.16"
2
+ VERSION = "0.9.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiki2latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.16
4
+ version: 0.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani