hikiutils 0.2.3.4 → 0.2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/hiki +1 -3
- data/exe/hiki_thor +0 -3
- data/exe/hiki_thor~ +8 -0
- data/exe/hiki~ +8 -0
- data/hikiutils.gemspec +1 -0
- data/hikiutils_bob/Rakefile +10 -27
- data/hikiutils_bob/figs/hikiutils_bob.004.jpeg +0 -0
- data/hikiutils_bob/{private_dir.graffle → hikiutils_bob.graffle} +1 -1
- data/hikiutils_bob/hikiutils_bob.key +0 -0
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.004.jpeg +0 -0
- data/hikiutils_bob/latex_all.hiki +7 -3
- data/hikiutils_bob/latex_dir/hikiutils_bob.log +99 -84
- data/hikiutils_bob/latex_dir/hikiutils_bob.pdf +0 -0
- data/hikiutils_bob/latex_dir/hikiutils_bob.synctex.gz +0 -0
- data/hikiutils_bob/latex_dir/hikiutils_bob.toc +14 -10
- data/hikiutils_bob/latex_dir/latex_all.aux +10 -10
- data/hikiutils_bob/latex_dir/latex_all.tex +14 -5
- data/hikiutils_bob/latex_dir/sync.aux +14 -8
- data/hikiutils_bob/latex_dir/sync.tex +70 -17
- data/hikiutils_bob/sync.hiki +44 -7
- data/hikiutils_yamane/Rakefile +32 -31
- data/hikiutils_yamane/abstract.hiki +1 -0
- data/hikiutils_yamane/backup/hikiutils%28optparse%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29 +309 -0
- data/hikiutils_yamane/backup/hikiutils%28thor%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29 +1 -0
- data/hikiutils_yamane/backup/hikiutils_yamane +703 -0
- data/hikiutils_yamane/backup/hikiutils_yamane.hiki +0 -0
- data/hikiutils_yamane/backup/hikiutils_yamane_#hikiutils_yamane +1 -0
- data/hikiutils_yamane/backup/hikiutils_yamane_command_table +19 -0
- data/hikiutils_yamane/backup/hikiutils_yamane_introduction +7 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.001.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.001.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.002.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.002.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.003.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.003.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.004.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.004.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.005.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.005.jpg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.006.jpeg +0 -0
- data/hikiutils_yamane/figs/hikiutils_yamane.007.jpeg +0 -0
- data/hikiutils_yamane/hikiutils_yamane.hiki +37 -1
- data/hikiutils_yamane/hikiutils_yamane.key +0 -0
- data/hikiutils_yamane/hikiutils_yamane.key~11b9dba1272d2104b420497d11c6eda206ace6c2 +0 -0
- data/hikiutils_yamane/introduction.hiki +27 -0
- data/hikiutils_yamane/latex_dir/abstract.aux +22 -0
- data/hikiutils_yamane/latex_dir/abstract.tex +1 -0
- data/hikiutils_yamane/latex_dir/command_table.tex +1 -1
- data/hikiutils_yamane/latex_dir/head.tex +2 -2
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.aux +3 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.log +224 -84
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.pdf +0 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.synctex.gz +0 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.tex +16 -2
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.toc +20 -0
- data/hikiutils_yamane/latex_dir/introduction.aux +26 -0
- data/hikiutils_yamane/latex_dir/introduction.tex +33 -0
- data/hikiutils_yamane/latex_dir/results.aux +45 -0
- data/hikiutils_yamane/latex_dir/results.tex +342 -0
- data/hikiutils_yamane/latex_dir/system.tex +23 -0
- data/hikiutils_yamane/results.hiki +376 -0
- data/hikiutils_yamane/system.hiki +18 -0
- data/lib/hikiutils.rb +7 -3
- data/lib/hikiutils.rb~ +387 -0
- data/lib/hikiutils/version.rb +1 -1
- data/lib/hikiutils_thor.rb +36 -20
- data/lib/hikiutils_thor.rb~ +324 -0
- data/lib/templates/Rakefile_hiki_sync +35 -31
- metadata +57 -3
@@ -43,11 +43,15 @@ task :latex_all do
|
|
43
43
|
convert_to_latex(file, option)
|
44
44
|
}
|
45
45
|
cont=""
|
46
|
+
p reg_exp = Regexp.new("#{basename}_(.+)")
|
46
47
|
File.readlines(File.join($latex_dir,"#{main_file}.tex")).each{|line|
|
47
|
-
if line.match(
|
48
|
-
if m=line.match(/\\
|
48
|
+
if line.match(/section{(.+)}/)
|
49
|
+
if m=line.match(/\\verb\|(.+)\((.+)\)\|/)
|
50
|
+
p m
|
51
|
+
p m_t=m[2].match(reg_exp)[1]
|
52
|
+
line = "\\include{#{m_t}}\n"
|
53
|
+
elsif m=line.match(/section{\\verb\|(.+)\|}/)
|
49
54
|
p m
|
50
|
-
p reg_exp = Regexp.new("#{basename}_(.+)")
|
51
55
|
p m_t=m[1].match(reg_exp)[1]
|
52
56
|
line = "\\include{#{m_t}}\n"
|
53
57
|
else
|
@@ -61,33 +65,6 @@ task :latex_all do
|
|
61
65
|
exit
|
62
66
|
end
|
63
67
|
|
64
|
-
desc "change latex figures to wrap format"
|
65
|
-
task :change_wrap do
|
66
|
-
lines = File.readlines($save_name)
|
67
|
-
|
68
|
-
cont = ""
|
69
|
-
lines.each{|line|
|
70
|
-
if line.include?('\begin{figure}[htbp]\begin{center}')
|
71
|
-
p line
|
72
|
-
cont << '\begin{wrapfigure}{r}{8cm}'+"\n"
|
73
|
-
cont << '\vspace{-2\baselineskip}'+"\n"
|
74
|
-
cont << '\begin{center}'+"\n"
|
75
|
-
elsif line.include?('\label{default}\end{center}\end{figure}')
|
76
|
-
p line
|
77
|
-
cont << '\end{center}'+"\n"
|
78
|
-
cont << '\vspace{2\baselineskip}'+"\n"
|
79
|
-
cont << '\end{wrapfigure}'+"\n"
|
80
|
-
else
|
81
|
-
cont << line
|
82
|
-
end
|
83
|
-
}
|
84
|
-
File.open($save_name,'w'){|file| file.print cont }
|
85
|
-
|
86
|
-
system("open #{$save_name}")
|
87
|
-
exit
|
88
|
-
end
|
89
|
-
|
90
|
-
|
91
68
|
desc "latex conversion FILE1(hiki) to FILE2(latex)"
|
92
69
|
task :latex_base do
|
93
70
|
Dir.mkdir($latex_dir) unless Dir.exist?($latex_dir)
|
@@ -127,6 +104,33 @@ def convert_to_latex(file_name, option=nil)
|
|
127
104
|
File.open($save_name,'w'){|file| file.print cont }
|
128
105
|
end
|
129
106
|
|
107
|
+
desc "change latex figures to wrap format"
|
108
|
+
task :change_wrap do
|
109
|
+
lines = File.readlines($save_name)
|
110
|
+
|
111
|
+
cont = ""
|
112
|
+
lines.each{|line|
|
113
|
+
if line.include?('\begin{figure}[htbp]\begin{center}')
|
114
|
+
p line
|
115
|
+
cont << '\begin{wrapfigure}{r}{8cm}'+"\n"
|
116
|
+
cont << '\vspace{-2\baselineskip}'+"\n"
|
117
|
+
cont << '\begin{center}'+"\n"
|
118
|
+
elsif line.include?('\label{default}\end{center}\end{figure}')
|
119
|
+
p line
|
120
|
+
cont << '\end{center}'+"\n"
|
121
|
+
cont << '\vspace{2\baselineskip}'+"\n"
|
122
|
+
cont << '\end{wrapfigure}'+"\n"
|
123
|
+
else
|
124
|
+
cont << line
|
125
|
+
end
|
126
|
+
}
|
127
|
+
File.open($save_name,'w'){|file| file.print cont }
|
128
|
+
|
129
|
+
system("open #{$save_name}")
|
130
|
+
exit
|
131
|
+
end
|
132
|
+
|
133
|
+
|
130
134
|
desc "increment fig NUBERS in FILE"
|
131
135
|
task :increment do
|
132
136
|
number=ARGV[1]
|
@@ -202,7 +206,7 @@ task :sync0 do
|
|
202
206
|
}
|
203
207
|
p entries=Dir.entries('./figs') #cp files in figs
|
204
208
|
p target = File.join(target_dir,'cache','attach',basename)
|
205
|
-
FileUtils.
|
209
|
+
FileUtils.mkdir_p(target,:verbose=>true) unless File.exists?(target)
|
206
210
|
entries[2..-1].each{|file|
|
207
211
|
p source = File.join('./figs',file)
|
208
212
|
FileUtils.cp(source,target,:verbose=>true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hikiutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.3.
|
4
|
+
version: 0.2.3.6
|
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: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: hiki2latex
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.9.12.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.9.12.1
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: systemu
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,6 +184,8 @@ email:
|
|
170
184
|
executables:
|
171
185
|
- hiki
|
172
186
|
- hiki_thor
|
187
|
+
- hiki_thor~
|
188
|
+
- hiki~
|
173
189
|
extensions: []
|
174
190
|
extra_rdoc_files: []
|
175
191
|
files:
|
@@ -272,6 +288,8 @@ files:
|
|
272
288
|
- bin/setup
|
273
289
|
- exe/hiki
|
274
290
|
- exe/hiki_thor
|
291
|
+
- exe/hiki_thor~
|
292
|
+
- exe/hiki~
|
275
293
|
- hikis/README.hiki
|
276
294
|
- hikis/README.hiki.html
|
277
295
|
- hikis/README_ja.hiki
|
@@ -287,14 +305,17 @@ files:
|
|
287
305
|
- hikiutils_bob/figs/hikiutils_bob.001.jpeg
|
288
306
|
- hikiutils_bob/figs/hikiutils_bob.002.jpeg
|
289
307
|
- hikiutils_bob/figs/hikiutils_bob.003.jpeg
|
308
|
+
- hikiutils_bob/figs/hikiutils_bob.004.jpeg
|
290
309
|
- hikiutils_bob/figs/hikiutils_bob.pdf
|
291
310
|
- hikiutils_bob/figs/sync.pdf
|
292
311
|
- hikiutils_bob/hiki_help.yml
|
312
|
+
- hikiutils_bob/hikiutils_bob.graffle
|
293
313
|
- hikiutils_bob/hikiutils_bob.hiki
|
294
314
|
- hikiutils_bob/hikiutils_bob.key
|
295
315
|
- hikiutils_bob/hikiutils_bob/hikiutils_bob.001.jpeg
|
296
316
|
- hikiutils_bob/hikiutils_bob/hikiutils_bob.002.jpeg
|
297
317
|
- hikiutils_bob/hikiutils_bob/hikiutils_bob.003.jpeg
|
318
|
+
- hikiutils_bob/hikiutils_bob/hikiutils_bob.004.jpeg
|
298
319
|
- hikiutils_bob/latex_all.hiki
|
299
320
|
- hikiutils_bob/latex_dir/head.tex
|
300
321
|
- hikiutils_bob/latex_dir/hikiutils_bob
|
@@ -319,13 +340,37 @@ files:
|
|
319
340
|
- hikiutils_bob/latex_dir/sync.synctex.gz
|
320
341
|
- hikiutils_bob/latex_dir/sync.tex
|
321
342
|
- hikiutils_bob/latex_dir/to_latex.tex
|
322
|
-
- hikiutils_bob/private_dir.graffle
|
323
343
|
- hikiutils_bob/sync.hiki
|
324
344
|
- hikiutils_yamane/.gitignore
|
325
345
|
- hikiutils_yamane/Rakefile
|
346
|
+
- hikiutils_yamane/abstract.hiki
|
347
|
+
- hikiutils_yamane/backup/hikiutils%28optparse%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29
|
348
|
+
- hikiutils_yamane/backup/hikiutils%28thor%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%29
|
349
|
+
- hikiutils_yamane/backup/hikiutils_yamane
|
350
|
+
- hikiutils_yamane/backup/hikiutils_yamane.hiki
|
351
|
+
- hikiutils_yamane/backup/hikiutils_yamane_#hikiutils_yamane
|
352
|
+
- hikiutils_yamane/backup/hikiutils_yamane_command_table
|
353
|
+
- hikiutils_yamane/backup/hikiutils_yamane_introduction
|
326
354
|
- hikiutils_yamane/command_table.hiki
|
355
|
+
- hikiutils_yamane/figs/hikiutils_yamane.001.jpeg
|
356
|
+
- hikiutils_yamane/figs/hikiutils_yamane.001.jpg
|
357
|
+
- hikiutils_yamane/figs/hikiutils_yamane.002.jpeg
|
358
|
+
- hikiutils_yamane/figs/hikiutils_yamane.002.jpg
|
359
|
+
- hikiutils_yamane/figs/hikiutils_yamane.003.jpeg
|
360
|
+
- hikiutils_yamane/figs/hikiutils_yamane.003.jpg
|
361
|
+
- hikiutils_yamane/figs/hikiutils_yamane.004.jpeg
|
362
|
+
- hikiutils_yamane/figs/hikiutils_yamane.004.jpg
|
363
|
+
- hikiutils_yamane/figs/hikiutils_yamane.005.jpeg
|
364
|
+
- hikiutils_yamane/figs/hikiutils_yamane.005.jpg
|
365
|
+
- hikiutils_yamane/figs/hikiutils_yamane.006.jpeg
|
366
|
+
- hikiutils_yamane/figs/hikiutils_yamane.007.jpeg
|
327
367
|
- hikiutils_yamane/hiki_help.yml
|
328
368
|
- hikiutils_yamane/hikiutils_yamane.hiki
|
369
|
+
- hikiutils_yamane/hikiutils_yamane.key
|
370
|
+
- hikiutils_yamane/hikiutils_yamane.key~11b9dba1272d2104b420497d11c6eda206ace6c2
|
371
|
+
- hikiutils_yamane/introduction.hiki
|
372
|
+
- hikiutils_yamane/latex_dir/abstract.aux
|
373
|
+
- hikiutils_yamane/latex_dir/abstract.tex
|
329
374
|
- hikiutils_yamane/latex_dir/command_table.aux
|
330
375
|
- hikiutils_yamane/latex_dir/command_table.log
|
331
376
|
- hikiutils_yamane/latex_dir/command_table.pdf
|
@@ -338,13 +383,22 @@ files:
|
|
338
383
|
- hikiutils_yamane/latex_dir/hikiutils_yamane.synctex.gz
|
339
384
|
- hikiutils_yamane/latex_dir/hikiutils_yamane.tex
|
340
385
|
- hikiutils_yamane/latex_dir/hikiutils_yamane.toc
|
386
|
+
- hikiutils_yamane/latex_dir/introduction.aux
|
387
|
+
- hikiutils_yamane/latex_dir/introduction.tex
|
341
388
|
- hikiutils_yamane/latex_dir/pre.tex
|
389
|
+
- hikiutils_yamane/latex_dir/results.aux
|
390
|
+
- hikiutils_yamane/latex_dir/results.tex
|
391
|
+
- hikiutils_yamane/latex_dir/system.tex
|
392
|
+
- hikiutils_yamane/results.hiki
|
393
|
+
- hikiutils_yamane/system.hiki
|
342
394
|
- lib/hikiutils.rb
|
395
|
+
- lib/hikiutils.rb~
|
343
396
|
- lib/hikiutils/#tmarshal.rb#
|
344
397
|
- lib/hikiutils/infodb.rb
|
345
398
|
- lib/hikiutils/tmarshal.rb
|
346
399
|
- lib/hikiutils/version.rb
|
347
400
|
- lib/hikiutils_thor.rb
|
401
|
+
- lib/hikiutils_thor.rb~
|
348
402
|
- lib/templates/Rakefile_hiki_sync
|
349
403
|
- lib/templates/head.tex
|
350
404
|
- lib/templates/hiki_help.yml
|