hikiutils 0.2.3.11 → 0.2.3.12
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 +1 -0
- data/hikiutils_bob/Rakefile +61 -8
- data/hikiutils_bob/code.hiki +52 -0
- data/hikiutils_bob/figs/hikiutils_bob.004.jpeg +0 -0
- data/hikiutils_bob/figs/hikiutils_bob.006.jpeg +0 -0
- data/hikiutils_bob/figs/hikiutils_bob.pdf +0 -0
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.004.jpeg +0 -0
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.006.jpeg +0 -0
- data/hikiutils_bob/hikiutils_bob.hiki +1 -1
- data/hikiutils_bob/hikiutils_bob.key +0 -0
- data/hikiutils_bob/latex_all.hiki +2 -2
- data/hikiutils_bob/latex_dir/code.aux +33 -0
- data/hikiutils_bob/latex_dir/code.tex +57 -0
- data/hikiutils_bob/latex_dir/hikiutils_bob.aux +1 -1
- data/hikiutils_bob/latex_dir/hikiutils_bob.log +70 -69
- data/hikiutils_bob/latex_dir/hikiutils_bob.pdf +0 -0
- data/hikiutils_bob/latex_dir/hikiutils_bob.tex +9 -9
- data/hikiutils_bob/latex_dir/hikiutils_bob.toc +10 -7
- data/hikiutils_bob/latex_dir/jlisting.tex +216 -0
- data/hikiutils_bob/latex_dir/latex2hiki.aux +11 -7
- data/hikiutils_bob/latex_dir/latex2hiki.tex +40 -20
- data/hikiutils_bob/latex_dir/latex_all.aux +1 -1
- data/hikiutils_bob/latex_dir/latex_all.tex +5 -5
- data/hikiutils_bob/latex_dir/pre.tex +1 -1
- data/hikiutils_bob/latex_dir/references.tex +4 -0
- data/hikiutils_bob/latex_dir/sync.aux +4 -3
- data/hikiutils_bob/latex_dir/sync.tex +18 -14
- data/hikiutils_bob/references.hiki +3 -0
- data/hikiutils_bob/sync.hiki +15 -10
- data/hikiutils_bob/tmp1.txt +32 -0
- data/lib/hikiutils/version.rb +1 -1
- data/lib/hikiutils.rb +1 -1
- data/lib/hikiutils.rb~ +3 -1
- data/lib/templates/Rakefile_hiki_sync +61 -8
- metadata +25 -7
- data/hikiutils_bob/.#Rakefile +0 -1
- data/hikiutils_bob/hikiutils_bob/hikiutils_bob.002.bb +0 -5
- data/hikiutils_bob/latex2hiki.hiki +0 -25
- data/hikiutils_bob/latex_dir/hikiutils_bob.synctex.gz +0 -0
- data/hikiutils_bob/latex_dir/sync.log +0 -28
@@ -0,0 +1,216 @@
|
|
1
|
+
\NeedsTeXFormat{LaTeX2e}
|
2
|
+
\def\filedate{2006/02/20}
|
3
|
+
\def\fileversion{0.2}
|
4
|
+
\ProvidesPackage{jlisting}[\filedate\space\fileversion\space(Thor)]
|
5
|
+
%
|
6
|
+
\newcount\lst@nextchar
|
7
|
+
\let\lst@@ProcessSpace\lst@ProcessSpace
|
8
|
+
\def\lst@ProcessSpace#1{%
|
9
|
+
\lst@check@chartype{#1}%
|
10
|
+
\lst@@ProcessSpace
|
11
|
+
\lst@whitespacetrue}
|
12
|
+
\let\lst@@ProcessLetter\lst@ProcessLetter
|
13
|
+
\def\lst@ProcessLetter#1#2{%
|
14
|
+
\lst@check@chartype{#2}%
|
15
|
+
{\lst@@ProcessLetter{#1}}%
|
16
|
+
\relax}
|
17
|
+
\let\lst@@ProcessDigit\lst@ProcessDigit
|
18
|
+
\def\lst@ProcessDigit#1#2{%
|
19
|
+
\lst@check@chartype{#2}%
|
20
|
+
{\lst@@ProcessDigit{#1}}%
|
21
|
+
\relax}
|
22
|
+
\let\lst@@ProcessOther\lst@ProcessOther
|
23
|
+
\def\lst@ProcessOther#1#2{%
|
24
|
+
\lst@check@chartype{#2}%
|
25
|
+
{\lst@@ProcessOther{#1}}%
|
26
|
+
\relax}
|
27
|
+
\let\lst@@ProcessTabulator\lst@ProcessTabulator
|
28
|
+
\def\lst@ProcessTabulator#1{%
|
29
|
+
\lst@check@chartype{#1}%
|
30
|
+
\lst@@ProcessTabulator
|
31
|
+
\relax}
|
32
|
+
\def\lst@check@chartype#1#2#3{%
|
33
|
+
\edef\@tempa{\lst@nextchar=`\string#1\relax}%
|
34
|
+
\afterassignment\remove@to@nnil
|
35
|
+
\@tempa\@nnil
|
36
|
+
#2%
|
37
|
+
\ifnum\lst@nextchar<\@cclvi
|
38
|
+
#3%
|
39
|
+
\else
|
40
|
+
\lst@ifletter \else \lst@OutputOther \fi
|
41
|
+
\lst@whitespacefalse
|
42
|
+
\expandafter\lst@AppendJchar
|
43
|
+
\fi
|
44
|
+
#1}
|
45
|
+
\def\lst@AppendJchar#1#2{%
|
46
|
+
\lst@check@chartype{#2}%
|
47
|
+
{\advance\lst@length\@ne\lst@Append{#1}}%
|
48
|
+
\relax}
|
49
|
+
\def\lst@check@chartype@BOL#1{%
|
50
|
+
\edef\@tempa{\lst@nextchar=`\string#1\relax}%
|
51
|
+
\afterassignment\remove@to@nnil
|
52
|
+
\@tempa\@nnil
|
53
|
+
\ifnum\lst@nextchar<\@cclvi\else
|
54
|
+
\lst@whitespacefalse
|
55
|
+
\expandafter\lst@AppendJchar
|
56
|
+
\fi
|
57
|
+
#1}
|
58
|
+
\def\lst@InputListing#1{%
|
59
|
+
\begingroup
|
60
|
+
\lsthk@PreSet \gdef\lst@intname{#1}%
|
61
|
+
\expandafter\lstset\expandafter{\lst@set}%
|
62
|
+
\lsthk@DisplayStyle
|
63
|
+
\catcode\active=\active
|
64
|
+
\lst@Init\relax \let\lst@gobble\z@
|
65
|
+
\lst@SkipToFirst
|
66
|
+
\lst@ifprint \def\lst@next{\lst@get@filecontents{#1}}%
|
67
|
+
\else \let\lst@next\@empty
|
68
|
+
\fi
|
69
|
+
\lst@next
|
70
|
+
\lst@DeInit
|
71
|
+
\endgroup}
|
72
|
+
\newread\lst@inputfile
|
73
|
+
\def\lst@get@filecontents#1{%
|
74
|
+
\let\lst@filecontents\@empty
|
75
|
+
\openin\lst@inputfile=#1\relax
|
76
|
+
\let\@lst@get@filecontents@prevline\relax
|
77
|
+
\lst@get@filecontents@loop
|
78
|
+
\closein\lst@inputfile
|
79
|
+
\lst@filecontents\empty}
|
80
|
+
\def\lst@get@filecontents@loop{%
|
81
|
+
\read\lst@inputfile to\@lst@get@filecontents@currline
|
82
|
+
\ifx\@lst@get@filecontents@prevline\relax\else
|
83
|
+
\expandafter\expandafter\expandafter\def
|
84
|
+
\expandafter\expandafter\expandafter\lst@filecontents
|
85
|
+
\expandafter\expandafter\expandafter{%
|
86
|
+
\expandafter\lst@filecontents\@lst@get@filecontents@prevline}%
|
87
|
+
\fi
|
88
|
+
\let\@lst@get@filecontents@prevline\@lst@get@filecontents@currline
|
89
|
+
\ifeof\lst@inputfile\else
|
90
|
+
\expandafter\lst@get@filecontents@loop
|
91
|
+
\fi}
|
92
|
+
%%% [$B$3$N=hM}$b!$AjEv6/0z$G$9!%(B]
|
93
|
+
\def\lst@BOLGobble{%
|
94
|
+
\ifnum\lst@gobble>\z@
|
95
|
+
\@tempcnta\lst@gobble\relax
|
96
|
+
\expandafter\lst@BOLGobble@
|
97
|
+
\else
|
98
|
+
\expandafter\lst@check@chartype@BOL
|
99
|
+
\fi}
|
100
|
+
\def\lst@BOLGobble@#1{%
|
101
|
+
\let\lst@next#1%
|
102
|
+
\ifx \lst@next\relax\else
|
103
|
+
\ifx \lst@next\lst@MProcessListing\else
|
104
|
+
\ifx \lst@next\lst@ProcessFormFeed\else
|
105
|
+
\ifx \lst@next\lstenv@backslash
|
106
|
+
\let\lst@next\lstenv@BOLGobble@@
|
107
|
+
\else
|
108
|
+
\let\lst@next\lst@BOLGobble@@
|
109
|
+
\ifx #1\lst@ProcessTabulator
|
110
|
+
\advance\@tempcnta-\lst@tabsize\relax
|
111
|
+
\ifnum\@tempcnta<\z@
|
112
|
+
\lst@length-\@tempcnta \lst@PreGotoTabStop
|
113
|
+
\fi
|
114
|
+
\else
|
115
|
+
\edef\@tempa{\lst@nextchar=`\string#1\relax}%
|
116
|
+
\@tempa
|
117
|
+
\ifnum\lst@nextchar<\@cclvi\else
|
118
|
+
\advance\@tempcnta\m@ne
|
119
|
+
\fi
|
120
|
+
\advance\@tempcnta\m@ne
|
121
|
+
\fi
|
122
|
+
\fi \fi \fi \fi
|
123
|
+
\lst@next}
|
124
|
+
\def\lst@BOLGobble@@{%
|
125
|
+
\ifnum\@tempcnta>\z@
|
126
|
+
\expandafter\lst@BOLGobble@
|
127
|
+
\else
|
128
|
+
\expandafter\lst@check@chartype@BOL
|
129
|
+
\fi
|
130
|
+
}
|
131
|
+
%
|
132
|
+
% \begin{$B=$@5;v9`(B}{1.3}
|
133
|
+
% $B$A$g$C$H$7$?=$@5(B
|
134
|
+
\gdef\lst@breakProcessOther#1{\lst@ProcessOther#1}
|
135
|
+
% $B%=!<%9%3!<%IL\<!$K$*$1$kJ8;z$HHV9f$N6u$-(B
|
136
|
+
\let \l@lstlisting = \l@figure
|
137
|
+
% $B%-%c%W%7%g%s$H%=!<%9%3!<%IL\<!$KBP$9$kF|K\8lBP1~(B
|
138
|
+
\def\lstlistingname{$B%=!<%9%3!<%I(B}
|
139
|
+
\def\lstlistlistingname{$B%=!<%9%3!<%IL\<!(B}
|
140
|
+
% \end{$B=$@5;v9`(B}
|
141
|
+
\endinput
|
142
|
+
%
|
143
|
+
%#!platex
|
144
|
+
\documentclass[papersize]{jsarticle}
|
145
|
+
% Macros
|
146
|
+
\IfFileExists{dvipdfmx.def}{%
|
147
|
+
\usepackage[dvipdfmx]{color,graphicx}%
|
148
|
+
}{%
|
149
|
+
\usepackage[dvipdfm]{color,graphicx}%
|
150
|
+
}
|
151
|
+
\usepackage{listings}[2004/09/07]
|
152
|
+
\usepackage{jlisting}[2006/02/20]
|
153
|
+
\usepackage{url}
|
154
|
+
\usepackage{verbatim}
|
155
|
+
|
156
|
+
\makeatletter
|
157
|
+
% Original Macros
|
158
|
+
\def\email#1{\gdef\@email{\texttt{#1}}}
|
159
|
+
\def\homepage#1{\gdef\@homepage{\texttt{#1}}}
|
160
|
+
\def\mac#1{\textsf{#1}}
|
161
|
+
\def\URL#1{\texttt{#1}}
|
162
|
+
\def\src#1{\texttt{#1}}
|
163
|
+
|
164
|
+
% Dvipdfmx.def
|
165
|
+
\def\dvipdfmxDefi{http://tex.dante.jp/ok/dvipdfmx/}
|
166
|
+
\def\dvipdfmxDefii{http://ftp.ktug.or.kr/KTUG/dvipdfmx/contrib/latex/}
|
167
|
+
|
168
|
+
\IfFileExists{dvipdfmx.def}{%
|
169
|
+
\let \IfDvipdfmxDef = \empty \relax}{%
|
170
|
+
\typeout{^^Jget dvipdfmx.def at \dvipdfmxDefi^^J
|
171
|
+
or \dvipdfmxDefii^^J}%
|
172
|
+
\def\IfDvipdfmxDef{Get \src{dvipdfmx.def} at \URL \dvipdfmxDefii \\
|
173
|
+
or \URL \dvipdfmxDefi.}%
|
174
|
+
}
|
175
|
+
|
176
|
+
% Author Info
|
177
|
+
\author {Th\'or Watanabe\thanks \@email \space \thanks \@homepage}
|
178
|
+
\title {\mac{jlisting.sty}\\
|
179
|
+
---Japanese Localized Patch File of \mac{listings}---}
|
180
|
+
\email {thor@tex.dante.jp}
|
181
|
+
\homepage {http://tex.dante.jp/typo/}
|
182
|
+
\date {2006/02/20}
|
183
|
+
|
184
|
+
\makeatother
|
185
|
+
|
186
|
+
\begin{document}
|
187
|
+
\maketitle
|
188
|
+
%\IfDvipdfmxDef
|
189
|
+
|
190
|
+
\section{$B$A$g$C$H$7$?@bL@(B}% Short Description
|
191
|
+
|
192
|
+
$B1|B<@2I';a$N7G<(HD$N!VHFMQE*$JIbF0BN!W$H$$$&0lO"$N=q$-9~$_$+$i(B
|
193
|
+
$BE>:\$7$^$7$?!#(B
|
194
|
+
|
195
|
+
\begin{quote}
|
196
|
+
\url{http://http://cise.edu.mie-u.ac.jp/~okumura/texfaq/qa/21172.html}\\
|
197
|
+
\url{http://http://cise.edu.mie-u.ac.jp/~okumura/texfaq/qa/21184.html}\\
|
198
|
+
\url{http://http://cise.edu.mie-u.ac.jp/~okumura/texfaq/qa/21189.html}\\
|
199
|
+
\url{http://http://cise.edu.mie-u.ac.jp/~okumura/texfaq/qa/21197.html}
|
200
|
+
\end{quote}
|
201
|
+
|
202
|
+
Copyright $B$O5H1JE/H~;a$K$"$k$N$@$H;W$$$^$9!%(B
|
203
|
+
|
204
|
+
\section{$B99?7MzNr(B}% ChageLogs
|
205
|
+
|
206
|
+
\begin{description}
|
207
|
+
\item[ver.~0.1 (2004/03/24)]
|
208
|
+
$B$H$j$"$($:8x3+!%(B
|
209
|
+
\item[ver.~0.2 (2006/02/20)]
|
210
|
+
\verb|\lst@breakProcessOther| $BL?Na$NDj5A$NDI2C!%(B
|
211
|
+
\end{description}
|
212
|
+
|
213
|
+
\section{$B%=!<%9%3!<%I(B}
|
214
|
+
\par\narrowbaselines
|
215
|
+
\verbatiminput{jlisting.sty}
|
216
|
+
\end{document}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
\relax
|
2
|
-
\@writefile{toc}{\contentsline {section}{\numberline {4}
|
3
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}
|
4
|
-
\@writefile{
|
2
|
+
\@writefile{toc}{\contentsline {section}{\numberline {4}Rakefile開発に関するメモ}{19}}
|
3
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}システムの概要}{19}}
|
4
|
+
\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces 卒論編集システムの概要}}{19}}
|
5
|
+
\newlabel{default}{{5}{19}}
|
6
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}日本語のcode listings}{19}}
|
7
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}文献参照のシステム}{20}}
|
8
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}rake mk\_toc}{20}}
|
5
9
|
\@setckpt{latex2hiki}{
|
6
|
-
\setcounter{page}{
|
10
|
+
\setcounter{page}{21}
|
7
11
|
\setcounter{equation}{0}
|
8
12
|
\setcounter{enumi}{4}
|
9
13
|
\setcounter{enumii}{1}
|
@@ -13,12 +17,12 @@
|
|
13
17
|
\setcounter{mpfootnote}{0}
|
14
18
|
\setcounter{part}{0}
|
15
19
|
\setcounter{section}{4}
|
16
|
-
\setcounter{subsection}{
|
20
|
+
\setcounter{subsection}{4}
|
17
21
|
\setcounter{subsubsection}{0}
|
18
22
|
\setcounter{paragraph}{0}
|
19
23
|
\setcounter{subparagraph}{0}
|
20
|
-
\setcounter{figure}{
|
24
|
+
\setcounter{figure}{5}
|
21
25
|
\setcounter{table}{1}
|
22
|
-
\setcounter{lstnumber}{
|
26
|
+
\setcounter{lstnumber}{10}
|
23
27
|
\setcounter{lstlisting}{0}
|
24
28
|
}
|
@@ -1,23 +1,43 @@
|
|
1
|
-
\section{
|
1
|
+
\section{Rakefile開発に関するメモ}
|
2
|
+
\subsection{システムの概要}
|
3
|
+
卒論編集システム開発時のメモです.
|
4
|
+
|
5
|
+
\begin{figure}[htbp]\begin{center}
|
6
|
+
\includegraphics[width=10cm,bb= 0 0 737 453]{../figs/./hikiutils_bob.006.jpeg}
|
7
|
+
\caption{卒論編集システムの概要}
|
8
|
+
\label{default}\end{center}\end{figure}
|
9
|
+
hikiシステムとの同期は,hikiutilsのhikiが下請けしている.
|
10
|
+
一方,latex\_dirへの出力はlatex2hikiが引き受けている.
|
11
|
+
フォーマットをいじるときには,基本的に
|
12
|
+
\begin{description}
|
13
|
+
\item[hikiへ] hikiがやるので,そのまえにtmp.txtへ写して置換
|
14
|
+
|
15
|
+
\item[texへ] latex2hikiからの出力(tmp.txt)を処理してtexへ
|
16
|
+
|
17
|
+
\end{description}
|
18
|
+
で行っている,あるいはおこなう.
|
19
|
+
|
20
|
+
\subsection{日本語のcode listings}
|
21
|
+
日本語のjlistingの挙動がようやく判明しました.listingsでは日本語表示が
|
22
|
+
ちゃんとなされません.そこで,
|
23
|
+
\begin{quote}\begin{verbatim}
|
24
|
+
\usepackage{listings,jlisting}
|
25
|
+
\end{verbatim}\end{quote}
|
26
|
+
としています.これで,日本語が含まれたcodeも綺麗に表示してくれます.
|
27
|
+
|
28
|
+
\subsection{文献参照のシステム}
|
29
|
+
latexへ文献参照を渡すために,下記のようなフォーマットでの記述を行う.
|
30
|
+
\begin{quote}\begin{verbatim}
|
31
|
+
*{{cite(listings1)}}
|
32
|
+
*{{cite(listings2)}}
|
33
|
+
|
34
|
+
!reference:
|
35
|
+
:listings1:[[基本的な使い方|http://d.hatena.ne.jp/mallowlabs/20061226/1167137637]]
|
36
|
+
:listings2:[[listingsの定義の仕方|http://www.ipc.akita-nct.ac.jp/~yamamoto/comp/latex/make_doc/source/source.html]]
|
37
|
+
\end{verbatim}\end{quote}
|
38
|
+
これはlatexへの書き換えは単純だが,そのままではhikiシステムでエラーが出る.
|
39
|
+
hikidocなどをいじるのはあまり筋が良くないので,rake syncにtrapを仕掛ける.
|
40
|
+
|
2
41
|
\subsection{rake mk\_toc}
|
3
42
|
latexが作成するtableofcontentsの実態であるtocファイルからhiki用のtoc.hikiを作成する.
|
4
43
|
|
5
|
-
\subsection{listings}\begin{lstlisting}[style=customTeX,basicstyle={\scriptsize\ttfamily}]
|
6
|
-
\lstset{
|
7
|
-
basicstyle={\ttfamily\scriptsize},
|
8
|
-
identifierstyle={\scriptsize},
|
9
|
-
commentstyle={\scriptsize\itshape\color{red}},
|
10
|
-
keywordstyle={\scriptsize\bfseries\color{cyan}},
|
11
|
-
ndkeywordstyle={\scriptsize},
|
12
|
-
stringstyle={\scriptsize\color{blue}},
|
13
|
-
frame={tb},
|
14
|
-
breaklines=true,
|
15
|
-
numbers=left,
|
16
|
-
numberstyle={\footnotesize},
|
17
|
-
stepnumber=1,
|
18
|
-
numbersep=1zw,
|
19
|
-
xrightmargin=0zw,
|
20
|
-
xleftmargin=3zw,
|
21
|
-
lineskip=-0.5ex
|
22
|
-
}
|
23
|
-
\end{lstlisting}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}補助コマンドの解説}{17}}
|
12
12
|
\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.1}rake reset\_latex\_dir(latex\_dirのゴミ掃除)}{17}}
|
13
13
|
\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.2}wrap関係}{17}}
|
14
|
-
\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}開発メモ(2017/2/8)}{
|
14
|
+
\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}開発メモ(2017/2/8)}{18}}
|
15
15
|
\@setckpt{latex_all}{
|
16
16
|
\setcounter{page}{19}
|
17
17
|
\setcounter{equation}{0}
|
@@ -66,20 +66,20 @@ dvipdfmx sync.dvi
|
|
66
66
|
|
67
67
|
\subsubsection{注意}
|
68
68
|
hikiの初めの部分は,
|
69
|
-
\begin{
|
69
|
+
\begin{lstlisting}[style=customCsh,basicstyle={\scriptsize\ttfamily}]
|
70
70
|
bob% head -3 hikiutils_bob.hiki
|
71
71
|
! title:hikiutils -iによる卒論作成システム
|
72
72
|
! autor:Shigeto R. Nishitani
|
73
73
|
! date: Kwansei Gakuen Univ., 2017/1
|
74
|
-
\end{
|
74
|
+
\end{lstlisting}
|
75
75
|
とすると,
|
76
|
-
\begin{
|
76
|
+
\begin{lstlisting}[style=customTeX,basicstyle={\scriptsize\ttfamily}]
|
77
77
|
\begin{document}
|
78
78
|
\title{hikiutils -iによる卒論作成システム}
|
79
79
|
\author{Shigeto R. Nishitani}
|
80
80
|
\date{ Kwansei Gakuen Univ., 2017/1}
|
81
81
|
\maketitle
|
82
|
-
\end{
|
82
|
+
\end{lstlisting}
|
83
83
|
と変換してくれます.次節のlatex\_allでは,basename.hikiに書かれたそれらの情報は,
|
84
84
|
head.texでtitleなどを用意するべきなので,自動で消されます.
|
85
85
|
|
@@ -140,7 +140,7 @@ latex\_allのときは使っていません.formatedの時に読むように
|
|
140
140
|
|
141
141
|
\paragraph{mainのpreamble部}
|
142
142
|
あまり変更しないほうがいいですが,いずれいじることになります.
|
143
|
-
例えば,フォントポイント数を12から10pt
|
143
|
+
例えば,フォントポイント数を12から10ptに変えるなどです.
|
144
144
|
\begin{lstlisting}[style=customTeX,basicstyle={\scriptsize\ttfamily}]
|
145
145
|
\documentclass[12pt,a4paper]{jsarticle}
|
146
146
|
\usepackage[dvipdfmx]{graphicx}
|
@@ -20,9 +20,10 @@
|
|
20
20
|
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.4}rake convert VAL DIR}{8}}
|
21
21
|
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.5}rake increment}{9}}
|
22
22
|
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.6}rake number}{9}}
|
23
|
-
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.7}rake
|
24
|
-
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.8}rake
|
25
|
-
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.9}rake
|
23
|
+
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.7}rake open [FILE] (new)}{9}}
|
24
|
+
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.8}rake touch [FILE](new)}{9}}
|
25
|
+
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.9}rake github(new)}{9}}
|
26
|
+
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.5.10}rake reset\_hiki(new)}{10}}
|
26
27
|
\@writefile{toc}{\contentsline {subsection}{\numberline {2.6}githubによる同期}{10}}
|
27
28
|
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces 卒論編集時のgithubによる同期のシーケンス図.}}{10}}
|
28
29
|
\newlabel{default}{{4}{10}}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
本資料では,卒論の編集作業を効率化する図に示すようなシステムの使い方を紹介します.
|
8
8
|
|
9
9
|
\begin{figure}[htbp]\begin{center}
|
10
|
-
\includegraphics[width=10cm,bb=
|
10
|
+
\includegraphics[width=10cm,bb=]{../figs/./hikiutils_bob.002.jpeg}
|
11
11
|
\caption{卒論編集システムの基本概念.}
|
12
12
|
\label{default}\end{center}\end{figure}
|
13
13
|
例えば,卒業生をyamaneとしましょう.yamaneの個人のMacの自分のdirectory(hikiutils\_yamane)に幾つかのファイルを作成して卒論を書いているとします.これを指導教官(bob)が編集するとします.この同期には,Githubにより提供される共同作業環境を使います.これだけでは編集中の文書の体裁がわかりにくいでしょう.そこで,hikiシステムにより容易にwebブラウザ上に完成形を表示しつつ執筆することが求められます.このような環境を提供するのが,本システムです.
|
@@ -28,7 +28,7 @@ hiki -v
|
|
28
28
|
図にhikiutils\_bobのディレクトリー構成を示す.
|
29
29
|
|
30
30
|
\begin{figure}[htbp]\begin{center}
|
31
|
-
\includegraphics[width=10cm,bb=
|
31
|
+
\includegraphics[width=10cm,bb=]{../figs/./hikiutils_bob.003.jpeg}
|
32
32
|
\caption{hikiutils\_bobのディレクトリー構成.}
|
33
33
|
\label{default}\end{center}\end{figure}
|
34
34
|
コマンド
|
@@ -56,7 +56,7 @@ keynoteで図を作成して,hikiutils\_bob.hikiに文章を記述していく
|
|
56
56
|
図に論文作成システムの概要を示している.gemのなかに作られた例えば,hikiutils\_bobなどのdirectory内にRakefileなどを次節のコマンドを使って入れる.このdirectoryでhikiutils\_bob.hikiなどのhikiフォーマットのdocumentを作っていく.rake syncによってwebを提供するhikiのtext, attach, parserなどと同期する.一方,最終の卒業論文形態であるpdfにするためにlatex\_dir内に*.texを生成する.これは次章で解説する.
|
57
57
|
|
58
58
|
\begin{figure}[htbp]\begin{center}
|
59
|
-
\includegraphics[width=10cm,bb=
|
59
|
+
\includegraphics[width=10cm,bb=]{../figs/./hikiutils_bob.004.jpeg}
|
60
60
|
\caption{システムの概要.}
|
61
61
|
\label{default}\end{center}\end{figure}
|
62
62
|
\subsection{一般的な執筆手順}
|
@@ -95,9 +95,10 @@ rake convert # convert fig size SCALE TARGET_DIR
|
|
95
95
|
rake increment # increment fig NUBERS in FILE
|
96
96
|
rake number # numbering figs from the NUBER in FILE
|
97
97
|
|
98
|
-
rake touch # hiki
|
99
|
-
rake
|
100
|
-
rake
|
98
|
+
rake touch # FILE.hikiあるいはhikiファイルすべてを最新状態に更新(new)
|
99
|
+
rake open # FILE.hikiあるいはhikiファイルをedtiorで開く(new)
|
100
|
+
rake github # Githubのdirをsafariでopen(new)
|
101
|
+
rake reset_hiki # hikiシステムにあるゴミファイルを掃除する(new)
|
101
102
|
\end{lstlisting}
|
102
103
|
\subsubsection{rake sync}
|
103
104
|
hikiutils\_bobにある必要な書類をhikiシステムにコピーする.その際,名前の書き換えを行う.
|
@@ -159,13 +160,16 @@ cp tmp.hiki hikiutils_bob.hiki
|
|
159
160
|
\end{lstlisting}
|
160
161
|
などと番号を3から順に振り替えてくれる.
|
161
162
|
|
162
|
-
\subsubsection{rake
|
163
|
-
hiki
|
163
|
+
\subsubsection{rake open [FILE] (new)}
|
164
|
+
FILE.hikiあるいはhikiファイルをedtiorで開く.
|
164
165
|
|
165
|
-
\subsubsection{rake
|
166
|
-
|
166
|
+
\subsubsection{rake touch [FILE](new)}
|
167
|
+
FILE.hikiあるいはhikiファイルすべてを最新状態に更新.
|
167
168
|
|
168
|
-
\subsubsection{rake
|
169
|
+
\subsubsection{rake github(new)}
|
170
|
+
git remote -vにあるoriginをsafariでopenします.
|
171
|
+
|
172
|
+
\subsubsection{rake reset\_hiki(new)}
|
169
173
|
hikiシステムにあるゴミファイルを掃除します.
|
170
174
|
\begin{lstlisting}[style=customCsh,basicstyle={\scriptsize\ttfamily}]
|
171
175
|
bob% rake reset_hiki
|
@@ -176,15 +180,15 @@ target_dir : /Users/bob/Sites/nishitani0/Internal/data/text
|
|
176
180
|
-rw-rw-rw- 1 bob staff 7220 2 5 12:03 hikiutils_bob_latex_all
|
177
181
|
-rw-rw-rw- 1 bob staff 10104 2 5 12:03 hikiutils_bob_sync
|
178
182
|
-rw-r--r-- 1 bob staff 944 2 5 12:03 hikiutils_bob_toc
|
179
|
-
remove hikiutils_bob_toc[
|
183
|
+
remove hikiutils_bob_toc[ynqlA]?
|
180
184
|
\end{lstlisting}
|
181
|
-
となります.yes, no, quit, listのなかから選んでください.
|
185
|
+
となります.yes, no, quit, list, Allのなかから選んでください.
|
182
186
|
|
183
187
|
\subsection{githubによる同期}
|
184
188
|
これらの作業の流れを示すシーケンス図は次の通りである.
|
185
189
|
|
186
190
|
\begin{figure}[htbp]\begin{center}
|
187
|
-
\includegraphics[width=10cm,bb=
|
191
|
+
\includegraphics[width=10cm,bb=]{../figs/./hikiutils_bob.005.jpeg}
|
188
192
|
\caption{卒論編集時のgithubによる同期のシーケンス図.}
|
189
193
|
\label{default}\end{center}\end{figure}
|
190
194
|
git init, forkが済んでいると仮定して同期の手順を以下に示す.
|
data/hikiutils_bob/sync.hiki
CHANGED
@@ -77,9 +77,10 @@ rake convert # convert fig size SCALE TARGET_DIR
|
|
77
77
|
rake increment # increment fig NUBERS in FILE
|
78
78
|
rake number # numbering figs from the NUBER in FILE
|
79
79
|
|
80
|
-
rake touch # hiki
|
81
|
-
rake
|
82
|
-
rake
|
80
|
+
rake touch # FILE.hikiあるいはhikiファイルすべてを最新状態に更新(new)
|
81
|
+
rake open # FILE.hikiあるいはhikiファイルをedtiorで開く(new)
|
82
|
+
rake github # Githubのdirをsafariでopen(new)
|
83
|
+
rake reset_hiki # hikiシステムにあるゴミファイルを掃除する(new)
|
83
84
|
>>>
|
84
85
|
|
85
86
|
!!!rake sync
|
@@ -131,14 +132,18 @@ cp tmp.hiki hikiutils_bob.hiki
|
|
131
132
|
>>>
|
132
133
|
などと番号を3から順に振り替えてくれる.
|
133
134
|
|
134
|
-
!!!rake
|
135
|
-
hiki
|
135
|
+
!!!rake open [FILE] (new)
|
136
|
+
FILE.hikiあるいはhikiファイルをedtiorで開く.
|
136
137
|
|
137
|
-
!!!rake
|
138
|
-
|
138
|
+
!!!rake touch [FILE](new)
|
139
|
+
FILE.hikiあるいはhikiファイルすべてを最新状態に更新.
|
139
140
|
|
140
|
-
!!!rake
|
141
|
+
!!!rake github(new)
|
142
|
+
git remote -vにあるoriginをsafariでopenします.
|
143
|
+
|
144
|
+
!!!rake reset_hiki(new)
|
141
145
|
hikiシステムにあるゴミファイルを掃除します.
|
146
|
+
|
142
147
|
<<< tcsh
|
143
148
|
bob% rake reset_hiki
|
144
149
|
hikiutils: provide utilities for helping hiki editing.
|
@@ -148,9 +153,9 @@ target_dir : /Users/bob/Sites/nishitani0/Internal/data/text
|
|
148
153
|
-rw-rw-rw- 1 bob staff 7220 2 5 12:03 hikiutils_bob_latex_all
|
149
154
|
-rw-rw-rw- 1 bob staff 10104 2 5 12:03 hikiutils_bob_sync
|
150
155
|
-rw-r--r-- 1 bob staff 944 2 5 12:03 hikiutils_bob_toc
|
151
|
-
remove hikiutils_bob_toc[
|
156
|
+
remove hikiutils_bob_toc[ynqlA]?
|
152
157
|
>>>
|
153
|
-
となります.yes, no, quit, listのなかから選んでください.
|
158
|
+
となります.yes, no, quit, list, Allのなかから選んでください.
|
154
159
|
|
155
160
|
!!githubによる同期
|
156
161
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
!1:イントロダクション
|
2
|
+
!2:hikiとの同期
|
3
|
+
!!2.1:hikiutilsのinstall
|
4
|
+
!!2.2:個別ディレクトリーの構成
|
5
|
+
!!2.3:システムの概要
|
6
|
+
!!2.4:一般的な執筆手順
|
7
|
+
!!2.5:rakeが用意しているタスク
|
8
|
+
!!!2.5.1:rake sync
|
9
|
+
!!!2.5.2:rake force_sync
|
10
|
+
!!!2.5.3:rake chenv
|
11
|
+
!!!2.5.4:rake convert VAL DIR
|
12
|
+
!!!2.5.5:rake increment
|
13
|
+
!!!2.5.6:rake number
|
14
|
+
!!!2.5.7:rake touch
|
15
|
+
!!!2.5.8:rake github
|
16
|
+
!!!2.5.9:rake reset_hiki
|
17
|
+
!!2.6:githubによる同期
|
18
|
+
!!2.7:hikiutil関連のヘルプ
|
19
|
+
!!!2.7.1:hikiで卒論を書くときの初期化と掟
|
20
|
+
!!!2.7.2:error対応
|
21
|
+
!!!2.7.3:図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く
|
22
|
+
!3:実際の最終形態(卒論=pdf)への変換
|
23
|
+
!!3.1:install
|
24
|
+
!!3.2:rake latex(個別ファイルの変換)
|
25
|
+
!!!3.2.1:注意
|
26
|
+
!!3.3:rake latex_all手順(ディレクトリー内の一括変換)
|
27
|
+
!!!3.3.1:下準備
|
28
|
+
!!3.4:補助コマンドの解説
|
29
|
+
!!!3.4.1:rake reset_latex_dir(latex_dirのゴミ掃除)
|
30
|
+
!!!3.4.2:wrap関係
|
31
|
+
!4:hikiへのlatexからの変換
|
32
|
+
!!4.1:rake mk_toc
|
data/lib/hikiutils/version.rb
CHANGED
data/lib/hikiutils.rb
CHANGED
@@ -99,7 +99,7 @@ EOS
|
|
99
99
|
['hiki_help.yml','hiki_help.yml'],
|
100
100
|
['head.tex','latex_dir/head.tex'],
|
101
101
|
['pre.tex','latex_dir/pre.tex'],
|
102
|
-
['jlisting.sty','latex_dir/jlisting.
|
102
|
+
['jlisting.sty','latex_dir/jlisting.sty'],
|
103
103
|
]
|
104
104
|
cp_files.each_with_index{|files,i|
|
105
105
|
p source = File.join(File.expand_path('..', __FILE__),'templates',files[0])
|
data/lib/hikiutils.rb~
CHANGED
@@ -98,7 +98,9 @@ EOS
|
|
98
98
|
cp_files=[['Rakefile_hiki_sync','Rakefile'],
|
99
99
|
['hiki_help.yml','hiki_help.yml'],
|
100
100
|
['head.tex','latex_dir/head.tex'],
|
101
|
-
['pre.tex','latex_dir/pre.tex']
|
101
|
+
['pre.tex','latex_dir/pre.tex'],
|
102
|
+
['jlisting.sty','latex_dir/jlisting.tex'],
|
103
|
+
]
|
102
104
|
cp_files.each_with_index{|files,i|
|
103
105
|
p source = File.join(File.expand_path('..', __FILE__),'templates',files[0])
|
104
106
|
p target = File.join(Dir.pwd,files[1])
|