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 +4 -4
- data/lib/hiki2latex/hiki2latex.rb +7 -7
- data/lib/hiki2latex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e889815899dec1c7a0fb25a390586fbe65568ccf
|
4
|
+
data.tar.gz: b9506fabb7e78d903492c72d658bc436d9078c0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
53
|
-
if tmp.size==2 then
|
54
|
-
case tmp[
|
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[
|
56
|
+
@head << "\\#{tmp[1]}\{#{tmp[2]}\}\n"
|
57
57
|
when 'Title','Author','Date','Abstract'
|
58
|
-
@head << "\\#{tmp[
|
58
|
+
@head << "\\#{tmp[1].downcase}\{#{tmp[2]}\}\n"
|
59
59
|
when 'caption'
|
60
|
-
@caption << "#{tmp[
|
60
|
+
@caption << "#{tmp[2]}"
|
61
61
|
when 'reference'
|
62
|
-
@f << "\\section*\{#{tmp[
|
62
|
+
@f << "\\section*\{#{tmp[2]}\}\n"
|
63
63
|
else
|
64
64
|
# @f << "\\#{tmp[0]}\{#{tmp[1]}\}\n"
|
65
65
|
headline_section(level,title)
|
data/lib/hiki2latex/version.rb
CHANGED