hikiutils 0.2.3.3 → 0.2.3.4

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: 1eb5b7a35bd5f07f212078924e6530375621397c
4
- data.tar.gz: f13e81be238b1a64343ba6fbd3375e6be4cb96bc
3
+ metadata.gz: db609de3c77ce63017a0ac6ff8aacc8c3faa4939
4
+ data.tar.gz: 68652266299d5e45e6b5f9297efa99de62afa868
5
5
  SHA512:
6
- metadata.gz: 05438ca2e8505a9df82c2e0767ada20d463b525ecab156bc52678b5ce8c41a1c6fe9e67e6afde296d4b670c1e2ad1f38bac2d26e1be16cf5fbb67418e7b3b461
7
- data.tar.gz: 9af562491d608c4104aec5073cae14df0be9735432002781ab250a3a8d9758e9887f0b8bd6963cafb6a26859cab7a52c543bd1d1ecf19e25e1895fa32b007756
6
+ metadata.gz: b9143eed042a0d99dcdd49aca92e5802b1c36b308484f070945092a3229b1a5611f17de36140b05a769cc8058d2a082b5d82284e1d6ae5c3c3230ed768d5913d
7
+ data.tar.gz: 6ce4e64efef302f900a8694b04e34206cb38d61196c91e5a20e3d8a742c8b55a3c7704ac774fa3f91007d35a79133d7c7fda13ab3362fc79fca044ee1aee212b
@@ -38,7 +38,7 @@ task :latex_all do
38
38
  option="--listings --head latex_dir/head.tex -p "
39
39
  main_file=f_name
40
40
  else
41
- option="-l 2 --listings -b "
41
+ option="-l 1 --listings -b "
42
42
  end
43
43
  convert_to_latex(file, option)
44
44
  }
Binary file
@@ -1,7 +1,3 @@
1
- !title:hikiutilsを用いた卒業論文作成
2
- !author:にしたに
3
- !date:関西学院
4
-
5
1
  ! [[hikiutils_bob_sync]]
6
2
  ! [[hikiutils_bob_latex_all]]
7
3
 
@@ -1,3 +1,4 @@
1
+ {{toc}}
1
2
  !実際の最終形態(卒論=pdf)への変換
2
3
  hiki+keynoteで卒論の内容ができたら,それを卒論の最終形態つまりpdfへ変換する必要が出てきます.
3
4
 
@@ -39,16 +40,14 @@ rake latex_base # latex conversion FILE1(hiki) to FILE2(latex)
39
40
  rake latex_wrap # latex conversion FILE1 with wrap format
40
41
  >>>
41
42
 
42
- rake latex hikiutils_bob.hiki
43
-
44
- と打ち込むと
45
-
46
43
  !!rake latex手順(個別ファイルの変換)
47
44
  rake latex sync.hiki
48
45
  とすると,
49
46
  latex_dir/sync.tex
50
47
  にlatex変換後のファイルが生成します.これを,TeXShopでcommand_t変換します.
51
48
 
49
+ *{{attach_anchor(sync.pdf,hikiutils_bob)}}
50
+
52
51
  うまくいかないときは,terminalで
53
52
  platex sync.tex
54
53
  dvipdfmx sync.dvi
@@ -73,7 +72,11 @@ hikiの初めの部分は,
73
72
 
74
73
  必要な図は,figsから自動で取るようになっていますが,サイズは解像度が問題のときは手動で調整してください.
75
74
 
76
- !!rake latex_all手順(ディレクトリーないの一括変換)
75
+ !!rake latex_all手順(ディレクトリー内の一括変換)
76
+ pwdのdirectoryの同名のbasenameに.hikiの拡張子がついたファイルが用意されていて,
77
+ rake latex_all
78
+ をおこなうと自動で全部を一体にまとめた文書へのlatex変換が出来上がります.
79
+ たとえば,hikiutils_bob.hikiの記述を
77
80
  <<<
78
81
  bob% cat hikiutils_bob.hiki
79
82
  !hikiutilsを用いた卒業論文作成
@@ -82,14 +85,12 @@ bob% cat hikiutils_bob.hiki
82
85
  ! [[hikiutils_bob_latex_all]]
83
86
 
84
87
  >>>
85
- とpwdのdirectoryの同名のbasenameに.hikiの拡張子がついたファイルが用意されていて,
86
- rake latex_all
87
- をおこなうと自動で全部を一体にまとめた文書へのlatex変換が出来上がります.
88
- 開いているhikiutils_bob.texをTeXShopで変換してみてください.
88
+ とすると,sync.tex, latex_all.texがlatex_dir内に変換されます.
89
+ さらに,開いているhikiutils_bob.texをTeXShopで変換してみてください.
89
90
 
