hikiutils 0.2.3.13 → 0.2.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/hikiutils.gemspec +2 -1
- data/hikiutils_bob/Rakefile +30 -16
- data/hikiutils_bob/code.hiki +9 -30
- data/hikiutils_bob/figs/hikiutils_bob.002.jpeg +0 -0
- data/hikiutils_bob/figs/hikiutils_bob.007.jpeg +0 -0
- data/hikiutils_bob/figs/hikiutils_bob.pdf +0 -0
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.002.jpeg +0 -0
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.007.jpeg +0 -0
- data/hikiutils_bob/hikiutils_bob.key +0 -0
- data/hikiutils_bob/latex_all.hiki +33 -8
- data/hikiutils_bob/latex_dir/code.aux +7 -14
- data/hikiutils_bob/latex_dir/code.log +28 -0
- data/hikiutils_bob/latex_dir/code.tex +13 -31
- data/hikiutils_bob/latex_dir/hikiutils_bob.log +59 -50
- 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 +29 -29
- data/hikiutils_bob/latex_dir/latex_all.aux +19 -16
- data/hikiutils_bob/latex_dir/latex_all.log +28 -0
- data/hikiutils_bob/latex_dir/latex_all.tex +34 -9
- data/hikiutils_bob/latex_dir/sync.aux +16 -16
- data/hikiutils_bob/latex_dir/sync.tex +4 -4
- data/hikiutils_yamane/Rakefile +14 -2
- data/hikiutils_yamane/abstract.hiki +3 -3
- data/hikiutils_yamane/discussion.hiki +9 -0
- data/hikiutils_yamane/hikiutils_yamane.hiki +8 -10
- data/hikiutils_yamane/introduction.hiki +1 -1
- data/hikiutils_yamane/latex_dir/abstract.tex +3 -3
- data/hikiutils_yamane/latex_dir/{%CA%FD/313/241.aux → discussion.aux} +8 -7
- data/hikiutils_yamane/latex_dir/discussion.tex +9 -0
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.aux +3 -6
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.log +50 -59
- 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 +4 -7
- data/hikiutils_yamane/latex_dir/hikiutils_yamane.toc +21 -21
- data/hikiutils_yamane/latex_dir/introduction.tex +1 -1
- data/hikiutils_yamane/latex_dir/method.aux +46 -0
- data/hikiutils_yamane/latex_dir/method.tex +247 -0
- data/hikiutils_yamane/latex_dir/results.aux +49 -0
- data/hikiutils_yamane/latex_dir/results.tex +249 -0
- data/hikiutils_yamane/method.hiki +234 -0
- data/hikiutils_yamane/results.hiki +225 -0
- data/hikiutils_yamane/toc.hiki +0 -1
- data/lib/hikiutils/version.rb +1 -1
- data/lib/hikiutils_thor.rb~ +37 -37
- data/lib/templates/Rakefile_hiki_sync +32 -17
- data/lib/templates/mi_key_bind_setting +1 -0
- metadata +33 -19
- data/hikiutils_yamane/Rakefile~ +0 -477
- data/hikiutils_yamane/command.hiki +0 -111
- data/hikiutils_yamane/compare.hiki +0 -116
- data/hikiutils_yamane/latex_dir/command.aux +0 -35
- data/hikiutils_yamane/latex_dir/command.log +0 -0
- data/hikiutils_yamane/latex_dir/command.tex +0 -123
- data/hikiutils_yamane/latex_dir/compare.aux +0 -30
- data/hikiutils_yamane/latex_dir/compare.tex +0 -123
- data/hikiutils_yamane/latex_dir/optparse.aux +0 -31
- data/hikiutils_yamane/latex_dir/optparse.tex +0 -119
- data/hikiutils_yamane/latex_dir/thor.aux +0 -32
- data/hikiutils_yamane/latex_dir/thor.tex +0 -110
- data/hikiutils_yamane/optparse.hiki +0 -114
- data/hikiutils_yamane/thor.hiki +0 -107
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e9e51c421a0081b58cf876d170c268ef4d5c71
|
4
|
+
data.tar.gz: 5cbba5c231dece698f1c95027b8d4af3a03fa164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e26ba914f670d20ec41011696c554ef6045a86f2410652bdd7bd244dd7c7b011eaa0cbabfcabb5a1d456229e853c46c8b03c7e95db9df78bb876e95179811b26
|
7
|
+
data.tar.gz: 2ee97636455187fed8fb769503024148bee6f7ada55773c0d267f0628227eb11904efd18a1d0ff24bed9ef44eb048796e0bd276de1ddb24d070eea6787005497
|
data/hikiutils.gemspec
CHANGED
@@ -36,9 +36,10 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency "hiki2md"
|
37
37
|
spec.add_development_dependency "mathjax-yard"
|
38
38
|
spec.add_development_dependency "hiki2yard"
|
39
|
-
spec.add_development_dependency "hiki2latex", "~>0.9.
|
39
|
+
spec.add_development_dependency "hiki2latex", "~>0.9.17"
|
40
40
|
spec.add_runtime_dependency "systemu"
|
41
41
|
spec.add_runtime_dependency "hikidoc", "~> 0.1.0"
|
42
42
|
spec.add_runtime_dependency 'thor'
|
43
43
|
spec.add_runtime_dependency 'colorize'
|
44
|
+
spec.add_runtime_dependency 'coderay'
|
44
45
|
end
|
data/hikiutils_bob/Rakefile
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
require 'systemu'
|
3
3
|
require 'tempfile'
|
4
4
|
require 'colorize'
|
5
|
+
require 'coderay'
|
6
|
+
|
5
7
|
# -*- coding: utf-8 -*-
|
6
8
|
begin
|
7
9
|
$hiki_dir = File.readlines('./.hikirc')[0].chomp
|
@@ -36,7 +38,7 @@ task :reset_hiki do
|
|
36
38
|
}
|
37
39
|
r_files = files.reverse[0..-4]
|
38
40
|
r_files.each{|file|
|
39
|
-
print "remove #{file}
|
41
|
+
print "remove #{file}[ynqlA]? ".red
|
40
42
|
input=STDIN.gets.chomp
|
41
43
|
case input
|
42
44
|
when 'y'
|
@@ -49,7 +51,7 @@ task :reset_hiki do
|
|
49
51
|
when 'q'
|
50
52
|
exit
|
51
53
|
when 'A'
|
52
|
-
print "\nAre you sure
|
54
|
+
print "\nAre you sure[Yn]? ".magenta
|
53
55
|
input2 = STDIN.gets.chomp
|
54
56
|
case input2
|
55
57
|
when 'Y'
|
@@ -66,9 +68,11 @@ end
|
|
66
68
|
desc "latex_dirのゴミを掃除"
|
67
69
|
task :reset_latex_dir do
|
68
70
|
system "mv latex_dir/head.tex ."
|
71
|
+
system "mv latex_dir/jlisting.sty ."
|
69
72
|
system "rm -rf latex_dir"
|
70
73
|
system "mkdir latex_dir"
|
71
74
|
system "mv head.tex latex_dir/"
|
75
|
+
system "mv jlisting.sty latex_dir/"
|
72
76
|
system "rake latex_all"
|
73
77
|
end
|
74
78
|
|
@@ -80,14 +84,10 @@ task :mk_toc do
|
|
80
84
|
if m=line.match(/\\contentsline \{(.+)\}\{\\numberline \{([\d|\.]+)\}(.+)\}\{\d+\}/)
|
81
85
|
layer,sec_no,title=m[1],m[2],m[3]
|
82
86
|
d = case m[1]
|
83
|
-
when 'section'
|
84
|
-
|
85
|
-
when '
|
86
|
-
|
87
|
-
when 'subsubsection'
|
88
|
-
3
|
89
|
-
else
|
90
|
-
4
|
87
|
+
when 'section'; 1
|
88
|
+
when 'subsection'; 2
|
89
|
+
when 'subsubsection'; 3
|
90
|
+
else; 4
|
91
91
|
end
|
92
92
|
layer = "!"*d
|
93
93
|
title.gsub!('\_','_')
|
@@ -101,7 +101,8 @@ end
|
|
101
101
|
desc "FILE.hikiあるいはhikiファイルすべてを最新状態に更新"
|
102
102
|
task :touch do
|
103
103
|
if file=ARGV[1]
|
104
|
-
|
104
|
+
file_split=file.split(".")
|
105
|
+
p target = $basename==file_split[0] ? $basename : $basename+"_"+file_split[0]
|
105
106
|
system "hiki -u #{target}"
|
106
107
|
else
|
107
108
|
p target = File.join($hiki_dir,'cache','attach',$basename)
|
@@ -109,7 +110,6 @@ task :touch do
|
|
109
110
|
Dir.entries('.').each{|file|
|
110
111
|
file_split=file.split(".")
|
111
112
|
if file_split[1]=='hiki'
|
112
|
-
next if file_split[0]==$basename
|
113
113
|
p target = $basename==file_split[0] ? $basename : $basename+"_"+file_split[0]
|
114
114
|
system "hiki -u #{target}"
|
115
115
|
end
|
@@ -144,6 +144,7 @@ task :latex_wrap => [:latex_base, :change_wrap] do
|
|
144
144
|
end
|
145
145
|
|
146
146
|
def latex_loop(entries,opts={})
|
147
|
+
check_bounding_box
|
147
148
|
main_file=""
|
148
149
|
entries.each{|file|
|
149
150
|
options={:latex_all=>true}
|
@@ -189,7 +190,6 @@ end
|
|
189
190
|
|
190
191
|
desc "すべてのhikiファイルをlatex変換"
|
191
192
|
task :latex_all do
|
192
|
-
check_bounding_box
|
193
193
|
p entries=Dir.entries('.')
|
194
194
|
main_file = latex_loop(entries,opts={:main=>true})
|
195
195
|
latex_loop(entries)
|
@@ -197,7 +197,14 @@ task :latex_all do
|
|
197
197
|
p reg_exp = Regexp.new("#{$basename}_(.+)")
|
198
198
|
toc = false
|
199
199
|
File.readlines(File.join($latex_dir,"#{main_file}.tex")).each{|line|
|
200
|
-
line, toc = "", true if line.match(/\\tableofcontents/) and toc == true #only one
|
200
|
+
# line, toc = "", true if line.match(/\\tableofcontents/) and toc == true #only one
|
201
|
+
if line.match(/\\tableofcontents/)
|
202
|
+
if toc == false #only one
|
203
|
+
toc = true
|
204
|
+
else
|
205
|
+
line = ''
|
206
|
+
end
|
207
|
+
end
|
201
208
|
line ="\\usepackage{listings,jlisting}" if line.match(/\\usepackage{listings}/)
|
202
209
|
if line.match(/section{(.+)}/)
|
203
210
|
if m=line.match(/\\verb\|(.+)\((.+)\)\|/)
|
@@ -285,7 +292,7 @@ def latex_cite_ref(line)
|
|
285
292
|
while m=line.match(r_pair[1])
|
286
293
|
line.sub!(r_pair[1],"\\ref\{#{m[1]}\}")
|
287
294
|
end
|
288
|
-
puts line.chomp.blue
|
295
|
+
# puts line.chomp.blue
|
289
296
|
return line
|
290
297
|
end
|
291
298
|
|
@@ -440,7 +447,14 @@ task :self_copy do
|
|
440
447
|
cp_files.each{|files|
|
441
448
|
p source = files[0]
|
442
449
|
p target = File.join('/Users/bob/Github/hikiutils/lib/templates/',files[1])
|
443
|
-
|
450
|
+
command = "diff #{source} #{target}"
|
451
|
+
status, stdout, stderr=systemu command
|
452
|
+
if stdout!=''
|
453
|
+
puts command.red
|
454
|
+
puts CodeRay.scan(stdout, :Diff).term
|
455
|
+
print " Are you sure to save #{source}? [Yn] ".red
|
456
|
+
FileUtils.cp(source,target,:verbose=>true) if STDIN.gets.chomp=='Y'
|
457
|
+
end
|
444
458
|
}
|
445
459
|
end
|
446
460
|
|
data/hikiutils_bob/code.hiki
CHANGED
@@ -6,36 +6,6 @@ listingsでは日本語表示がちゃんとなされません.そこで,
|
|
6
6
|
\usepackage{listings,jlisting}
|
7
7
|
とします.これで,日本語が含まれたcodeも綺麗に表示してくれます.
|
8
8
|
|
9
|
-
!!参照のシステム
|
10
|
-
latexへ文献参照を渡すために,下記のようなフォーマットでの記述を行ってください.
|
11
|
-
|
12
|
-
<<< tcsh
|
13
|
-
図{{ref(fig:SystemOverview)}}に卒論編集システムの概観を示しています.
|
14
|
-
|
15
|
-
!!!caption: (fig:SystemOverview)卒論編集システムの概観.
|
16
|
-
{{attach_view(hikiutils_bob.006.jpeg,hikiutils_bob)}}
|
17
|
-
|
18
|
-
*基本的な使い方{{cite(listings1)}}
|
19
|
-
*独自のカラー化{{cite(listings2)}}
|
20
|
-
!reference:
|
21
|
-
:listings1:[[http://d.hatena.ne.jp/mallowlabs/20061226/1167137637]]
|
22
|
-
:listings2:[[http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html]]
|
23
|
-
>>>
|
24
|
-
|
25
|
-
ここで,fig:以下にsnake nameは使えません.Camelで書くようにしてください.
|
26
|
-
|
27
|
-
これをlatexにかけると次の通りになります.(体裁は乱れている)
|
28
|
-
|
29
|
-
図{{ref(fig:SystemOverview)}}に卒論編集システムの概観を示しています.
|
30
|
-
|
31
|
-
!!!caption: (fig:SystemOverview)卒論編集システムの概観.
|
32
|
-
{{attach_view(hikiutils_bob.006.jpeg,hikiutils_bob)}}
|
33
|
-
|
34
|
-
*基本的な使い方{{cite(listings1)}}
|
35
|
-
*独自のカラー化{{cite(listings2)}}
|
36
|
-
!reference:
|
37
|
-
:listings1:[[http://d.hatena.ne.jp/mallowlabs/20061226/1167137637]]
|
38
|
-
:listings2:[[http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html]]
|
39
9
|
|
40
10
|
!!システムの概要
|
41
11
|
卒論編集システム開発時のメモです.図{{ref(fig:SystemOverview)}}に卒論編集システムの概観を示しています.
|
@@ -47,6 +17,15 @@ hikiシステムとの同期は,hikiutilsのhikiが下請けしている.
|
|
47
17
|
:texへ:latex2hikiからの出力(tmp.txt)を処理してtexへ
|
48
18
|
で行っている,あるいはおこなう.
|
49
19
|
|
20
|
+
!!参照機能の実装
|
21
|
+
Latexの参照機能を通すための変換を行っています.そのための記述の仕方は{{ref(fig:CiteRefSystems)}}を参照してください.実際のcodeはRakefile内で
|
22
|
+
*hikiはrake syncした時にtmpで変換させてそれを転送
|
23
|
+
*latexはhiki2latexで出てきた結果を変換
|
24
|
+
しています.hiki2latex, latex2hikiへの実装も考えたのですが...
|
25
|
+
|
26
|
+
attach_anchor, titleとかは変換しているので,そちらで実装する方がいいかもしれません.
|
27
|
+
どこまでを汎用ライブラリでさせて,どこからを個別のRafefileに入れるかの判断基準を
|
28
|
+
これから明確化していく必要があるでしょう.
|
50
29
|
!!rake mk_toc
|
51
30
|
latexが作成するtableofcontentsの実態であるtocファイルからhiki用のtoc.hikiを作成する.
|
52
31
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -105,7 +105,7 @@ latex_dir内に幾つかのtex雛形を入れておく必要があります.
|
|
105
105
|
|
106
106
|
!!!!head.tex
|
107
107
|
題目,学生番号,氏名を変更する.年月をチェック.
|
108
|
-
\\setcounter{tocdepth}はtocをどこまで表示するかのレベルに対応します.
|
108
|
+
\\setcounter\{tocdepth\}はtocをどこまで表示するかのレベルに対応します.
|
109
109
|
原稿作成時は階層がわかりやすいように深めにしていますが,本番では2程度で十分です.
|
110
110
|
<<< tex
|
111
111
|
bob% cat head.tex
|
@@ -182,6 +182,8 @@ wrapfigureでtextの回りこみや位置調整を行う必要があります.
|
|
182
182
|
*rake change_wrap(wrapで変換)
|
183
183
|
*rake latex_base(latexに変換するだけの下請け)
|
184
184
|
*rake latex_wrap(figure環境だけをwrapfig環境に変える)
|
185
|
+
|
186
|
+
Rakefile内の記述は
|
185
187
|
<<< ruby
|
186
188
|
desc "latex conversion FILE1"
|
187
189
|
task :latex => [:latex_base] do
|
@@ -193,13 +195,36 @@ task :latex_wrap => [:latex_base, :change_wrap] do
|
|
193
195
|
exit
|
194
196
|
end
|
195
197
|
>>>
|
198
|
+
となっています.つまり,:latex_baseをした後に,:change_wrapを呼び出しています.
|
199
|
+
|
196
200
|
完成例はこちらです.
|
197
201
|
*{{attach_anchor(calphad_bob.pdf,hikiutils_bob)}}
|
202
|
+
発表会の予稿ハンドアウトなどではこれが不可欠です.
|
203
|
+
|
204
|
+
!!参照のシステム
|
205
|
+
|
206
|
+
latexへ文献参照を渡すために,下記のようなフォーマットでの記述を行ってください.
|
207
|
+
|
208
|
+
<<< tcsh
|
209
|
+
図{{ref(fig:SystemOverview)}}に卒論編集システムの概観を示しています.
|
210
|
+
|
211
|
+
!!!caption: (fig:SystemOverview)卒論編集システムの概観.
|
212
|
+
{{attach_view(hikiutils_bob.006.jpeg,hikiutils_bob)}}
|
213
|
+
|
214
|
+
*基本的な使い方{{cite(listings1)}}
|
215
|
+
*独自のカラー化{{cite(listings2)}}
|
216
|
+
!reference:
|
217
|
+
:listings1:[[http://d.hatena.ne.jp/mallowlabs/20061226/1167137637]]
|
218
|
+
:listings2:[[http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html]]
|
219
|
+
>>>
|
220
|
+
|
221
|
+
* caption以下の丸括弧内にタグを書きます.
|
222
|
+
* fig:以下のタグにsnake nameは使えません.Camelで書くようにしてください.
|
223
|
+
* refでそれを参照します.
|
224
|
+
* citeの方も同じです.
|
225
|
+
* reference:以下の:...:記述がlatexではbibliographyに変わります.
|
226
|
+
|
227
|
+
これをsync, all_latexをかけると図{{ref(fig:CiteRefSystems)}}のようになります.latexの文献参照(cite, bibliography),図表番号の参照(ref, label)が正常に処理されていることが確認できます.また,web表示した場合でもそれほど違和感なく読めるでしょう.
|
198
228
|
|
199
|
-
|
200
|
-
|
201
|
-
* {{ref}} {{cite}}を組み込む
|
202
|
-
* hikiにではなく,rake syncで変換
|
203
|
-
* listingsの調整
|
204
|
-
* jlistingは,\\lstsetや\\lstdefinestyleで引っかかってダメ
|
205
|
-
* basicstyle={\small\ttfamily}これ効いてんにゃろか??
|
229
|
+
!!!caption: (fig:CiteRefSystems)参照機能を利用した場合の変換後の表示.
|
230
|
+
{{attach_view(hikiutils_bob.007.jpeg,hikiutils_bob)}}
|
@@ -1,23 +1,16 @@
|
|
1
1
|
\relax
|
2
|
-
\
|
3
|
-
\
|
4
|
-
\
|
5
|
-
\
|
6
|
-
\@writefile{toc}{\contentsline {
|
7
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}日本語のcode listings}{19}}
|
8
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}文献参照のシステム}{19}}
|
9
|
-
\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces 卒論編集システムの概観.}}{20}}
|
10
|
-
\newlabel{fig:SystemOverview}{{5}{20}}
|
11
|
-
\newlabel{default}{{5}{20}}
|
12
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}システムの概要}{20}}
|
13
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}rake mk\_toc}{20}}
|
2
|
+
\@writefile{toc}{\contentsline {section}{\numberline {4}Rakefile開発に関するメモ}{21}}
|
3
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}日本語のcode listings}{21}}
|
4
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}システムの概要}{21}}
|
5
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}参照機能の実装}{21}}
|
6
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}rake mk\_toc}{22}}
|
14
7
|
\@setckpt{code}{
|
15
|
-
\setcounter{page}{
|
8
|
+
\setcounter{page}{23}
|
16
9
|
\setcounter{equation}{0}
|
17
10
|
\setcounter{enumi}{4}
|
18
11
|
\setcounter{enumii}{1}
|
19
12
|
\setcounter{enumiii}{0}
|
20
|
-
\setcounter{enumiv}{
|
13
|
+
\setcounter{enumiv}{0}
|
21
14
|
\setcounter{footnote}{0}
|
22
15
|
\setcounter{mpfootnote}{0}
|
23
16
|
\setcounter{part}{0}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex 2017.1.26) 10 FEB 2017 16:45
|
2
|
+
entering extended mode
|
3
|
+
restricted \write18 enabled.
|
4
|
+
file:line:error style messages enabled.
|
5
|
+
%&-line parsing enabled.
|
6
|
+
**code.tex
|
7
|
+
(./code.tex
|
8
|
+
pLaTeX2e <2016/11/29> (based on LaTeX2e <2017/01/01>)
|
9
|
+
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
|
10
|
+
./code.tex:1: Undefined control sequence.
|
11
|
+
l.1 \section
|
12
|
+
{Rakefile開発に関するメモ}
|
13
|
+
?
|
14
|
+
./code.tex:1: Emergency stop.
|
15
|
+
l.1 \section
|
16
|
+
{Rakefile開発に関するメモ}
|
17
|
+
End of file on the terminal!
|
18
|
+
|
19
|
+
|
20
|
+
Here is how much of TeX's memory you used:
|
21
|
+
4 strings out of 493683
|
22
|
+
30 string characters out of 6149653
|
23
|
+
53892 words of memory out of 5000000
|
24
|
+
3671 multiletter control sequences out of 15000+600000
|
25
|
+
7511 words of font info for 31 fonts, out of 8000000 for 9000
|
26
|
+
929 hyphenation exceptions out of 8191
|
27
|
+
5i,0n,3p,45b,8s stack positions out of 5000i,500n,10000p,200000b,80000s
|
28
|
+
No pages of output.
|
@@ -7,37 +7,6 @@ listingsでは日本語表示がちゃんとなされません.そこで,
|
|
7
7
|
\end{verbatim}\end{quote}
|
8
8
|
とします.これで,日本語が含まれたcodeも綺麗に表示してくれます.
|
9
9
|
|
10
|
-
\subsection{文献参照のシステム}
|
11
|
-
latexへ文献参照を渡すために,下記のようなフォーマットでの記述を行う.
|
12
|
-
\begin{lstlisting}[style=customCsh,basicstyle={\scriptsize\ttfamily}]
|
13
|
-
図{{ref(fig:SystemOverview)}}に卒論編集システムの概観を示しています.
|
14
|
-
|
15
|
-
!!!caption: (fig:SystemOverview)卒論編集システムの概観.
|
16
|
-
{{attach_view(hikiutils_bob.006.jpeg)}}
|
17
|
-
|
18
|
-
*基本的な使い方{{cite(listings1)}}
|
19
|
-
*独自のカラー化{{cite(listings2)}}
|
20
|
-
!reference:
|
21
|
-
:listings1:[[http://d.hatena.ne.jp/mallowlabs/20061226/1167137637]]
|
22
|
-
:listings2:[[http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html]]
|
23
|
-
\end{lstlisting}
|
24
|
-
これをlatexにかけると次の通りになります.(体裁は乱れている)
|
25
|
-
|
26
|
-
図\ref{fig:SystemOverview}に卒論編集システムの概観を示しています.
|
27
|
-
|
28
|
-
\begin{figure}[htbp]\begin{center}
|
29
|
-
\includegraphics[width=10cm,bb=]{../figs/./hikiutils_bob.006.jpeg}
|
30
|
-
\caption{卒論編集システムの概観.}
|
31
|
-
\label{fig:SystemOverview}
|
32
|
-
\label{default}\end{center}\end{figure}
|
33
|
-
\begin{itemize}
|
34
|
-
\item 基本的な使い方\cite{listings1}
|
35
|
-
\item 独自のカラー化\cite{listings2}
|
36
|
-
\end{itemize}
|
37
|
-
\begin{thebibliography}{99}
|
38
|
-
\bibitem{listings1} \verb|http://d.hatena.ne.jp/mallowlabs/20061226/1167137637|
|
39
|
-
\bibitem{listings2} \verb|http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html|
|
40
|
-
\end{thebibliography}
|
41
10
|
\subsection{システムの概要}
|
42
11
|
卒論編集システム開発時のメモです.図\ref{fig:SystemOverview}に卒論編集システムの概観を示しています.
|
43
12
|
|
@@ -52,6 +21,19 @@ hikiシステムとの同期は,hikiutilsのhikiが下請けしている.
|
|
52
21
|
\end{description}
|
53
22
|
で行っている,あるいはおこなう.
|
54
23
|
|
24
|
+
\subsection{参照機能の実装}
|
25
|
+
Latexの参照機能を通すための変換を行っています.そのための記述の仕方は\ref{fig:CiteRefSystems}を参照してください.実際のcodeはRakefile内で
|
26
|
+
|
27
|
+
\begin{itemize}
|
28
|
+
\item hikiはrake syncした時にtmpで変換させてそれを転送
|
29
|
+
\item latexはhiki2latexで出てきた結果を変換
|
30
|
+
\end{itemize}
|
31
|
+
しています.hiki2latex, latex2hikiへの実装も考えたのですが...
|
32
|
+
|
33
|
+
attach\_anchor, titleとかは変換しているので,そちらで実装する方がいいかもしれません.
|
34
|
+
どこまでを汎用ライブラリでさせて,どこからを個別のRafefileに入れるかの判断基準を
|
35
|
+
これから明確化していく必要があるでしょう.
|
36
|
+
|
55
37
|
\subsection{rake mk\_toc}
|
56
38
|
latexが作成するtableofcontentsの実態であるtocファイルからhiki用のtoc.hikiを作成する.
|
57
39
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex 2017.1.26)
|
1
|
+
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex 2017.1.26) 10 FEB 2017 19:34
|
2
2
|
entering extended mode
|
3
3
|
restricted \write18 enabled.
|
4
4
|
file:line:error style messages enabled.
|
@@ -112,31 +112,34 @@ File: listings.cfg 2015/06/04 1.6 listings configuration
|
|
112
112
|
))
|
113
113
|
Package: listings 2015/06/04 1.6 (Carsten Heinz)
|
114
114
|
|
115
|
+
(./jlisting.sty
|
116
|
+
Package: jlisting 2006/02/20 0.2 (Thor)
|
117
|
+
\lst@nextchar=\count99
|
118
|
+
\lst@inputfile=\read1
|
119
|
+
) (./hikiutils_bob.aux (./sync.aux
|
115
120
|
|
116
|
-
|
121
|
+
LaTeX Warning: Label `default' multiply defined.
|
117
122
|
|
118
|
-
Type X to quit or <RETURN> to proceed,
|
119
|
-
or enter new name. (Default extension: sty)
|
120
123
|
|
121
|
-
|
122
|
-
./hikiutils_bob.tex:6: Emergency stop.
|
123
|
-
<read *>
|
124
|
-
|
125
|
-
l.6 \lstset
|
126
|
-
{^^M
|
127
|
-
End of file on the terminal!
|
124
|
+
LaTeX Warning: Label `default' multiply defined.
|
128
125
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
126
|
+
|
127
|
+
LaTeX Warning: Label `default' multiply defined.
|
128
|
+
|
129
|
+
|
130
|
+
LaTeX Warning: Label `default' multiply defined.
|
131
|
+
|
132
|
+
) (./latex_all.aux
|
133
|
+
|
134
|
+
LaTeX Warning: Label `default' multiply defined.
|
135
|
+
|
136
|
+
) (./code.aux))
|
137
|
+
\openout1 = `hikiutils_bob.aux'.
|
138
|
+
|
139
|
+
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 38.
|
140
|
+
LaTeX Font Info: ... okay on input line 38.
|
141
|
+
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 38.
|
142
|
+
LaTeX Font Info: ... okay on input line 38.
|
140
143
|
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 38.
|
141
144
|
LaTeX Font Info: ... okay on input line 38.
|
142
145
|
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 38.
|
@@ -211,13 +214,13 @@ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
|
|
211
214
|
(Font) scaled to size 8.64899pt on input line 11.
|
212
215
|
LaTeX Font Info: Font shape `JY1/mc/m/n' will be
|
213
216
|
(Font) scaled to size 8.64899pt on input line 11.
|
214
|
-
[4
|
215
|
-
|
216
|
-
]
|
217
217
|
LaTeX Font Info: Font shape `JT1/gt/m/n' will be
|
218
218
|
(Font) scaled to size 11.53198pt on input line 16.
|
219
219
|
LaTeX Font Info: Font shape `JY1/gt/m/n' will be
|
220
220
|
(Font) scaled to size 11.53198pt on input line 16.
|
221
|
+
[4
|
222
|
+
|
223
|
+
]
|
221
224
|
File: ../figs/./hikiutils_bob.003.jpeg Graphic file (type eps)
|
222
225
|
<../figs/./hikiutils_bob.003.jpeg>
|
223
226
|
(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstlang1.sty
|
@@ -241,10 +244,10 @@ Overfull \hbox (24.60419pt too wide) in paragraph at lines 238--239
|
|
241
244
|
って , \OT1/cmtt/m/n/10 target=figs/TAERGET.png
|
242
245
|
[]
|
243
246
|
|
244
|
-
) [
|
247
|
+
[12]) [13]
|
245
248
|
\openout2 = `latex_all.aux'.
|
246
249
|
|
247
|
-
(./latex_all.tex [
|
250
|
+
(./latex_all.tex [14
|
248
251
|
|
249
252
|
|
250
253
|
]
|
@@ -277,7 +280,7 @@ File: lstlang3.sty 2015/06/04 1.6 listings language file
|
|
277
280
|
)
|
278
281
|
(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstmisc.sty
|
279
282
|
File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz)
|
280
|
-
) [
|
283
|
+
) [15]
|
281
284
|
LaTeX Font Info: Font shape `JT1/gt/bx/n' in size <7> not available
|
282
285
|
(Font) Font shape `JT1/gt/m/n' tried instead on input line 97.
|
283
286
|
LaTeX Font Info: Font shape `JT1/gt/m/n' will be
|
@@ -294,43 +297,49 @@ Overfull \hbox (71.46521pt too wide) in paragraph at lines 107--108
|
|
294
297
|
://qiita.com/hideaki_polisci/items/3afd204449c6cdd995c9)
|
295
298
|
[]
|
296
299
|
|
297
|
-
[
|
300
|
+
[16] [17] (/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstlang1.sty
|
298
301
|
File: lstlang1.sty 2015/06/04 1.6 listings language file
|
299
302
|
)
|
300
303
|
(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstlang2.sty
|
301
304
|
File: lstlang2.sty 2015/06/04 1.6 listings language file
|
302
|
-
) [
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
(Font) scaled to size 8.64899pt on input line 223.
|
307
|
-
)
|
308
|
-
[18]
|
305
|
+
) [18]
|
306
|
+
File: ../figs/./hikiutils_bob.007.jpeg Graphic file (type eps)
|
307
|
+
|
308
|
+
<../figs/./hikiutils_bob.007.jpeg>) [19] [20]
|
309
309
|
\openout2 = `code.aux'.
|
310
310
|
|
311
311
|
(./code.tex
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
/
|
317
|
-
|
312
|
+
LaTeX Font Info: Font shape `JT1/mc/bx/n' in size <10> not available
|
313
|
+
(Font) Font shape `JT1/gt/m/n' tried instead on input line 11.
|
314
|
+
LaTeX Font Info: Font shape `JT1/gt/m/n' will be
|
315
|
+
(Font) scaled to size 9.60999pt on input line 11.
|
316
|
+
LaTeX Font Info: Font shape `JY1/mc/bx/n' in size <10> not available
|
317
|
+
(Font) Font shape `JY1/gt/m/n' tried instead on input line 11.
|
318
|
+
LaTeX Font Info: Font shape `JY1/gt/m/n' will be
|
319
|
+
(Font) scaled to size 9.60999pt on input line 11.
|
320
|
+
|
321
|
+
|
322
|
+
LaTeX Warning: Reference `fig:SystemOverview' on page 21 undefined on input lin
|
323
|
+
e 11.
|
324
|
+
|
325
|
+
) [21
|
326
|
+
|
318
327
|
|
319
|
-
[
|
328
|
+
] [22] (./hikiutils_bob.aux (./sync.aux) (./latex_all.aux) (./code.aux))
|
320
329
|
|
330
|
+
LaTeX Warning: There were undefined references.
|
321
331
|
|
322
|
-
]) [20] (./hikiutils_bob.aux (./sync.aux) (./latex_all.aux) (./code.aux))
|
323
332
|
|
324
333
|
LaTeX Warning: There were multiply-defined labels.
|
325
334
|
|
326
335
|
)
|
327
336
|
Here is how much of TeX's memory you used:
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
337
|
+
3691 strings out of 493683
|
338
|
+
51299 string characters out of 6149653
|
339
|
+
208998 words of memory out of 5000000
|
340
|
+
7216 multiletter control sequences out of 15000+600000
|
341
|
+
15981 words of font info for 73 fonts, out of 8000000 for 9000
|
333
342
|
934 hyphenation exceptions out of 8191
|
334
343
|
50i,9n,78p,749b,1859s stack positions out of 5000i,500n,10000p,200000b,80000s
|
335
344
|
|
336
|
-
Output written on hikiutils_bob.dvi (
|
345
|
+
Output written on hikiutils_bob.dvi (22 pages, 74656 bytes).
|
Binary file
|
Binary file
|
@@ -1,41 +1,41 @@
|
|
1
1
|
\contentsline {section}{\numberline {1}イントロダクション}{4}
|
2
|
-
\contentsline {section}{\numberline {2}hikiとの同期}{
|
3
|
-
\contentsline {subsection}{\numberline {2.1}hikiutilsのinstall}{
|
2
|
+
\contentsline {section}{\numberline {2}hikiとの同期}{4}
|
3
|
+
\contentsline {subsection}{\numberline {2.1}hikiutilsのinstall}{4}
|
4
4
|
\contentsline {subsection}{\numberline {2.2}個別ディレクトリーの構成}{5}
|
5
5
|
\contentsline {subsection}{\numberline {2.3}システムの概要}{6}
|
6
|
-
\contentsline {subsection}{\numberline {2.4}一般的な執筆手順}{
|
7
|
-
\contentsline {subsection}{\numberline {2.5}rakeが用意しているタスク}{
|
6
|
+
\contentsline {subsection}{\numberline {2.4}一般的な執筆手順}{7}
|
7
|
+
\contentsline {subsection}{\numberline {2.5}rakeが用意しているタスク}{8}
|
8
8
|
\contentsline {subsubsection}{\numberline {2.5.1}rake sync}{8}
|
9
9
|
\contentsline {subsubsection}{\numberline {2.5.2}rake force\_sync}{8}
|
10
|
-
\contentsline {subsubsection}{\numberline {2.5.3}rake chenv}{
|
11
|
-
\contentsline {subsubsection}{\numberline {2.5.4}rake convert VAL DIR}{
|
10
|
+
\contentsline {subsubsection}{\numberline {2.5.3}rake chenv}{9}
|
11
|
+
\contentsline {subsubsection}{\numberline {2.5.4}rake convert VAL DIR}{9}
|
12
12
|
\contentsline {subsubsection}{\numberline {2.5.5}rake increment}{9}
|
13
13
|
\contentsline {subsubsection}{\numberline {2.5.6}rake number}{9}
|
14
|
-
\contentsline {subsubsection}{\numberline {2.5.7}rake open [FILE] (new)}{
|
15
|
-
\contentsline {subsubsection}{\numberline {2.5.8}rake touch [FILE](new)}{
|
16
|
-
\contentsline {subsubsection}{\numberline {2.5.9}rake github(new)}{
|
14
|
+
\contentsline {subsubsection}{\numberline {2.5.7}rake open [FILE] (new)}{10}
|
15
|
+
\contentsline {subsubsection}{\numberline {2.5.8}rake touch [FILE](new)}{10}
|
16
|
+
\contentsline {subsubsection}{\numberline {2.5.9}rake github(new)}{10}
|
17
17
|
\contentsline {subsubsection}{\numberline {2.5.10}rake reset\_hiki(new)}{10}
|
18
18
|
\contentsline {subsection}{\numberline {2.6}githubによる同期}{10}
|
19
19
|
\contentsline {subsection}{\numberline {2.7}hikiutil関連のヘルプ}{11}
|
20
20
|
\contentsline {subsubsection}{\numberline {2.7.1}hikiで卒論を書くときの初期化と掟}{11}
|
21
|
-
\contentsline {subsubsection}{\numberline {2.7.2}図表に関する制約}{
|
21
|
+
\contentsline {subsubsection}{\numberline {2.7.2}図表に関する制約}{12}
|
22
22
|
\contentsline {subsubsection}{\numberline {2.7.3}同期に関する制約}{12}
|
23
|
-
\contentsline {subsubsection}{\numberline {2.7.4}テキストに関する制約}{
|
24
|
-
\contentsline {section}{\numberline {3}実際の最終形態(卒論=pdf)への変換}{
|
25
|
-
\contentsline {subsection}{\numberline {3.1}install}{
|
26
|
-
\contentsline {subsection}{\numberline {3.2}rake latex(個別ファイルの変換)}{
|
27
|
-
\contentsline {subsubsection}{\numberline {3.2.1}注意}{
|
28
|
-
\contentsline {subsection}{\numberline {3.3}rake latex\_all手順(ディレクトリー内の一括変換)}{
|
29
|
-
\contentsline {subsubsection}{\numberline {3.3.1}下準備}{
|
30
|
-
\contentsline {paragraph}{head.tex}{
|
31
|
-
\contentsline {paragraph}{pre.tex}{
|
32
|
-
\contentsline {paragraph}{mainのpreamble部}{
|
33
|
-
\contentsline {subsection}{\numberline {3.4}補助コマンドの解説}{
|
34
|
-
\contentsline {subsubsection}{\numberline {3.4.1}rake reset\_latex\_dir(latex\_dirのゴミ掃除)}{
|
35
|
-
\contentsline {subsubsection}{\numberline {3.4.2}wrap関係}{
|
36
|
-
\contentsline {subsection}{\numberline {3.5}
|
37
|
-
\contentsline {section}{\numberline {4}Rakefile開発に関するメモ}{
|
38
|
-
\contentsline {subsection}{\numberline {4.1}日本語のcode listings}{
|
39
|
-
\contentsline {subsection}{\numberline {4.2}
|
40
|
-
\contentsline {subsection}{\numberline {4.3}
|
41
|
-
\contentsline {subsection}{\numberline {4.4}rake mk\_toc}{
|
23
|
+
\contentsline {subsubsection}{\numberline {2.7.4}テキストに関する制約}{13}
|
24
|
+
\contentsline {section}{\numberline {3}実際の最終形態(卒論=pdf)への変換}{14}
|
25
|
+
\contentsline {subsection}{\numberline {3.1}install}{14}
|
26
|
+
\contentsline {subsection}{\numberline {3.2}rake latex(個別ファイルの変換)}{15}
|
27
|
+
\contentsline {subsubsection}{\numberline {3.2.1}注意}{15}
|
28
|
+
\contentsline {subsection}{\numberline {3.3}rake latex\_all手順(ディレクトリー内の一括変換)}{16}
|
29
|
+
\contentsline {subsubsection}{\numberline {3.3.1}下準備}{16}
|
30
|
+
\contentsline {paragraph}{head.tex}{17}
|
31
|
+
\contentsline {paragraph}{pre.tex}{17}
|
32
|
+
\contentsline {paragraph}{mainのpreamble部}{17}
|
33
|
+
\contentsline {subsection}{\numberline {3.4}補助コマンドの解説}{18}
|
34
|
+
\contentsline {subsubsection}{\numberline {3.4.1}rake reset\_latex\_dir(latex\_dirのゴミ掃除)}{18}
|
35
|
+
\contentsline {subsubsection}{\numberline {3.4.2}wrap関係}{18}
|
36
|
+
\contentsline {subsection}{\numberline {3.5}参照のシステム}{19}
|
37
|
+
\contentsline {section}{\numberline {4}Rakefile開発に関するメモ}{21}
|
38
|
+
\contentsline {subsection}{\numberline {4.1}日本語のcode listings}{21}
|
39
|
+
\contentsline {subsection}{\numberline {4.2}システムの概要}{21}
|
40
|
+
\contentsline {subsection}{\numberline {4.3}参照機能の実装}{21}
|
41
|
+
\contentsline {subsection}{\numberline {4.4}rake mk\_toc}{22}
|