hikiutils 0.2.3.9 → 0.2.3.11

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.
@@ -1,8 +1,7 @@
1
1
  \documentclass[12pt,a4paper]{jsarticle}
2
2
  \usepackage[dvipdfmx]{graphicx}
3
3
  \usepackage[dvipdfmx]{color}
4
- \usepackage{listings}
5
- % to use japanese correctly, install jlistings.
4
+ \usepackage{listings,jlisting}% to use japanese correctly, install jlistings.
6
5
  \lstset{
7
6
  basicstyle={\small\ttfamily},
8
7
  identifierstyle={\small},
@@ -8,17 +8,18 @@
8
8
  \contentsline {subsubsection}{\numberline {2.5.1}rake sync}{8}
9
9
  \contentsline {subsubsection}{\numberline {2.5.2}rake force\_sync}{8}
10
10
  \contentsline {subsubsection}{\numberline {2.5.3}rake chenv}{8}
11
- \contentsline {subsubsection}{\numberline {2.5.4}rake convert VAL DIR}{9}
11
+ \contentsline {subsubsection}{\numberline {2.5.4}rake convert VAL DIR}{8}
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 touch}{10}
15
- \contentsline {subsubsection}{\numberline {2.5.8}rake github}{10}
16
- \contentsline {subsubsection}{\numberline {2.5.9}rake reset\_hiki}{10}
14
+ \contentsline {subsubsection}{\numberline {2.5.7}rake touch}{9}
15
+ \contentsline {subsubsection}{\numberline {2.5.8}rake github}{9}
16
+ \contentsline {subsubsection}{\numberline {2.5.9}rake reset\_hiki}{9}
17
17
  \contentsline {subsection}{\numberline {2.6}githubによる同期}{10}
18
18
  \contentsline {subsection}{\numberline {2.7}hikiutil関連のヘルプ}{11}
19
19
  \contentsline {subsubsection}{\numberline {2.7.1}hikiで卒論を書くときの初期化と掟}{11}
20
- \contentsline {subsubsection}{\numberline {2.7.2}error対応}{12}
21
- \contentsline {subsubsection}{\numberline {2.7.3}図表:すべての図表をkeynoteにまとめる,タイトルを分かりやすく書く}{12}
20
+ \contentsline {subsubsection}{\numberline {2.7.2}図表に関する制約}{11}
21
+ \contentsline {subsubsection}{\numberline {2.7.3}同期に関する制約}{12}
22
+ \contentsline {subsubsection}{\numberline {2.7.4}テキストに関する制約}{12}
22
23
  \contentsline {section}{\numberline {3}実際の最終形態(卒論=pdf)への変換}{13}
23
24
  \contentsline {subsection}{\numberline {3.1}install}{13}
24
25
  \contentsline {subsection}{\numberline {3.2}rake latex(個別ファイルの変換)}{14}
@@ -27,8 +28,11 @@
27
28
  \contentsline {subsubsection}{\numberline {3.3.1}下準備}{15}
28
29
  \contentsline {paragraph}{head.tex}{16}
29
30
  \contentsline {paragraph}{pre.tex}{16}
31
+ \contentsline {paragraph}{mainのpreamble部}{16}
30
32
  \contentsline {subsection}{\numberline {3.4}補助コマンドの解説}{17}
31
33
  \contentsline {subsubsection}{\numberline {3.4.1}rake reset\_latex\_dir(latex\_dirのゴミ掃除)}{17}
32
34
  \contentsline {subsubsection}{\numberline {3.4.2}wrap関係}{17}
33
- \contentsline {section}{\numberline {4}hikiへのlatexからの変換}{19}
35
+ \contentsline {subsection}{\numberline {3.5}開発メモ(2017/2/8)}{17}
36
+ \contentsline {section}{\numberline {4}latexからhikiへの変換}{19}
34
37
  \contentsline {subsection}{\numberline {4.1}rake mk\_toc}{19}