90
91
  うまくできないときは[[ここ|http://qiita.com/hideaki_polisci/items/3afd204449c6cdd995c9#51-texshopの設定]]を参照して自力で入れてみてください.だめならdonkey.
91
92
 
92
- {{attach_view(hikiutils_bob.pdf,hikiutils_bob)}}
93
+ *{{attach_anchor(hikiutils_bob.pdf,hikiutils_bob)}}
93
94
 
94
95
  というようになります.
95
96
 
@@ -1,13 +1,13 @@
1
- This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015) (preloaded format=platex 2015.7.31) 26 JAN 2017 15:53
1
+ This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (utf8.euc) (TeX Live 2016) (preloaded format=platex 2017.1.26) 26 JAN 2017 16:25
2
2
  entering extended mode
3
3
  restricted \write18 enabled.
4
4
  file:line:error style messages enabled.
5
5
  %&-line parsing enabled.
6
- **hikiutils_bob
6
+ **hikiutils_bob.tex
7
7
  (./hikiutils_bob.tex
8
- pLaTeX2e <2006/11/10> (based on LaTeX2e <2015/01/01> patch level 0)
9
- Babel <3.9l> and hyphenation patterns for 79 languages loaded.
10
- (/usr/local/texlive/2015/texmf-dist/tex/platex/jsclasses/jsarticle.cls
8
+ pLaTeX2e <2016/05/07> (based on LaTeX2e <2016/03/31>)
9
+ Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
10
+ (/usr/local/texlive/2016/texmf-dist/tex/platex/jsclasses/jsarticle.cls
11
11
  Document Class: jsarticle 2014/02/07 okumura
12
12
  LaTeX Info: Redefining \rmfamily on input line 352.
13
13
  LaTeX Info: Redefining \sffamily on input line 355.
@@ -42,43 +42,49 @@ LaTeX Info: Redefining \TeX on input line 1731.
42
42
  LaTeX Info: Redefining \LaTeX on input line 1757.
43
43
  LaTeX Info: Redefining \LaTeXe on input line 1782.
44
44
  \heisei=\count89
45
- ) (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
45
+ ) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
46
46
  Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
47
47
 
48
- (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty
48
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty
49
49
  Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
50
50
  \KV@toks@=\toks15
51
51
  )
52
- (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
53
- Package: graphics 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
52
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
53
+ Package: graphics 2016/05/09 v1.0r Standard LaTeX Graphics (DPC,SPQR)
54
54
 
55
- (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty
56
- Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
55
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty
56
+ Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
57
57
  )
58
- (/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg
59
- File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
58
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
59
+ File: graphics.cfg 2016/01/02 v1.10 sample graphics configuration
60
60
  )
61
- Package graphics Info: Driver file: dvipdfmx.def on input line 94.
61
+ Package graphics Info: Driver file: dvipdfmx.def on input line 96.
62
62
 
63
- (/usr/local/texlive/2015/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
64
- File: dvipdfmx.def 2015/03/26 v4.04 LaTeX color/graphics driver for dvipdfmx (T
63
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
64
+ File: dvipdfmx.def 2016/04/06 v4.08 LaTeX color/graphics driver for dvipdfmx (T
65
65
  eX Live/ChoF)
66
- ))
66
+
67
+ (/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty
68
+ Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
69
+ )
70
+ (/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
71
+ Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
72
+ )))
67
73
  \Gin@req@height=\dimen122
68
74
  \Gin@req@width=\dimen123
69
75
  )
70
- (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/color.sty
71
- Package: color 2014/10/28 v1.1a Standard LaTeX Color (DPC)
76
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/color.sty
77
+ Package: color 2016/05/09 v1.1c Standard LaTeX Color (DPC)
72
78
 
73
- (/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/color.cfg
74
- File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
79
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg
80
+ File: color.cfg 2016/01/02 v1.6 sample color configuration
75
81
  )
76
- Package color Info: Driver file: dvipdfmx.def on input line 142.
82
+ Package color Info: Driver file: dvipdfmx.def on input line 144.
77
83
 
78
- (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/dvipsnam.def
79
- File: dvipsnam.def 2014/10/14 v3.0j Driver-dependent file (DPC,SPQR)
84
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/dvipsnam.def
85
+ File: dvipsnam.def 2015/12/30 v3.0k Driver-dependent file (DPC,SPQR)
80
86
  ))
81
- (/usr/local/texlive/2015/texmf-dist/tex/latex/listings/listings.sty
87
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/listings/listings.sty
82
88
  \lst@mode=\count90
83
89
  \lst@gtempboxa=\box42
84
90
  \lst@token=\toks16
@@ -92,16 +98,16 @@ File: dvipsnam.def 2014/10/14 v3.0j Driver-dependent file (DPC,SPQR)
92
98
  \lst@lineno=\count95
93
99
  \lst@maxwidth=\dimen127
94
100
 
95
- (/usr/local/texlive/2015/texmf-dist/tex/latex/listings/lstmisc.sty
96
- File: lstmisc.sty 2014/09/06 1.5e (Carsten Heinz)
101
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstmisc.sty
102
+ File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz)
97
103
  \c@lstnumber=\count96
98
104
  \lst@skipnumbers=\count97
99
105
  \lst@framebox=\box43
100
106
  )
101
- (/usr/local/texlive/2015/texmf-dist/tex/latex/listings/listings.cfg
102
- File: listings.cfg 2014/09/06 1.5e listings configuration
107
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/listings/listings.cfg
108
+ File: listings.cfg 2015/06/04 1.6 listings configuration
103
109
  ))
104
- Package: listings 2014/09/06 1.5e (Carsten Heinz)
110
+ Package: listings 2015/06/04 1.6 (Carsten Heinz)
105
111
 
106
112
  (./hikiutils_bob.aux (./sync.aux
107
113
 
@@ -110,42 +116,34 @@ LaTeX Warning: Label `default' multiply defined.
110
116
 
111
117
  LaTeX Warning: Label `default' multiply defined.
112
118
 
113
- ) (./l on input line 37.
114
- LaTeX Font Info: ... okay on input line 37.
115
- LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 37.
116
- LaTeX Font Info: ... okay on input line 37.
117
- LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 37.
118
- LaTeX Font Info: ... okay on input line 37.
119
- LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 37.
120
- LaTeX Font Info: ... okay on input line 37.
121
- LaTeX Font Info: Font shape `JT1/mc/bx/n' in size <14.4> not available
122
- (Font) Font shape `JT1/gt/m/n' tried instead on input line 38.
123
- LaTeX Font Info: Font shape `JY1/mc/bx/n' in size <14.4> not available
124
- (Font) Font shape `JY1/gt/m/n' tried instead on input line 38.
125
- ./hikiutils_bob.tex:39: Missing $ inserted.
126
- <inserted text>
127
- $
128
- l.39 \section{\verb|hikiutils_bob_sync|}
129
-
130
- ?
131
- ./hikiutils_bob.tex:39: Emergency stop.
132
- <inserted text>
133
- $
134
- l.39 \section{\verb|hikiutils_bob_sync|}
135
-
136
- End of file on the terminal!
137
-
138
-
139
- Here is how much of TeX's memory you used:
140
- 1100 strings out of 493777
141
- 13587 string characters out of 6151334
142
- 68241 words of memory out of 5000000
143
- 4632 multiletter control sequences out of 15000+600000
144
- 9221 words of font info for 38 fonts, out of 8000000 for 9000
145
- 929 hyphenation exceptions out of 8191
146
- 25i,0n,26p,192b,207s stack positions out of 5000i,500n,10000p,200000b,80000s
147
- No pages of output.
148
- ine 45.
119
+ ) (./latex_all.aux))
120
+ \openout1 = `hikiutils_bob.aux'.
121
+
122
+ LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 39.
123
+ LaTeX Font Info: ... okay on input line 39.
124
+ LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 39.
125
+ LaTeX Font Info: ... okay on input line 39.
126
+ LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 39.
127
+ LaTeX Font Info: ... okay on input line 39.
128
+ LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 39.
129
+ LaTeX Font Info: ... okay on input line 39.
130
+ LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 39.
131
+ LaTeX Font Info: ... okay on input line 39.
132
+ LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 39.
133
+ LaTeX Font Info: ... okay on input line 39.
134
+ LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 39.
135
+ LaTeX Font Info: ... okay on input line 39.
136
+ LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 39.
137
+ LaTeX Font Info: ... okay on input line 39.
138
+ \c@lstlisting=\count98
139
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
140
+ (Font) scaled to size 16.60605pt on input line 45.
141
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
142
+ (Font) scaled to size 16.60605pt on input line 45.
143
+ LaTeX Font Info: Font shape `JT1/mc/m/n' will be
144
+ (Font) scaled to size 11.53198pt on input line 45.
145
+ LaTeX Font Info: Font shape `JY1/mc/m/n' will be
146
+ (Font) scaled to size 11.53198pt on input line 45.
149
147
  LaTeX Font Info: External font `cmex10' loaded for size
