hikiutils 0.2.3.1 → 0.2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/abst/out3.log +57 -88
- data/abst/out3.pdf +0 -0
- data/abst/out4.aux +2 -4
- data/abst/out4.log +70 -67
- data/abst/out4.pdf +0 -0
- data/abst/out4.synctex.gz +0 -0
- data/abst/out4.tex +26 -32
- data/abst/speed.png +0 -0
- data/abst/tmp.hiki +14 -0
- data/abst/tmp.html +16 -0
- data/abst/work.png +0 -0
- data/abst/yamane_powerpoint.pptx/.DS_Store +0 -0
- data/abst/yamane_powerpoint.pptx/preview-web.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill0-1.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill1-2.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill2-3.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill3-4.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill4-5.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/PresetImageFill5-6.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/image1-12.png +0 -0
- data/abst/yamane_powerpoint_new.key/Data/image1-9.png +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt0@2x-13.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt10@2x-22.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt1@2x-14.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt2@2x-15.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt3@2x-16.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt4@2x-17.png +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt5@2x-18.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt6@2x-19.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt7@2x-20.png +0 -0
- data/abst/yamane_powerpoint_new.key/Data/mt8@2x-21.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st0-381.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st1-493.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st2-495.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st3-481.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st4-485.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Data/st5-372.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/Index.zip +0 -0
- data/abst/yamane_powerpoint_new.key/Metadata/BuildVersionHistory.plist +8 -0
- data/abst/yamane_powerpoint_new.key/Metadata/DocumentIdentifier +1 -0
- data/abst/yamane_powerpoint_new.key/Metadata/Properties.plist +0 -0
- data/abst/yamane_powerpoint_new.key/preview-micro.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/preview-web.jpg +0 -0
- data/abst/yamane_powerpoint_new.key/preview.jpg +0 -0
- data/hikiutils_yamane/command_table.hiki +19 -0
- data/lib/hikiutils/#tmarshal.rb# +53 -0
- data/lib/hikiutils/version.rb +1 -1
- data/lib/hikiutils.rb +2 -2
- data/lib/hikiutils_thor.rb +31 -32
- data/lib/templates/Rakefile_hiki_sync +56 -7
- data/lib/templates/hiki_help.yml +53 -86
- metadata +40 -2
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
120BA139-C23B-4290-8A16-71ECA44979FB
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
!コマンド名の検討
|
2
|
+
bashあるいはtcshなどのshellコマンドの振る舞いに似た振る舞いをするコマンドはおなじ名前を振るべきと考えられる.そこで,次のように検討を加える.
|
3
|
+
|
4
|
+
||現在のcommand||変える?||検討内容
|
5
|
+
||add || || add sources info
|
6
|
+
||checkdb || || check database file
|
7
|
+
||datebase FILE || || read datebase file
|
8
|
+
||display FILE ||?|| display converted hikifile
|
9
|
+
||edit FILE ||open|| open file
|
10
|
+
||euc FILE || || translate file to euc
|
11
|
+
||help [COMMAND] || || Describe available commands or one specific command
|
12
|
+
||list [FILE] ||ls|| list files
|
13
|
+
||move [FILE] ||mv| move file
|
14
|
+
||remove [FILE] ||rm|| remove files
|
15
|
+
||rsync || || rsync files
|
16
|
+
||show ||??||lsとかぶる.
|
17
|
+
||target VAL ||cd|| set target id
|
18
|
+
||update FILE ||touch|| update file
|
19
|
+
||version || || show program version
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Original Copyright (C) Rubikichi
|
3
|
+
# Modified by TAKEUCHI Hitoshi
|
4
|
+
# You can redistribute it and/or modify it under the terms of
|
5
|
+
# the Ruby's licence.
|
6
|
+
|
7
|
+
module TMarshal
|
8
|
+
module_function
|
9
|
+
def dump(obj, port = nil)
|
10
|
+
dumped = dump_text(obj)
|
11
|
+
if port
|
12
|
+
port.write dumped
|
13
|
+
end
|
14
|
+
dumped
|
15
|
+
end
|
16
|
+
|
17
|
+
def load(port)
|
18
|
+
# p port
|
19
|
+
case port
|
20
|
+
when String
|
21
|
+
eval port.untaint
|
22
|
+
when IO, StringIO
|
23
|
+
eval port.read.untaint
|
24
|
+
else
|
25
|
+
raise 'Wrong type!'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def restore(port)
|
30
|
+
load(port)
|
31
|
+
end
|
32
|
+
|
33
|
+
def dump_text(obj)
|
34
|
+
case obj
|
35
|
+
when String
|
36
|
+
obj.dump
|
37
|
+
when Array
|
38
|
+
"[\n"+obj.collect{|x| dump_text(x)+",\n"}.join+"]"
|
39
|
+
when Hash
|
40
|
+
"{\n"+obj.sort_by{|e| e[0].inspect}.collect{|k,v| "#{dump_text(k)} => #{dump_text(v)},\n"}.join+"}"
|
41
|
+
when Numeric, Module, Regexp, Symbol, TrueClass, FalseClass, NilClass, Range
|
42
|
+
obj.inspect
|
43
|
+
when Time
|
44
|
+
"Time.at(#{obj.to_i})"
|
45
|
+
else
|
46
|
+
raise 'Wrong type!'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
if __FILE__ == $0
|
52
|
+
puts TMarshal.dump({:age => 22, :lang => 'Ruby', :man => true, :day => Time.now})
|
53
|
+
end
|
data/lib/hikiutils/version.rb
CHANGED
data/lib/hikiutils.rb
CHANGED
@@ -14,7 +14,7 @@ require 'pp'
|
|
14
14
|
module HikiUtils
|
15
15
|
DATA_FILE=File.join(ENV['HOME'],'.hikirc')
|
16
16
|
attr_accessor :src, :target, :editor_command, :browser, :data_name, :l_dir
|
17
|
-
|
17
|
+
|
18
18
|
class Command
|
19
19
|
|
20
20
|
|
@@ -64,7 +64,7 @@ EOS
|
|
64
64
|
opt.on('-r', '--rsync','rsync files') {rsync_files}
|
65
65
|
opt.on('--database FILE','read database file') {|file| db_file(file)}
|
66
66
|
opt.on('--display FILE','display converted hikifile') {|file| display(file)}
|
67
|
-
opt.on('-c', '--checkdb','check database file') {check_db}
|
67
|
+
opt.on('-c', '--checkdb','check database file') {check_db}
|
68
68
|
opt.on('--remove FILE','remove file') {|file| remove_file(file)}
|
69
69
|
opt.on('--move FILES','move file1,file2',Array) {|files| move_file(files)}
|
70
70
|
opt.on('--euc FILE','translate file to euc') {|file| euc_file(file) }
|
data/lib/hikiutils_thor.rb
CHANGED
@@ -5,7 +5,6 @@ require 'hikidoc'
|
|
5
5
|
require 'erb'
|
6
6
|
require "hikiutils/tmarshal"
|
7
7
|
require "hikiutils/infodb"
|
8
|
-
#require "hikiutils/hiki1"
|
9
8
|
require 'systemu'
|
10
9
|
require 'fileutils'
|
11
10
|
require 'yaml'
|
@@ -50,34 +49,20 @@ HTML_TEMPLATE = <<EOS
|
|
50
49
|
</body>
|
51
50
|
</html>
|
52
51
|
EOS
|
53
|
-
=begin
|
54
|
-
def initialize(*args)
|
55
|
-
@data_name=['nick_name','local_dir','local_uri','global_dir','global_uri']
|
56
|
-
data_path = File.join(ENV['HOME'], '.hikirc')
|
57
|
-
DataFiles.prepare(data_path)
|
58
52
|
|
59
|
-
file = File.open(DATA_FILE,'r')
|
60
|
-
@src = YAML.load(file.read)
|
61
|
-
# p @src
|
62
|
-
file.close
|
63
|
-
@target = @src[:target]
|
64
|
-
# p @target
|
65
|
-
@l_dir=@src[:srcs][@target][:local_dir]
|
66
|
-
browser = @src[:browser]
|
67
|
-
# p browser
|
68
|
-
@browser = (browser==nil) ? 'firefox' : browser
|
69
|
-
p editor_command = @src[:editor_command]
|
70
|
-
@editor_command = (editor_command==nil) ? 'open -a mi' : editor_command
|
71
|
-
# p @l_dir
|
72
|
-
end
|
73
|
-
=end
|
74
|
-
=begin
|
75
53
|
desc 'show', 'show sources'
|
76
54
|
def show()
|
77
55
|
printf("target_no:%i\n",@src[:target])
|
78
56
|
printf("editor_command:%s\n",@src[:editor_command])
|
79
|
-
|
80
|
-
|
57
|
+
@i_size,@n_size,@l_size,@g_size=3,5,30,15 #i,g_size are fixed
|
58
|
+
n_l,l_l=0,0
|
59
|
+
@src[:srcs].each_with_index{|src,i|
|
60
|
+
n_l =(n_l= src[:nick_name].length)>@n_size? n_l:@n_size
|
61
|
+
l_l =(l_l= src[:local_dir].length)>@l_size? l_l:@l_size
|
62
|
+
}
|
63
|
+
@n_size,@l_size=n_l,l_l
|
64
|
+
command = Command.new
|
65
|
+
header = command.display_format('id','name','local directory','global uri',@i_size,@n_size,@l_size,@g_size)
|
81
66
|
|
82
67
|
puts header
|
83
68
|
puts '-' * header.size
|
@@ -88,22 +73,21 @@ EOS
|
|
88
73
|
name=src[:nick_name]
|
89
74
|
local=src[:local_dir]
|
90
75
|
global=src[:global_uri]
|
91
|
-
puts display_format(id,name,local,global)
|
76
|
+
puts command.display_format(id,name,local,global,@i_size,@n_size,@l_size,@g_size)
|
92
77
|
}
|
93
78
|
end
|
94
|
-
|
79
|
+
|
95
80
|
desc 'version', 'show program version'
|
96
81
|
def version
|
97
82
|
puts Hikithor::VERSION
|
98
83
|
end
|
99
|
-
|
84
|
+
|
100
85
|
desc 'add', 'add sources info'
|
101
86
|
def add
|
102
87
|
cont = {}
|
103
|
-
# p @data_name
|
104
88
|
@data_name.each{|name|
|
105
89
|
printf("%s ? ", name)
|
106
|
-
tmp = gets.chomp
|
90
|
+
tmp = STDIN.gets.chomp
|
107
91
|
cont[name.to_sym] = tmp
|
108
92
|
}
|
109
93
|
@src[:srcs] << cont
|
@@ -115,7 +99,7 @@ EOS
|
|
115
99
|
@src[:target] = val.to_i
|
116
100
|
show
|
117
101
|
end
|
118
|
-
|
102
|
+
|
119
103
|
desc 'edit FILE', 'open file'
|
120
104
|
def edit(file)
|
121
105
|
p @l_dir
|
@@ -128,7 +112,7 @@ EOS
|
|
128
112
|
p command="#{@editor_command} #{t_file}"
|
129
113
|
system command
|
130
114
|
end
|
131
|
-
|
115
|
+
|
132
116
|
desc 'list [FILE]', 'list files'
|
133
117
|
def list(file)
|
134
118
|
file ='' if file==nil
|
@@ -273,7 +257,22 @@ EOS
|
|
273
257
|
cont = File.readlines(file_path)
|
274
258
|
cont.each{|line| puts line.toeuc }
|
275
259
|
end
|
276
|
-
|
260
|
+
end
|
261
|
+
|
262
|
+
class Command
|
263
|
+
def display_format(id, name, local, global, i_size, n_size, l_size, g_size)
|
264
|
+
name_length = n_size-full_width_count(name)
|
265
|
+
local_length = l_size-full_width_count(local)
|
266
|
+
global_string= global.size < g_size ? global : global[0..g_size]
|
267
|
+
[id.to_s.rjust(i_size), name.ljust(name_length),
|
268
|
+
local.ljust(local_length),
|
269
|
+
global_string.ljust(g_size)].join(' | ')
|
270
|
+
end
|
271
|
+
|
272
|
+
def full_width_count(string)
|
273
|
+
string.each_char.select{|char| !(/[ -~。-゚]/.match(char))}.count
|
274
|
+
end
|
275
|
+
|
277
276
|
end
|
278
277
|
end
|
279
278
|
|
@@ -1,9 +1,14 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'systemu'
|
3
|
+
# -*- coding: utf-8 -*-
|
1
4
|
begin
|
2
5
|
target_dir = File.readlines('./.hikirc')[0].chomp
|
3
6
|
rescue => e
|
4
7
|
puts e
|
5
8
|
exit
|
6
9
|
end
|
10
|
+
p dirnames=Dir.pwd.split('/')
|
11
|
+
p basename = (dirnames[-1]=='hikis')? dirnames[-2] : dirnames[-1]
|
7
12
|
p target_dir
|
8
13
|
|
9
14
|
task :default do
|
@@ -44,11 +49,16 @@ task :convert do
|
|
44
49
|
exit
|
45
50
|
end
|
46
51
|
|
47
|
-
desc "sync hikis and figs to hiki directory"
|
48
|
-
task :sync
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
+
desc "normal sync hikis and figs to hiki directory"
|
53
|
+
task :sync => [:check_previous,:sync0]
|
54
|
+
|
55
|
+
|
56
|
+
desc "force_sync hikis and figs to hiki directory"
|
57
|
+
task :force_sync => [:sync0]
|
58
|
+
|
59
|
+
desc "sync0 hikis and figs to hiki directory"
|
60
|
+
task :sync0 do
|
61
|
+
entries=Dir.entries('.')
|
52
62
|
entries[2..-1].each{|source| #cp *.hiki
|
53
63
|
next unless source.include?('.hiki')
|
54
64
|
next if source.include?('.hikirc')
|
@@ -64,6 +74,14 @@ task :sync do
|
|
64
74
|
p source = File.join('./figs',file)
|
65
75
|
FileUtils.cp(source,target,:verbose=>true)
|
66
76
|
}
|
77
|
+
|
78
|
+
File.open('./.hikirc','w'){|file|
|
79
|
+
status, stdout, stderr =systemu "hiki -l #{basename}*"
|
80
|
+
file.print(target_dir+"\n")
|
81
|
+
stdout.split("\n")[3..-1].each{|line|
|
82
|
+
file.print line+"\n"
|
83
|
+
}
|
84
|
+
}
|
67
85
|
exit
|
68
86
|
end
|
69
87
|
|
@@ -76,11 +94,42 @@ end
|
|
76
94
|
|
77
95
|
desc "self copy to hikiutils template directory"
|
78
96
|
task :self_copy do
|
79
|
-
p cp_files=[['Rakefile','Rakefile_hiki_sync'],
|
97
|
+
p cp_files=[[File.join(Dir.pwd,'Rakefile'),'Rakefile_hiki_sync'],
|
80
98
|
[File.join(ENV['HOME'],'.my_help','hiki_help.yml'),'hiki_help.yml']]
|
81
99
|
cp_files.each{|files|
|
82
|
-
p source =
|
100
|
+
p source = files[0]
|
83
101
|
p target = File.join('/Users/bob/Github/hikiutils/lib/templates/',files[1])
|
84
102
|
FileUtils.cp(source,target,:verbose=>true)
|
85
103
|
}
|
86
104
|
end
|
105
|
+
|
106
|
+
desc "check previou and current sync"
|
107
|
+
task :check_previous do
|
108
|
+
current={}
|
109
|
+
status, stdout, stderr = systemu("hiki -l #{basename}*")
|
110
|
+
stdout.split("\n")[3..-1].each{|line|
|
111
|
+
p file= line.split(/\s+/)[-1]
|
112
|
+
current[file]=line
|
113
|
+
}
|
114
|
+
previous={}
|
115
|
+
File.readlines('.hikirc')[1..-1].each{|line|
|
116
|
+
p file= line.split(/\s+/)[-1]
|
117
|
+
previous[file]=line.chomp
|
118
|
+
}
|
119
|
+
added,changed = [],[]
|
120
|
+
current.each_pair{|key,val|
|
121
|
+
if !previous.include?(key)
|
122
|
+
added[key]=val
|
123
|
+
elsif previous[key]!=val
|
124
|
+
changed << val+"\n"
|
125
|
+
else
|
126
|
+
|
127
|
+
end
|
128
|
+
}
|
129
|
+
if changed.size != 0 or added.size !=0
|
130
|
+
print("hiki dirで変更が発生しています.\n")
|
131
|
+
changed.each{|line| print line+"\n"}
|
132
|
+
added.each{|line| print line+"\n"}
|
133
|
+
exit
|
134
|
+
end
|
135
|
+
end
|
data/lib/templates/hiki_help.yml
CHANGED
@@ -1,86 +1,53 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
next if source.include?('.hikirc')
|
55
|
-
p base = source.split('.')[0]
|
56
|
-
name = (base==basename)? base : basename+'_'+base
|
57
|
-
p target = File.join(target_dir,'text',name)
|
58
|
-
FileUtils.cp(source,target,:verbose=>true)
|
59
|
-
}
|
60
|
-
p entries=Dir.entries('./figs') #cp files in figs
|
61
|
-
p target = File.join(target_dir,'cache','attach',basename)
|
62
|
-
FileUtils.mkdir(target,:verbose=>true) unless File.exists?(target)
|
63
|
-
entries[2..-1].each{|file|
|
64
|
-
p source = File.join('./figs',file)
|
65
|
-
FileUtils.cp(source,target,:verbose=>true)
|
66
|
-
}
|
67
|
-
exit
|
68
|
-
end
|
69
|
-
|
70
|
-
desc "For hiki Errno::ENOENT, Errno::EACCES"
|
71
|
-
task :chenv do
|
72
|
-
p user = ENV['USER']
|
73
|
-
system("sudo chmod -R a+w #{target_dir}")
|
74
|
-
# system("sudo chown -R #{user} #{target_dir}")
|
75
|
-
end
|
76
|
-
|
77
|
-
desc "self copy to hikiutils template directory"
|
78
|
-
task :self_copy do
|
79
|
-
p cp_files=[['Rakefile','Rakefile_hiki_sync'],
|
80
|
-
[File.join(ENV['HOME'],'.my_help','hiki_help.yml'),'hiki_help.yml']]
|
81
|
-
cp_files.each{|files|
|
82
|
-
p source = File.join(Dir.pwd,'Rakefile')
|
83
|
-
p target = File.join('/Users/bob/Github/hikiutils/lib/templates/',files[1])
|
84
|
-
FileUtils.cp(source,target,:verbose=>true)
|
85
|
-
}
|
86
|
-
end
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
---
|
3
|
+
:head:
|
4
|
+
- hikiutil関連のヘルプ
|
5
|
+
:initialize:
|
6
|
+
:opts:
|
7
|
+
:short: "-i"
|
8
|
+
:long: "--initialize"
|
9
|
+
:desc: hikiで卒論を書くときの初期化と掟
|
10
|
+
:title: hikiで卒論を書くときの初期化と掟
|
11
|
+
:cont:
|
12
|
+
- 開発メモ:figs,dataも作成
|
13
|
+
- 目的:西谷が後で迷わないように決まったファイル構造を堅持すべし
|
14
|
+
- 文書:hikiで書く.のちには,latexに変換するプログラムを提供します
|
15
|
+
- 図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
|
16
|
+
- データ:dataディレクトリにまとめる.ファイル名をkeynoteの対応する図表中に記す
|
17
|
+
- hiki --initializeで初期ファイル(Rakefile, ./.hikirc, hiki_help.yml)がcopyされる
|
18
|
+
- hiki_help.ymlを適宜~/.my_helpにcopyしてhiki_helpとして利用,(my_help参照)
|
19
|
+
- Errno::EACCESやpermission errorがでたときはrake chenvを試してみる(報告して)
|
20
|
+
- rake syncによってhikiディレクトリーと同期が取られる
|
21
|
+
- hiki -u TARGETによってブラウザー表示される
|
22
|
+
- テキストの拡張子は'.hiki'
|
23
|
+
- hikiでのurlはテキスト前とディレクトリーから自動生成される
|
24
|
+
- 例えば,hiki2latex_saki/introduciton.hikiとするとhiki2latex_saki_introducitonと変換される
|
25
|
+
:error:
|
26
|
+
:opts:
|
27
|
+
:short: "-e"
|
28
|
+
:long: "--error"
|
29
|
+
:desc: error対応
|
30
|
+
:title: error対応
|
31
|
+
:cont:
|
32
|
+
- Permission denied - ./data/text/boundary_narita (Errno::EACCES)->テキストにhikiが書き込めない,chmod
|
33
|
+
a+w FILE
|
34
|
+
:figs:
|
35
|
+
:opts:
|
36
|
+
:short: "-f"
|
37
|
+
:long: "--figs"
|
38
|
+
:desc: 図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
|
39
|
+
:title: 図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
|
40
|
+
:cont:
|
41
|
+
- keynoteに書いたスライドはイメージに書き出して,rake convert 80 TARGET_DIRでfigsに変換
|
42
|
+
- rake syncでfigsにあるfilesはhiki/target_dirにcpされる
|
43
|
+
- 'convert #{source} -resize 20% #{target}によって,target=figs/TAERGET.pngに20%に縮小して保存される'
|
44
|
+
- convert -density 300 view.svg view.pngで300dpiで変換
|
45
|
+
- |
|
46
|
+
attach_anchorでは
|
47
|
+
'{{attach_anchor(test.png, hiki2latex_saki)}}'
|
48
|
+
と,directory指定しなければならない.
|
49
|
+
- keynoteであとで図を挿入して番号が変わった時の原稿の一括変換
|
50
|
+
- rake increment 2 boundary_bob.hiki boundary_bob > tmp.hiki
|
51
|
+
- rake convert 60 boundary_bob
|
52
|
+
- rake sync
|
53
|
+
- hiki -u boundary_bob_tmp
|
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.2
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -195,12 +195,17 @@ files:
|
|
195
195
|
- abst/out4.pdf
|
196
196
|
- abst/out4.synctex.gz
|
197
197
|
- abst/out4.tex
|
198
|
+
- abst/speed.png
|
198
199
|
- abst/testhiki
|
199
200
|
- abst/testhiki2
|
201
|
+
- abst/tmp.hiki
|
202
|
+
- abst/tmp.html
|
203
|
+
- abst/work.png
|
200
204
|
- abst/yamane_abst.pdf
|
201
205
|
- abst/yamane_abst.tex
|
202
206
|
- abst/yamane_abst_new.pdf
|
203
207
|
- abst/yamane_powerpoint.key
|
208
|
+
- abst/yamane_powerpoint.pptx/.DS_Store
|
204
209
|
- abst/yamane_powerpoint.pptx/Data/PresetImageFill0-1.jpg
|
205
210
|
- abst/yamane_powerpoint.pptx/Data/PresetImageFill1-2.jpg
|
206
211
|
- abst/yamane_powerpoint.pptx/Data/PresetImageFill2-3.jpg
|
@@ -232,6 +237,37 @@ files:
|
|
232
237
|
- abst/yamane_powerpoint.pptx/preview-micro.jpg
|
233
238
|
- abst/yamane_powerpoint.pptx/preview-web.jpg
|
234
239
|
- abst/yamane_powerpoint.pptx/preview.jpg
|
240
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill0-1.jpg
|
241
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill1-2.jpg
|
242
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill2-3.jpg
|
243
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill3-4.jpg
|
244
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill4-5.jpg
|
245
|
+
- abst/yamane_powerpoint_new.key/Data/PresetImageFill5-6.jpg
|
246
|
+
- abst/yamane_powerpoint_new.key/Data/image1-12.png
|
247
|
+
- abst/yamane_powerpoint_new.key/Data/image1-9.png
|
248
|
+
- abst/yamane_powerpoint_new.key/Data/mt0@2x-13.jpg
|
249
|
+
- abst/yamane_powerpoint_new.key/Data/mt10@2x-22.jpg
|
250
|
+
- abst/yamane_powerpoint_new.key/Data/mt1@2x-14.jpg
|
251
|
+
- abst/yamane_powerpoint_new.key/Data/mt2@2x-15.jpg
|
252
|
+
- abst/yamane_powerpoint_new.key/Data/mt3@2x-16.jpg
|
253
|
+
- abst/yamane_powerpoint_new.key/Data/mt4@2x-17.png
|
254
|
+
- abst/yamane_powerpoint_new.key/Data/mt5@2x-18.jpg
|
255
|
+
- abst/yamane_powerpoint_new.key/Data/mt6@2x-19.jpg
|
256
|
+
- abst/yamane_powerpoint_new.key/Data/mt7@2x-20.png
|
257
|
+
- abst/yamane_powerpoint_new.key/Data/mt8@2x-21.jpg
|
258
|
+
- abst/yamane_powerpoint_new.key/Data/st0-381.jpg
|
259
|
+
- abst/yamane_powerpoint_new.key/Data/st1-493.jpg
|
260
|
+
- abst/yamane_powerpoint_new.key/Data/st2-495.jpg
|
261
|
+
- abst/yamane_powerpoint_new.key/Data/st3-481.jpg
|
262
|
+
- abst/yamane_powerpoint_new.key/Data/st4-485.jpg
|
263
|
+
- abst/yamane_powerpoint_new.key/Data/st5-372.jpg
|
264
|
+
- abst/yamane_powerpoint_new.key/Index.zip
|
265
|
+
- abst/yamane_powerpoint_new.key/Metadata/BuildVersionHistory.plist
|
266
|
+
- abst/yamane_powerpoint_new.key/Metadata/DocumentIdentifier
|
267
|
+
- abst/yamane_powerpoint_new.key/Metadata/Properties.plist
|
268
|
+
- abst/yamane_powerpoint_new.key/preview-micro.jpg
|
269
|
+
- abst/yamane_powerpoint_new.key/preview-web.jpg
|
270
|
+
- abst/yamane_powerpoint_new.key/preview.jpg
|
235
271
|
- bin/console
|
236
272
|
- bin/setup
|
237
273
|
- exe/hiki
|
@@ -248,9 +284,11 @@ files:
|
|
248
284
|
- hikiutils.wiki/yamane.md
|
249
285
|
- hikiutils_yamane/.gitignore
|
250
286
|
- hikiutils_yamane/Rakefile
|
287
|
+
- hikiutils_yamane/command_table.hiki
|
251
288
|
- hikiutils_yamane/hiki_help.yml
|
252
289
|
- hikiutils_yamane/hikiutils_yamane.hiki
|
253
290
|
- lib/hikiutils.rb
|
291
|
+
- lib/hikiutils/#tmarshal.rb#
|
254
292
|
- lib/hikiutils/infodb.rb
|
255
293
|
- lib/hikiutils/tmarshal.rb
|
256
294
|
- lib/hikiutils/version.rb
|