38
+ \contentsline {subsection}{\numberline {4.2}listings}{19}
@@ -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,6 +1,7 @@
1
1
  \relax
2
- \@writefile{toc}{\contentsline {section}{\numberline {4}hikiへのlatexからの変換}{19}}
2
+ \@writefile{toc}{\contentsline {section}{\numberline {4}latexからhikiへの変換}{19}}
3
3
  \@writefile{toc}{\contentsline {subsection}{\numberline {4.1}rake mk\_toc}{19}}
4
+ \@writefile{toc}{\contentsline {subsection}{\numberline {4.2}listings}{19}}
4
5
  \@setckpt{latex2hiki}{
5
6
  \setcounter{page}{20}
6
7
  \setcounter{equation}{0}
@@ -12,12 +13,12 @@
12
13
  \setcounter{mpfootnote}{0}
13
14
  \setcounter{part}{0}
14
15
  \setcounter{section}{4}
15
- \setcounter{subsection}{1}
16
+ \setcounter{subsection}{2}
16
17
  \setcounter{subsubsection}{0}
17
18
  \setcounter{paragraph}{0}
18
19
  \setcounter{subparagraph}{0}
19
20
  \setcounter{figure}{4}
20
21
  \setcounter{table}{1}
21
- \setcounter{lstnumber}{10}
22
+ \setcounter{lstnumber}{18}
22
23
  \setcounter{lstlisting}{0}
23
24
  }
@@ -1,4 +1,23 @@
1
- \section{hikiへのlatexからの変換}
1
+ \section{latexからhikiへの変換}
2
2
  \subsection{rake mk\_toc}
3
3
  latexが作成するtableofcontentsの実態であるtocファイルからhiki用のtoc.hikiを作成する.
4
4
 
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}
@@ -7,9 +7,11 @@
7
7
  \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.1}下準備}{15}}
8
8
  \@writefile{toc}{\contentsline {paragraph}{head.tex}{16}}
9
9
  \@writefile{toc}{\contentsline {paragraph}{pre.tex}{16}}
10
+ \@writefile{toc}{\contentsline {paragraph}{mainのpreamble部}{16}}
10
11
  \@writefile{toc}{\contentsline {subsection}{\numberline {3.4}補助コマンドの解説}{17}}
11
12
  \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.1}rake reset\_latex\_dir(latex\_dirのゴミ掃除)}{17}}
12
13
  \@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.2}wrap関係}{17}}