150
148
  (Font) <12> on input line 45.
151
149
  LaTeX Font Info: External font `cmex10' loaded for size
@@ -166,18 +164,18 @@ LaTeX Font Info: Font shape `JT1/gt/m/n' will be
166
164
  (Font) scaled to size 13.83836pt on input line 46.
167
165
  LaTeX Font Info: Font shape `JY1/gt/m/n' will be
168
166
  (Font) scaled to size 13.83836pt on input line 46.
169
- (./hikiutils_bob.toc
167
+ (./hikiutils_bob.toc [1
168
+
169
+ ]
170
170
  LaTeX Font Info: External font `cmex10' loaded for size
171
- (Font) <7> on input line 1.
171
+ (Font) <7> on input line 3.
172
172
  LaTeX Font Info: External font `cmex10' loaded for size
173
- (Font) <5> on input line 1.
173
+ (Font) <5> on input line 3.
174
174
  LaTeX Font Info: Font shape `JY1/mc/m/n' will be
175
- (Font) scaled to size 6.72699pt on input line 1.
175
+ (Font) scaled to size 6.72699pt on input line 3.
176
176
  LaTeX Font Info: Font shape `JY1/mc/m/n' will be
177
- (Font) scaled to size 4.805pt on input line 1.
178
- [1
179
-
180
- ])
177
+ (Font) scaled to size 4.805pt on input line 3.
178
+ )
181
179
  \tf@toc=\write3
182
180
  \openout3 = `hikiutils_bob.toc'.
183
181
 
@@ -189,73 +187,62 @@ File: ../figs/./hikiutils_bob.002.jpeg Graphic file (type eps)
189
187
 
190
188
  <../figs/./hikiutils_bob.002.jpeg>
191
189
  LaTeX Font Info: Font shape `JT1/mc/m/n' will be
192
- (Font) scaled to size 8.64899pt on input line 13.
190
+ (Font) scaled to size 8.64899pt on input line 11.
193
191
  LaTeX Font Info: Font shape `JY1/mc/m/n' will be
194
- (Font) scaled to size 8.64899pt on input line 13.
192
+ (Font) scaled to size 8.64899pt on input line 11.
195
193
  [3
196
194
 
197
195
  ]
198
196
  LaTeX Font Info: Font shape `JT1/gt/m/n' will be
199
- (Font) scaled to size 11.53198pt on input line 17.
197
+ (Font) scaled to size 11.53198pt on input line 16.
200
198
  LaTeX Font Info: Font shape `JY1/gt/m/n' will be
201
- (Font) scaled to size 11.53198pt on input line 17.
199
+ (Font) scaled to size 11.53198pt on input line 16.
202
200
  File: ../figs/./hikiutils_bob.003.jpeg Graphic file (type eps)
203
201
  <../figs/./hikiutils_bob.003.jpeg>
204
- [4]
205
202
  LaTeX Font Info: Font shape `JT1/mc/m/n' will be
206
- (Font) scaled to size 6.72699pt on input line 41.
207
- [5] [6]
208
- LaTeX Font Info: Try loading font information for OML+cmr on input line 124.
203
+ (Font) scaled to size 6.72699pt on input line 40.
204
+
205
+ [4] [5] [6]
206
+ LaTeX Font Info: Try loading font information for OML+cmr on input line 123.
209
207
 
210
- (/usr/local/texlive/2015/texmf-dist/tex/latex/base/omlcmr.fd
208
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/base/omlcmr.fd
211
209
  File: omlcmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
212
210
  )
213
211
  LaTeX Font Info: Font shape `OML/cmr/m/n' in size <10> not available
214
- (Font) Font shape `OML/cmm/m/it' tried instead on input line 124.
212
+ (Font) Font shape `OML/cmm/m/it' tried instead on input line 123.
215
213
 
216
- [7]
217
- LaTeX Font Info: Try loading font information for OMS+cmr on input line 169.
218
-
219
- (/usr/local/texlive/2015/texmf-dist/tex/latex/base/omscmr.fd
220
- File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
221
- )
222
- LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
223
- (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 169.
224
- [8]
225
- Overfull \hbox (24.60419pt too wide) in paragraph at lines 188--188
226
- []\OT1/cmtt/m/n/10 convert #{source} -resize 20% #{target}\JY1/gt/m/n/10 によ
227
- って , \OT1/cmtt/m/n/10 target=figs/TAERGET.png
228
- []
229
-
230
- [9]) [10]
214
+ [7]) [8]
231
215
  \openout2 = `latex_all.aux'.
232
216
 
233
- (./latex_all.tex [11
217
+ (./latex_all.tex [9
234
218
 
235
219
 
236
- ] [12]
237
- Overfull \hbox (123.96475pt too wide) in paragraph at lines 100--101
220
+ ]
221
+ LaTeX Font Info: Try loading font information for OMS+cmr on input line 56.
222
+
223
+ (/usr/local/texlive/2016/texmf-dist/tex/latex/base/omscmr.fd
224
+ File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
225
+ )
226
+ LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
227
+ (Font) Font shape `OMS/cmsy/m/n' tried instead on input line 56.
228
+ [10]
229
+ Overfull \hbox (123.96475pt too wide) in paragraph at lines 102--103
238
230
  []\JY1/mc/m/n/10 うまくできないときは\JY1/gt/m/n/10 ここ \OT1/cmtt/m/n/10 (http
239
231
  ://qiita.com/hideaki_polisci/items/3afd204449c6cdd995c9#51-texshop
240
232
  []
241
233
 
242
-
243
- LaTeX Warning: File `../figs/./hikiutils_bob.pdf' not found on input line 103.
244
-
245
- File: ../figs/./hikiutils_bob.pdf Graphic file (type pdf)
246
- <../figs/./hikiutils_bob.pdf> [13] [14]) [15] (./hikiutils_bob.aux (./sync.aux)
247
- (./latex_all.aux))
234
+ [11] [12]) [13] (./hikiutils_bob.aux (./sync.aux) (./latex_all.aux))
248
235
 
249
236
  LaTeX Warning: There were multiply-defined labels.
250
237
 
251
238
  )
252
239
  Here is how much of TeX's memory you used:
253
- 2203 strings out of 493777
254
- 30592 string characters out of 6151334
255
- 147624 words of memory out of 5000000
256
- 5694 multiletter control sequences out of 15000+600000
257
- 15232 words of font info for 69 fonts, out of 8000000 for 9000
240
+ 2391 strings out of 493693
241
+ 33442 string characters out of 6149787
242
+ 150565 words of memory out of 5000000
243
+ 5944 multiletter control sequences out of 15000+600000
244
+ 15224 words of font info for 69 fonts, out of 8000000 for 9000
258
245
  934 hyphenation exceptions out of 8191
259
- 29i,9n,35p,731b,1565s stack positions out of 5000i,500n,10000p,200000b,80000s
246
+ 29i,9n,35p,735b,1563s stack positions out of 5000i,500n,10000p,200000b,80000s
260
247
 
261
- Output written on hikiutils_bob.dvi (15 pages, 39816 bytes).
248
+ Output written on hikiutils_bob.dvi (13 pages, 35768 bytes).
@@ -45,10 +45,6 @@
45
45
  \maketitle
46
46
  \tableofcontents
47
47
 
48
- \title{hikiutilsを用いた卒業論文作成}
49
- \author{にしたに}
50
- \date{関西学院}
51
- \maketitle
52
48
  \include{sync}
53
49
  \include{latex_all}
54
50
  \end{document}
@@ -1,22 +1,21 @@
1
- \contentsline {subsection}{\numberline {0.1}hikiutilsのinstall}{4}
2
- \contentsline {subsection}{\numberline {0.2}個別ディレクトリーの構成}{4}
3
- \contentsline {subsection}{\numberline {0.3}一般的な執筆手順}{5}
4
- \contentsline {subsection}{\numberline {0.4}rakeが用意しているタスク}{6}
5
- \contentsline {subsubsection}{\numberline {0.4.1}rake sync}{6}
6
- \contentsline {subsubsection}{\numberline {0.4.2}rake convert}{7}
7
- \contentsline {subsubsection}{\numberline {0.4.3}rake force\_sync}{7}
8
- \contentsline {subsubsection}{\numberline {0.4.4}rake chenv}{7}
9
- \contentsline {subsubsection}{\numberline {0.4.5}rake increment}{7}
10
- \contentsline {subsubsection}{\numberline {0.4.6}rake number}{7}
11
- \contentsline {subsection}{\numberline {0.5}githubによる同期}{8}
12
- \contentsline {subsection}{\numberline {0.6}hiki\_helpで表示されるヘルプ内容}{8}
13
- \contentsline {subsubsection}{\numberline {0.6.1}hikiで卒論を書くときの初期化と掟}{9}
14
- \contentsline {subsubsection}{\numberline {0.6.2}図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く}{9}
15
- \contentsline {subsection}{\numberline {0.7}実際の最終形態(卒論=pdf)への変換}{11}
16
- \contentsline {subsubsection}{\numberline {0.7.1}install}{11}
17
- \contentsline {subsubsection}{\numberline {0.7.2}rake latex手順(個別ファイルの変換)}{12}
18
- \contentsline {paragraph}{注意}{12}
19
- \contentsline {subsubsection}{\numberline {0.7.3}rake latex\_all手順(ディレクトリーないの一括変換)}{13}
20
- \contentsline {paragraph}{下準備}{13}
21
- \contentsline {paragraph}{head.tex}{13}
22
- \contentsline {paragraph}{pre.tex}{14}
1
+ \contentsline {section}{\numberline {1}イントロダクション}{3}
2
+ \contentsline {section}{\numberline {2}hikiとの同期}{4}
3
+ \contentsline {subsection}{\numberline {2.1}hikiutilsのinstall}{4}
4
+ \contentsline {subsection}{\numberline {2.2}個別ディレクトリーの構成}{4}
5
+ \contentsline {subsection}{\numberline {2.3}一般的な執筆手順}{5}
6
+ \contentsline {subsection}{\numberline {2.4}rakeが用意しているタスク}{6}
7
+ \contentsline {subsubsection}{\numberline {2.4.1}rake sync}{6}
8
+ \contentsline {subsubsection}{\numberline {2.4.2}rake convert}{7}
9
+ \contentsline {subsubsection}{\numberline {2.4.3}rake force\_sync}{7}
10
+ \contentsline {subsubsection}{\numberline {2.4.4}rake chenv}{7}
11
+ \contentsline {subsubsection}{\numberline {2.4.5}rake increment}{7}
12
+ \contentsline {subsubsection}{\numberline {2.4.6}rake number}{7}
13
+ \contentsline {subsection}{\numberline {2.5}githubによる同期}{8}
14
+ \contentsline {section}{\numberline {3}実際の最終形態(卒論=pdf)への変換}{9}
15
+ \contentsline {subsection}{\numberline {3.1}install}{9}
16
+ \contentsline {subsection}{\numberline {3.2}rake latex手順(個別ファイルの変換)}{10}
17
+ \contentsline {subsubsection}{\numberline {3.2.1}注意}{10}
18
+ \contentsline {subsection}{\numberline {3.3}rake latex\_all手順(ディレクトリー内の一括変換)}{11}
19
+ \contentsline {subsubsection}{\numberline {3.3.1}下準備}{11}
20
+ \contentsline {paragraph}{head.tex}{12}
21
+ \contentsline {paragraph}{pre.tex}{12}
@@ -1,16 +1,14 @@
1
1
  \relax
2
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.7}実際の最終形態(卒論=pdf)への変換}{11}}
3
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.7.1}install}{11}}
4
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.7.2}rake latex手順(個別ファイルの変換)}{12}}
5
- \@writefile{toc}{\contentsline {paragraph}{注意}{12}}
6
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.7.3}rake latex\_all手順(ディレクトリーないの一括変換)}{13}}
7
- \@writefile{toc}{\contentsline {paragraph}{下準備}{13}}
8
- \@writefile{toc}{\contentsline {paragraph}{head.tex}{13}}
9
- \@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces }}{14}}
10
- \newlabel{default}{{3}{14}}
11
- \@writefile{toc}{\contentsline {paragraph}{pre.tex}{14}}
2
+ \@writefile{toc}{\contentsline {section}{\numberline {3}実際の最終形態(卒論=pdf)への変換}{9}}
3
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.1}install}{9}}
4
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.2}rake latex手順(個別ファイルの変換)}{10}}
5
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.1}注意}{10}}
6
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.3}rake latex\_all手順(ディレクトリー内の一括変換)}{11}}
7
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.1}下準備}{11}}
8
+ \@writefile{toc}{\contentsline {paragraph}{head.tex}{12}}
9
+ \@writefile{toc}{\contentsline {paragraph}{pre.tex}{12}}
12
10
  \@setckpt{latex_all}{
13
- \setcounter{page}{16}
11
+ \setcounter{page}{14}
14
12
  \setcounter{equation}{0}
15
13
  \setcounter{enumi}{4}
16
14
  \setcounter{enumii}{1}
@@ -19,12 +17,12 @@
19
17
  \setcounter{footnote}{0}
20
18
  \setcounter{mpfootnote}{0}
21
19
  \setcounter{part}{0}
22
- \setcounter{section}{0}
23
- \setcounter{subsection}{7}
24
- \setcounter{subsubsection}{3}
20
+ \setcounter{section}{3}
21
+ \setcounter{subsection}{3}
22
+ \setcounter{subsubsection}{1}
25
23
  \setcounter{paragraph}{0}
26
24
  \setcounter{subparagraph}{0}
27
- \setcounter{figure}{3}
25
+ \setcounter{figure}{2}
28
26
  \setcounter{table}{1}
29
27
  \setcounter{lstnumber}{38}
30
28
  \setcounter{lstlisting}{0}
@@ -1,4 +1,5 @@
1
- \subsection{実際の最終形態(卒論=pdf)への変換}
1
+
2
+ \section{実際の最終形態(卒論=pdf)への変換}
2
3
  hiki+keynoteで卒論の内容ができたら,それを卒論の最終形態つまりpdfへ変換する必要が出てきます.
3
4
 
4
5
  ここで問題が発生します.hikiよりもlatexの方が機能が豊富なこと.
@@ -32,7 +33,7 @@ DRY(Don't Repeat Yourself)原則さえ守れば,文書管理はいいのです
32
33
 
33
34
  ここでは,hikiでできることをとことん突き詰めておきます.
34
35
 
35
- \subsubsection{install}\begin{quote}\begin{verbatim}
36
+ \subsection{install}\begin{quote}\begin{verbatim}
36
37
  hiki -i
37
38
  \end{verbatim}\end{quote}
38
39
  でinstallされています.新たに使うコマンド群は次の通りです.
@@ -42,12 +43,8 @@ rake latex # latex conversion FILE1
42
43
  rake latex_all # latex conversion whole hiki files in the current dir
43
44
  rake latex_base # latex conversion FILE1(hiki) to FILE2(latex)
44
45
  rake latex_wrap # latex conversion FILE1 with wrap format
45
- \end{lstlisting}\begin{quote}\begin{verbatim}
46
- rake latex hikiutils_bob.hiki
47
- \end{verbatim}\end{quote}
48
- と打ち込むと
49
-
50
- \subsubsection{rake latex手順(個別ファイルの変換)}\begin{quote}\begin{verbatim}
46
+ \end{lstlisting}
47
+ \subsection{rake latex手順(個別ファイルの変換)}\begin{quote}\begin{verbatim}
51
48
  rake latex sync.hiki
52
49
  \end{verbatim}\end{quote}
53
50
  とすると,
@@ -55,7 +52,9 @@ rake latex sync.hiki
55
52
  latex_dir/sync.tex
56
53
  \end{verbatim}\end{quote}
57
54
  にlatex変換後のファイルが生成します.これを,TeXShopでcommand\_t変換します.
58
-
55
+ \begin{itemize}
56
+ \item \verb|{{attach_anchor(sync.pdf,hikiutils_bob)}}|
57
+ \end{itemize}
59
58
  うまくいかないときは,terminalで
60
59
  \begin{quote}\begin{verbatim}
61
60
  platex sync.tex
@@ -63,7 +62,7 @@ dvipdfmx sync.dvi
63
62
  \end{verbatim}\end{quote}
64
63
  を試してみてください.
65
64
 
66
- \paragraph{注意}
65
+ \subsubsection{注意}
67
66
  hikiの初めの部分は,
68
67
  \begin{quote}\begin{verbatim}
69
68
  !title:hikiutils -iによる卒論作成システム
@@ -82,7 +81,14 @@ hikiの初めの部分は,
82
81
 
83
82
  必要な図は,figsから自動で取るようになっていますが,サイズは解像度が問題のときは手動で調整してください.
84
83
 
85
- \subsubsection{rake latex\_all手順(ディレクトリーないの一括変換)}\begin{quote}\begin{verbatim}
84
+ \subsection{rake latex\_all手順(ディレクトリー内の一括変換)}
85
+ pwdのdirectoryの同名のbasenameに.hikiの拡張子がついたファイルが用意されていて,
86
+ \begin{quote}\begin{verbatim}
87
+ rake latex_all
88
+ \end{verbatim}\end{quote}
89
+ をおこなうと自動で全部を一体にまとめた文書へのlatex変換が出来上がります.
90
+ たとえば,hikiutils\_bob.hikiの記述を
91
+ \begin{quote}\begin{verbatim}
86
92
  bob% cat hikiutils_bob.hiki
87
93
  !hikiutilsを用いた卒業論文作成
88
94
 
@@ -90,22 +96,16 @@ bob% cat hikiutils_bob.hiki
90
96
  ! [[hikiutils_bob_latex_all]]
91
97
 
92
98
  \end{verbatim}\end{quote}
93
- とpwdのdirectoryの同名のbasenameに.hikiの拡張子がついたファイルが用意されていて,
94
- \begin{quote}\begin{verbatim}
95
- rake latex_all
96
- \end{verbatim}\end{quote}
97
- をおこなうと自動で全部を一体にまとめた文書へのlatex変換が出来上がります.
98
- 開いているhikiutils\_bob.texをTeXShopで変換してみてください.
99
+ とすると,sync.tex, latex\_all.texがlatex\_dir内に変換されます.
100
+ さらに,開いているhikiutils\_bob.texをTeXShopで変換してみてください.
99
101
 
100
102
  うまくできないときは\verb|ここ(http://qiita.com/hideaki_polisci/items/3afd204449c6cdd995c9#51-texshopの設定)|を参照して自力で入れてみてください.だめならdonkey.
101
-
102
- \begin{figure}[htbp]\begin{center}
103
- \includegraphics[width=6cm,bb=0 0 442 500]{../figs/./hikiutils_bob.pdf}
104
- \caption{}
105
- \label{default}\end{center}\end{figure}
103
+ \begin{itemize}
104
+ \item \verb|{{attach_anchor(hikiutils_bob.pdf,hikiutils_bob)}}|
105
+ \end{itemize}
106
106
  というようになります.
107
107
 
108
- \paragraph{下準備}
108
+ \subsubsection{下準備}
109
109
  latex\_dir内に幾つかのtex雛形を入れておく必要があります.
110
110
  \begin{quote}\begin{verbatim}
111
111
  hiki -i
@@ -1,26 +1,25 @@
1
1
  \relax
2
+ \@writefile{toc}{\contentsline {section}{\numberline {1}イントロダクション}{3}}
2
3
  \@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces 卒論編集システムの概要.}}{3}}
3
4
  \newlabel{default}{{1}{3}}
4
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.1}hikiutilsのinstall}{4}}
5
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.2}個別ディレクトリーの構成}{4}}
6
- \@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces hikiutils\_bobのディレクトリー構成.}}{4}}
7
- \newlabel{default}{{2}{4}}
8
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.3}一般的な執筆手順}{5}}
9
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.4}rakeが用意しているタスク}{6}}
10
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.1}rake sync}{6}}
5
+ \@writefile{toc}{\contentsline {section}{\numberline {2}hikiとの同期}{4}}
6
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.1}hikiutilsのinstall}{4}}
7
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.2}個別ディレクトリーの構成}{4}}
8
+ \@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces hikiutils\_bobのディレクトリー構成.}}{5}}
9
+ \newlabel{default}{{2}{5}}
10
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.3}一般的な執筆手順}{5}}
11
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.4}rakeが用意しているタスク}{6}}
12
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.1}rake sync}{6}}
11
13
  \@writefile{lot}{\contentsline {table}{\numberline {1}{\ignorespaces }}{6}}
12
14
  \newlabel{default}{{1}{6}}
13
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.2}rake convert}{7}}
14
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.3}rake force\_sync}{7}}
15
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.4}rake chenv}{7}}
16
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.5}rake increment}{7}}
17
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.4.6}rake number}{7}}
18
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.5}githubによる同期}{8}}
19
- \@writefile{toc}{\contentsline {subsection}{\numberline {0.6}hiki\_helpで表示されるヘルプ内容}{8}}
20
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.6.1}hikiで卒論を書くときの初期化と掟}{9}}
21
- \@writefile{toc}{\contentsline {subsubsection}{\numberline {0.6.2}図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く}{9}}
15
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.2}rake convert}{7}}
16
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.3}rake force\_sync}{7}}
17
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.4}rake chenv}{7}}
18
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.5}rake increment}{7}}
19
+ \@writefile{toc}{\contentsline {subsubsection}{\numberline {2.4.6}rake number}{7}}
20
+ \@writefile{toc}{\contentsline {subsection}{\numberline {2.5}githubによる同期}{8}}
22
21
  \@setckpt{sync}{
23
- \setcounter{page}{11}
22
+ \setcounter{page}{9}
24
23
  \setcounter{equation}{0}
25
24
  \setcounter{enumi}{6}
26
25
  \setcounter{enumii}{1}
@@ -29,9 +28,9 @@
29
28
  \setcounter{footnote}{0}
30
29
  \setcounter{mpfootnote}{0}
31
30
  \setcounter{part}{0}
32
- \setcounter{section}{0}
33
- \setcounter{subsection}{6}
34
- \setcounter{subsubsection}{2}
31
+ \setcounter{section}{2}
32
+ \setcounter{subsection}{5}
33
+ \setcounter{subsubsection}{0}
35
34
  \setcounter{paragraph}{0}
36
35
  \setcounter{subparagraph}{0}
37
36
  \setcounter{figure}{2}
@@ -1,7 +1,5 @@
1
- \title{hikiutils -iによる卒論作成システム}
2
- \author{Shigeto R. Nishitani}
3
- \date{ Kwansei Gakuen Univ., 2017/1}
4
- \maketitle
1
+
2
+ \section{イントロダクション}
5
3
  卒業論文は,大学で課される一般的なレポートに比べて多くの情報内容が要求される.また,研究という側面から体裁や版権など多くの出版における掟を遵守しながら,高い品質を保つ必要がある.そのため,指導教官との編集作業が重要となる.編集作業の効率を高めるためには,共同作業を促進するプラットフォームが必要である.
6
4
 
7
5
  体裁などを考えるとLatexの使用が標準であるが,執筆段階での煩わしさを低減するため,Mark Up記法による文章作成が一般的である(「ドキュメント作成システム構築ガイド,GitHub, RedPen, Asciidoctor, CIによるモダンライティング」, 伊藤敬彦,吉村孝広,技術評論社).西谷研ではMark Up記法の一種であるhiki記法を用いて執筆している.hiki記法からhtmlへ変換するソフトhikidocによる容易な変換が可能なため,日記web appliのhiki diaryでも利用されている.hiki記法をベースにして,wiki wiki webと同等の機能を提供するhikiシステムがgithubに公開されており,個人の手持ちのパソコンにインストールしてwikiを利用することができる.西谷研ではさらにhiki記法を拡張して,コードのカラー表示,数式のlatex記述が可能となるシステムを利用している.
@@ -14,6 +12,7 @@
14
12
  \label{default}\end{center}\end{figure}
15
13
  例えば,卒業生をyamaneとしよう.yamaneの個人のMacの自分のdirectory(hikiutils\_yamane)に幾つかのファイルを作成して卒論を書いているとする.これを指導教官(bob)が編集する必要がある.この同期には,Githubにより提供される共同作業環境をつかう.これだけでは編集中の文書の体裁がわかりにくい.そこで,hikiシステムにより容易にwebブラウザ上に完成形を表示しつつ執筆することが求められる.このような操作環境を提供するのが,hikiutils -iである.
16
14
 
15
+ \section{hikiとの同期}
17
16
  \subsection{hikiutilsのinstall}
18
17
  hikiuitlsをgemからinstallしておく必要がある.コマンドは以下の通り.
19
18
  \begin{quote}\begin{verbatim}
@@ -162,39 +161,3 @@ cp tmp.hiki hikiutils_bob.hiki
162
161
  \end{enumerate}
163
162
  これがうまくいかん時は聞いてください.
164
163
 
165
- \subsection{hiki\_helpで表示されるヘルプ内容}
166
- hiki\_help -i -fにより,使い方のメモが表示される.
167
-
168
- \subsubsection{hikiで卒論を書くときの初期化と掟}\begin{itemize}
169
- \item 開発メモ:figs,dataも作成
170
- \item 目的:西谷が後で迷わないように決まったファイル構造を堅持すべし
171
- \item 文書:hikiで書く.のちには,latexに変換するプログラムを提供します
172
- \item 図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
173
- \item データ:dataディレクトリにまとめる.ファイル名をkeynoteの対応する図表中に記す
174
- \item hiki --initializeで初期ファイル(Rakefile, ./.hikirc, hiki\_help.yml)がcopyされる
175
- \item hiki\_help.ymlを適宜~/.my\_helpにcopyしてhiki\_helpとして利用,(my\_help参照)
176
- \item Errno::EACCESやpermission errorがでたときはrake chenvを試してみる(報告して)
177
- \item rake syncによってhikiディレクトリーと同期が取られる
178
- \item hiki -u TARGETによってブラウザー表示される
179
- \item テキストの拡張子は'.hiki'
180
- \item hikiでのurlはテキスト前とディレクトリーから自動生成される
181
- \item 例えば,hiki2latex\_saki/introduciton.hikiとするとhiki2latex\_saki\_introducitonと変換される
182
- \end{itemize}
183
- \subsubsection{図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く}\begin{itemize}
184
- \item keynoteに書いたスライドはイメージに書き出して,rake convert 80 TARGET\_DIRでfigsに変換
185
- \item rake syncでfigsにあるfilesはhiki/target\_dirにcpされる
186
- \end{itemize}\begin{quote}\begin{verbatim}
187
- convert #{source} -resize 20% #{target}によって,target=figs/TAERGET.pngに20%に縮小して保存される
188
- \end{verbatim}\end{quote}\begin{itemize}
189
- \item convert -density 300 view.svg view.pngで300dpiで変換
190
- \item attach\_anchorでは
191
- \end{itemize}
192
- '\verb|{{attach_anchor(test.png, hiki2latex_saki)}}|'
193
- と,directory指定しなければならない.
194
- \begin{itemize}
195
- \item keynoteであとで図を挿入して番号が変わった時の原稿の一括変換
196
- \item rake increment 2 boundary\_bob.hiki boundary\_bob > tmp.hiki
197
- \item rake convert 60 boundary\_bob
198
- \item rake sync
199
- \item hiki -u boundary\_bob\_tmp
200
- \end{itemize}
@@ -1,6 +1,5 @@
1
- !title:hikiutils -iによる卒論作成システム
2
- !author:Shigeto R. Nishitani
3
- !date: Kwansei Gakuen Univ., 2017/1
1
+ {{toc}}
2
+ !イントロダクション
4
3
  卒業論文は,大学で課される一般的なレポートに比べて多くの情報内容が要求される.また,研究という側面から体裁や版権など多くの出版における掟を遵守しながら,高い品質を保つ必要がある.そのため,指導教官との編集作業が重要となる.編集作業の効率を高めるためには,共同作業を促進するプラットフォームが必要である.
5
4
 
6
5
  体裁などを考えるとLatexの使用が標準であるが,執筆段階での煩わしさを低減するため,Mark Up記法による文章作成が一般的である(「ドキュメント作成システム構築ガイド,GitHub, RedPen, Asciidoctor, CIによるモダンライティング」, 伊藤敬彦,吉村孝広,技術評論社).西谷研ではMark Up記法の一種であるhiki記法を用いて執筆している.hiki記法からhtmlへ変換するソフトhikidocによる容易な変換が可能なため,日記web appliのhiki diaryでも利用されている.hiki記法をベースにして,wiki wiki webと同等の機能を提供するhikiシステムがgithubに公開されており,個人の手持ちのパソコンにインストールしてwikiを利用することができる.西谷研ではさらにhiki記法を拡張して,コードのカラー表示,数式のlatex記述が可能となるシステムを利用している.
@@ -10,7 +9,8 @@
10
9
  {{attach_view(hikiutils_bob.002.jpeg,hikiutils_bob)}}
11
10
 
12
11
  例えば,卒業生をyamaneとしよう.yamaneの個人のMacの自分のdirectory(hikiutils_yamane)に幾つかのファイルを作成して卒論を書いているとする.これを指導教官(bob)が編集する必要がある.この同期には,Githubにより提供される共同作業環境をつかう.これだけでは編集中の文書の体裁がわかりにくい.そこで,hikiシステムにより容易にwebブラウザ上に完成形を表示しつつ執筆することが求められる.このような操作環境を提供するのが,hikiutils -iである.
13
- ! hikiutilsのinstall
12
+ !hikiとの同期
13
+ !! hikiutilsのinstall
14
14
  hikiuitlsをgemからinstallしておく必要がある.コマンドは以下の通り.
15
15
 
16
16
  gem install hikiutils
@@ -18,7 +18,7 @@ hikiuitlsをgemからinstallしておく必要がある.コマンドは以下
18
18
  hiki -v
19
19
  で0.2.3.2以上であることを確認.
20
20
 
21
- ! 個別ディレクトリーの構成
21
+ !! 個別ディレクトリーの構成
22
22
  図にhikiutils_bobのディレクトリー構成を示す.
23
23
  !!!caption:hikiutils_bobのディレクトリー構成.
24
24
  {{attach_view(hikiutils_bob.003.jpeg,hikiutils_bob)}}
@@ -44,7 +44,7 @@ drwxr-xr-x 26 bob 501 884 1 20 11:00 ../
44
44
 
45
45
  keynoteで図を作成して,hikiutils_bob.hikiに文章を記述していく.
46
46
 
47
- !一般的な執筆手順
47
+ !!一般的な執筆手順
48
48
  #書類の作成
49
49
  ##open -a mi hikiutils_bob.hiki
50
50
  #keynoteを開ける
@@ -57,7 +57,7 @@ keynoteで図を作成して,hikiutils_bob.hikiに文章を記述していく
57
57
  # hikiシステムで表示
58
58
  ## hiki -u hikiutils_bob
59
59
 
60
- !rakeが用意しているタスク
60
+ !!rakeが用意しているタスク
61
61
  rakeの用意しているコマンドは次のとおり.
62
62
 
63
63
  <<< bash
@@ -72,7 +72,7 @@ rake sync # normal sync hikis and figs to hiki directory
72
72
  rake sync0 # sync0 hikis and figs to hiki directory
73
73
  >>>
74
74
 
75
- !!rake sync
75
+ !!!rake sync
76
76
  hikiutils_bobにある必要な書類をhikiシステムにコピーする.その際,名前の書き換えを行う.
77
77
  || hikiutils_bobでの名前 || hikiシステムでの名前
78
78
  || hikiutils_bob.hiki || hikiutils_bob
@@ -82,19 +82,19 @@ figsディレクトリー内のファイルはhiki/cache/attache/hikiutils_bob
82
82
  {{attach_view(hogehoge.png, hikiutils_bob)}}
83
83
  という記述が必要となる.
84
84
 
85
- !!rake convert
85
+ !!!rake convert
86
86
  keynoteが吐き出したイメージを変換するためのコマンド.ImageMagickがインストールされている必要がある.ない場合は,自分でbrewからinstallするか,[[https://www.imagemagick.org/script/binary-releases.php]]からダウンロード.うまくいかない場合はdonkeyに聞いてみてください.
87
87
 
88
88
  rake convert 80 hikiutils_bob
89
89
  によって,hikiutils_bobにkeynoteから吐いたpngファイルを80%に縮小してfigsにためる.
90
90
 
91
- !!rake force_sync
91
+ !!!rake force_sync
92
92
  hikiシステム側で直接変更を加えると,hikiutilsがsyncした時と差ができる.これを検知して,ユーザに注意を喚起する仕組みがある(rake check_previous).これはsyncした時に自動的に呼び出される.違いの出たfilesを修正した後に強制的に同期をとるためのコマンドとして,force_syncが用意されている.
93
93
 
94
- !!rake chenv
94
+ !!!rake chenv
95
95
  hikiシステム上でerrorが出た場合に試してほしい.errorの状況は個人の設定によってちがうため,対処法の実装は網羅されていない.うまくいかない場合は西谷にIssuesとして投げるように.
96
96
 
97
- !!rake increment
97
+ !!!rake increment
98
98
  keynoteでページを追加するとhikiでの参照(attach_view)にずれが生じる.いまのところこれを解消する方法はなく手で修正を加える必要がある.ずれが単純な場合には,
99
99
  <<< bash
100
100
  cp hikiutils_bob.hiki tmp.hiki
@@ -102,7 +102,7 @@ rake increment 2 tmp.hiki > tmp2.hiki
102
102
  >>>
103
103
  としてattach_viewのページ番号を単純に増加させることができる.
104
104
 
105
- !!rake number
105
+ !!!rake number
106
106
  前節同じくfigs内の通し番号が変わった時にattach_viewの通し番号を調整するコマンド.
107
107
  <<< bash
108
108
  rake number 3 hikiutils_bob.hiki > tmp.hiki
@@ -121,7 +121,7 @@ cp tmp.hiki hikiutils_bob.hiki
121
121
  >>>
122
122
  などと番号を3から順に振り替えてくれる.
123
123
 
124
- !githubによる同期
124
+ !!githubによる同期
125
125
  # git initが済んでいると仮定
126
126
  # upstream, originの確認
127
127
  ## bob% git remote -v
@@ -134,37 +134,3 @@ cp tmp.hiki hikiutils_bob.hiki
134
134
  # git pull作業
135
135
  ## git pull upstream origin
136
136
  これがうまくいかん時は聞いてください.
137
-
138
- !hiki_helpで表示されるヘルプ内容
139
- hiki_help -i -fにより,使い方のメモが表示される.
140
-
141
- !!hikiで卒論を書くときの初期化と掟
142
- *開発メモ:figs,dataも作成
143
- *目的:西谷が後で迷わないように決まったファイル構造を堅持すべし
144
- *文書:hikiで書く.のちには,latexに変換するプログラムを提供します
145
- *図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
146
- *データ:dataディレクトリにまとめる.ファイル名をkeynoteの対応する図表中に記す
147
- *hiki --initializeで初期ファイル(Rakefile, ./.hikirc, hiki_help.yml)がcopyされる
148
- *hiki_help.ymlを適宜~/.my_helpにcopyしてhiki_helpとして利用,(my_help参照)
149
- *Errno::EACCESやpermission errorがでたときはrake chenvを試してみる(報告して)
150
- *rake syncによってhikiディレクトリーと同期が取られる
151
- *hiki -u TARGETによってブラウザー表示される
152
- *テキストの拡張子は'.hiki'
153
- *hikiでのurlはテキスト前とディレクトリーから自動生成される
154
- *例えば,hiki2latex_saki/introduciton.hikiとするとhiki2latex_saki_introducitonと変換される
155
-
156
- !!図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
157
- *keynoteに書いたスライドはイメージに書き出して,rake convert 80 TARGET_DIRでfigsに変換
158
- *rake syncでfigsにあるfilesはhiki/target_dirにcpされる
159
-
160
- convert #{source} -resize 20% #{target}によって,target=figs/TAERGET.pngに20%に縮小して保存される
161
-
162
- *convert -density 300 view.svg view.pngで300dpiで変換
163
- *attach_anchorでは
164
- '{{attach_anchor(test.png, hiki2latex_saki)}}'
165
- と,directory指定しなければならない.
166
- *keynoteであとで図を挿入して番号が変わった時の原稿の一括変換
167
- *rake increment 2 boundary_bob.hiki boundary_bob > tmp.hiki
168
- *rake convert 60 boundary_bob
169
- *rake sync
170
- *hiki -u boundary_bob_tmp
@@ -1,3 +1,3 @@
1
1
  module HikiUtils
2
- VERSION = "0.2.3.3"
2
+ VERSION = "0.2.3.4"
3
3
  end
@@ -38,7 +38,7 @@ task :latex_all do
38
38
  option="--listings --head latex_dir/head.tex -p "
39
39
  main_file=f_name
40
40
  else
41
- option="-l 2 --listings -b "
41
+ option="-l 1 --listings -b "
42
42
  end
43
43
  convert_to_latex(file, option)
44
44
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hikiutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.3
4
+ version: 0.2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani
@@ -287,6 +287,8 @@ files:
287
287
  - hikiutils_bob/figs/hikiutils_bob.001.jpeg
288
288
  - hikiutils_bob/figs/hikiutils_bob.002.jpeg
289
289
  - hikiutils_bob/figs/hikiutils_bob.003.jpeg
290
+ - hikiutils_bob/figs/hikiutils_bob.pdf
291
+ - hikiutils_bob/figs/sync.pdf
290
292
  - hikiutils_bob/hiki_help.yml
291
293
  - hikiutils_bob/hikiutils_bob.hiki
292
294
  - hikiutils_bob/hikiutils_bob.key
@@ -303,8 +305,9 @@ files:
303
305
  - hikiutils_bob/latex_dir/hikiutils_bob.003.bb
304
306
  - hikiutils_bob/latex_dir/hikiutils_bob.003.jpeg
305
307
  - hikiutils_bob/latex_dir/hikiutils_bob.aux
306
- - hikiutils_bob/latex_dir/hikiutils_bob.dvi
307
308
  - hikiutils_bob/latex_dir/hikiutils_bob.log
309
+ - hikiutils_bob/latex_dir/hikiutils_bob.pdf
310
+ - hikiutils_bob/latex_dir/hikiutils_bob.synctex.gz
308
311
  - hikiutils_bob/latex_dir/hikiutils_bob.tex
309
312
  - hikiutils_bob/latex_dir/hikiutils_bob.toc
310
313
  - hikiutils_bob/latex_dir/latex_all.aux