14
+ \@writefile{toc}{\contentsline {subsection}{\numberline {3.5}開発メモ(2017/2/8)}{17}}
13
15
  \@setckpt{latex_all}{
14
16
  \setcounter{page}{19}
15
17
  \setcounter{equation}{0}
@@ -21,8 +23,8 @@
21
23
  \setcounter{mpfootnote}{0}
22
24
  \setcounter{part}{0}
23
25
  \setcounter{section}{3}
24
- \setcounter{subsection}{4}
25
- \setcounter{subsubsection}{2}
26
+ \setcounter{subsection}{5}
27
+ \setcounter{subsubsection}{0}
26
28
  \setcounter{paragraph}{0}
27
29
  \setcounter{subparagraph}{0}
28
30
  \setcounter{figure}{4}
@@ -38,12 +38,12 @@ DRY(Don't Repeat Yourself)原則さえ守れば,文書管理はいいのです
38
38
  hiki -i
39
39
  \end{verbatim}\end{quote}
40
40
  でinstallされています.新たに使うコマンド群は次の通りです.
41
- \begin{lstlisting}[style=]
41
+ \begin{quote}\begin{verbatim}
42
42
  rake latex # FILE1をlatexに変換
43
43
  rake latex_all # すべてのhikiファイルをlatex変換
44
44
  rake latex_wrap # FILE1をwrap formatでlatexに変換
45
45
  rake reset_latex_dir # latex_dirのゴミファイルを削除
46
- \end{lstlisting}
46
+ \end{verbatim}\end{quote}
47
47
  \subsection{rake latex(個別ファイルの変換)}\begin{quote}\begin{verbatim}
48
48
  rake latex sync.hiki
49
49
  \end{verbatim}\end{quote}
@@ -71,16 +71,15 @@ 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
-
75
74
  \end{verbatim}\end{quote}
76
75
  とすると,
77
- \begin{lstlisting}[style=]
76
+ \begin{quote}\begin{verbatim}
78
77
  \begin{document}
79
78
  \title{hikiutils -iによる卒論作成システム}
80
79
  \author{Shigeto R. Nishitani}
81
80
  \date{ Kwansei Gakuen Univ., 2017/1}
82
81
  \maketitle
83
- \end{lstlisting}
82
+ \end{verbatim}\end{quote}
84
83
  と変換してくれます.次節のlatex\_allでは,basename.hikiに書かれたそれらの情報は,
85
84
  head.texでtitleなどを用意するべきなので,自動で消されます.
86
85
 
@@ -94,14 +93,14 @@ rake latex_all
94
93
  \end{verbatim}\end{quote}
95
94
  をおこなうと自動で全部を一体にまとめた文書へのlatex変換が出来上がります.
96
95
  たとえば,hikiutils\_bob.hikiの記述を
97
- \begin{quote}\begin{verbatim}
96
+ \begin{lstlisting}[style=customCsh,basicstyle={\scriptsize\ttfamily}]
98
97
  bob% cat hikiutils_bob.hiki
99
98
  !hikiutilsを用いた卒業論文作成
100
99
 
101
100
  ! [[hikiutils_bob_sync]]
102
101
  ! [[hikiutils_bob_latex_all]]
103
102
 
104
- \end{verbatim}\end{quote}
103
+ \end{lstlisting}
105
104
  とすると,sync.tex, latex\_all.texがlatex\_dir内に変換されます.
106
105
  さらに,開いているhikiutils\_bob.texをTeXShopで変換してみてください.
107
106
 
@@ -125,7 +124,7 @@ hiki -i
125
124
  題目,学生番号,氏名を変更する.年月をチェック.
126
125
  \\setcounter{tocdepth}はtocをどこまで表示するかのレベルに対応します.
127
126
  原稿作成時は階層がわかりやすいように深めにしていますが,本番では2程度で十分です.
128
- \begin{lstlisting}[style=customTeX]
127
+ \begin{lstlisting}[style=customTeX,basicstyle={\scriptsize\ttfamily}]
129
128
  bob% cat head.tex
130
129
  \title{卒業論文\\
131
130
  \vspace{4cm} hikiutilsを用いた\\卒業論文作成}
@@ -137,46 +136,50 @@ bob% cat head.tex
137
136
 
138
137
  \end{lstlisting}
139
138
  \paragraph{pre.tex}
139
+ latex\_allのときは使っていません.formatedの時に読むようにしていますが...読めてないようです.いずれ調べます.
140
+
141
+ \paragraph{mainのpreamble部}
140
142
  あまり変更しないほうがいいですが,いずれいじることになります.
141
143
  例えば,フォントポイント数を12から10ptに変える,\\pagestyle\{empty\}を外すなどです.
142
- \begin{lstlisting}[style=customTeX]
143
- bob% cat pre.tex
144
- \documentclass[10pt,a4j]{article}
145
-
146
- \def\Vec#1{\mbox{\boldmath $#1$}}
144
+ \begin{lstlisting}[style=customTeX,basicstyle={\scriptsize\ttfamily}]
145
+ \documentclass[12pt,a4paper]{jsarticle}
147
146
  \usepackage[dvipdfmx]{graphicx}
148
-
149
- \setlength{\textheight}{275mm}
150
- \headheight 5mm
151
- \topmargin -20mm
152
- \textwidth 160mm
153
- \textheight 250mm
154
- \oddsidemargin -0mm
155
- \evensidemargin -5mm
156
-
157
- \pagestyle{empty}
158
- \makeatletter
159
- \def\@maketitle{%
160
- \newpage\null
161
- \vskip 2em%
162
- \begin{center}%
163
- \let\footnote\thanks
164
- {\large\bf \@title \par}%
165
- \vskip 1.5em%
166
- {\large\bf \@author \par}%
167
- \vskip 1.5em%
168
- {\small \@date}%
169
- \end{center}%
147
+ \usepackage[dvipdfmx]{color}
148
+ \usepackage{listings,jlisting}% to use japanese correctly, install jlistings.
149
+ \lstset{
150
+ basicstyle={\small\ttfamily},
151
+ identifierstyle={\small},
152
+ commentstyle={\small\itshape\color{red}},
153
+ keywordstyle={\small\bfseries\color{cyan}},
154
+ ndkeywordstyle={\small},
155
+ stringstyle={\small\color{blue}},
156
+ frame={tb},
157
+ breaklines=true,
158
+ numbers=left,
159
+ numberstyle={\scriptsize},
160
+ stepnumber=1,
161
+ numbersep=1zw,
162
+ xrightmargin=0zw,
163
+ xleftmargin=3zw,
164
+ lineskip=-0.5ex
165
+ }
166
+ \lstdefinestyle{customCsh}{
167
+ language={csh},
168
+ numbers=none,
169
+ }
170
+ \lstdefinestyle{customRuby}{
171
+ language={ruby},
172
+ numbers=left,
170
173
  }
171
- \makeatother
172
-
173
- %\documentclass[10pt, a4j]{article}
174
- %%\usepackage{citesort}
175
- \usepackage{amssymb}
176
- \usepackage[dvipdfmx]{graphicx}% 図を入れるときに使用
177
- \usepackage{wrapfig}% 図の周りに本文を流し込みたいときに使用
178
- \usepackage{subfigure}
179
- \usepackage{here}
174
+ \lstdefinestyle{customTex}{
175
+ language={tex},
176
+ numbers=none,
177
+ }
178
+ \lstdefinestyle{customJava}{
179
+ language={java},
180
+ numbers=left,
181
+ }
182
+
180
183
  \end{lstlisting}
181
184
  \subsection{補助コマンドの解説}
182
185
  \subsubsection{rake reset\_latex\_dir(latex\_dirのゴミ掃除)}
@@ -194,7 +197,7 @@ wrapfigureでtextの回りこみや位置調整を行う必要があります.
194
197
  \item rake change\_wrap(wrapで変換)
195
198
  \item rake latex\_base(latexに変換するだけの下請け)
196
199
  \item rake latex\_wrap(figure環境だけをwrapfig環境に変える)
197
- \end{itemize}\begin{lstlisting}[style=customRuby]
200
+ \end{itemize}\begin{lstlisting}[style=customRuby,basicstyle={\scriptsize\ttfamily}]
198
201
  desc "latex conversion FILE1"
199
202
  task :latex => [:latex_base] do
200
203
  exit
@@ -210,3 +213,12 @@ end
210
213
  \begin{itemize}
211
214
  \item \verb|{{attach_anchor(calphad_bob.pdf,hikiutils_bob)}}|
212
215
  \end{itemize}
216
+ \subsection{開発メモ(2017/2/8)}
217
+ \begin{itemize}
218
+ \item hikiutilsにlatex2hiki, hiki2latexも統合すべきか?
219
+ \item \verb|{{ref}}| \verb|{{cite}}|を組み込む
220
+ \item hikiにではなく,rake syncで変換
221
+ \item listingsの調整
222
+ \item jlistingは,\\lstsetや\\lstdefinestyleで引っかかってダメ
223
+ \item basicstyle={\small\ttfamily}これ効いてんにゃろか??
224
+ \end{itemize}