-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathllls.sty
476 lines (421 loc) · 15 KB
/
llls.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 2010.3.8 Ver. 2.1 改訂者:今井福司
%% 改訂内容
%% ・図のキャプションの上下空白を調整。
%% ・注の文字サイズを本文と同じサイズに変更
%% ・目次と本文の間にスペースを入れた。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 2010.2.19 Ver. 2 改訂者: 今井福司
%% 改訂内容
%% ・ページの割り付け位置の修正
%% ・和文タイトル,英文タイトルと英文アブストラクトのエリア内での行間修正
%% ・和文アブストラクト,英文アブストラクトの行下げ設定
%% ・巻号から日本語タイトルまでの改行幅を小さくした。
%% ・日本語タイトルから著者名までの改行幅を大きくした。
%% ・「生涯学習基盤経営 第34号 2009年」→「生涯学習基盤経営研究 第34号 2009年度」
%% ・その他,相対値で指定していた箇所を絶対値と置き換え,厳密なレイアウトができるようにした。
%% Ver. 1からの移行方法
%% ・jtitleが2つ引数を取るようになりました。第1引数には主題,第2引数には副題をいれてください。
%% 副題をつけない場合は第2引数は「何も入力しない」でください。
%% ・英文アブストラクト環境をabstractからeabstractへ書き換える。
%% ・英文アブストラクトの前にある\bigskipを削るかコメントアウトする。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%『生涯学習基盤経営研究』LaTeXスタイルファイル Ver.1
%%【著作権者】東京大学大学院教育学研究科生涯学習基盤経営コース
%%【制作日】2009年1月6日
%%【種 別】LaTeXテンプレートファイル
%%【連絡先】[email protected]
%%【配布元】東京大学大学院教育学研究科生涯学習基盤経営コースのサーバーより配布
%% http://llls.p.u-tokyo.ac.jp/
%%【転 載】著作権者,配布元の明記をした上で自由にどうぞ。可能であれば,
%% 転載前に連絡をお願いします。
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{multicol}
\usepackage[dvipdfmx]{graphicx}
\usepackage{boxedminipage}
\usepackage[obeyspaces,hyphens,spaces]{url}
\urlstyle{rm}
\usepackage{endnotes}
\usepackage{textcomp}
\usepackage{booktabs}
\usepackage[bxutf8x]{inputenc}
\usepackage{pxbase}
\usepackage[bold,multi]{otf}
\usepackage[english,japanese]{babel}
\usepackage[main=japanese]{pxbabel}
\usepackage[dvipdfmx,unicode,noto-otc]{pxchfon}
\addto\captionsjapanese{
\renewcommand{\contentsname}
{目 次}
\renewcommand{\notesname}
{注}
}
\addto\captionsenglish{
\renewcommand{\contentsname}
{Contents}
\renewcommand{\notesname}
{Endnotes}
}
\newcommand{\English}{%
\selectlanguage{english}
\setlength{\parindent}{2em} % 段落の字下げを多めにする
\makeatletter % 見出しの直後の段落を字下げしない
\let\@afterindenttrue\@afterindentfalse%
\makeatother % 英語設定ここまで
}
\topmargin=-2.7cm
%\topmargin=-3.25cm
\headheight=0cm
\oddsidemargin=-1.2cm
\setlength{\textwidth}{46zw}
\setlength{\textheight}{44\baselineskip}
\columnsep=0.7cm
\hoffset=-.5in% 左へ 0.5インチ版面全体を移動
\let\footnote=\endnote
\pagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%sectionの再定義%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\section}{%
\@startsection{section}{1}{\z@}%
{.3\Cvs \@plus.8\Cdp \@minus.2 \Cdp}%
{.1\Cvs \@plus.3\Cdp}%
{\reset@font\bfseries\large}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%subsectionの再定義%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\subsection}{%
\@startsection{subsection}{1}{\z@}%
{.2\Cvs \@plus.5\Cdp \@minus.2 \Cdp}%
{.1\Cvs \@plus.3\Cdp}%
{\reset@font\bfseries}}
\renewcommand{\subsubsection}{%
\@startsection{subsubsection}{1}{\z@}%
{.1\Cvs \@plus.5\Cdp \@minus.2 \Cdp}%
{.1\Cvs \@plus.3\Cdp}%
{\reset@font}}
%\renewcommand{\thesection}{\@Roman\c@section}%
\def\initialize{
\newpage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% captionの上下空白の設定
% ref: http://osksn2.hep.sci.osaka-u.ac.jp/~naga/miscellaneous/tex/tex-tips2.html
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\abovecaptionskip=4pt
\belowcaptionskip=4pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%enumerateのナンバリング
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\labelenumi}{\arabic{enumi}}
\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}
\renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%enumerateの行間調整 ref:http://www.nsknet.or.jp/~tony/TeX/faq/macro.htm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter%% プリアンブルで定義する場合は必須
\renewenvironment{enumerate}%% enumerate 環境を再定義
{\ifnum \@enumdepth >\thr@@\@toodeep\else%
\advance\@enumdepth\@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\list{\csname label\@enumctr\endcsname}{%
\iftdir
\ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
\else\topsep\z@\fi
% 元々ここにあった定義を...
\labelwidth1zw \labelsep.3zw
\ifnum \@enumdepth=\@ne \leftmargin1zw\relax
\else\leftmargin\leftskip\fi
\advance\leftmargin 1zw
\fi
\parskip\z@ \itemsep\z@ \parsep\z@% こちらに移動
\usecounter{\@enumctr}%
\def\makelabel##1{\hss\llap{##1}}}%
\fi}{\endlist}
\makeatother%% プリアンブルで定義する場合は必須
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%itemizeの行間調整 ref:http://www.nsknet.or.jp/~tony/TeX/faq/macro.htm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter%% プリアンブルで定義する場合は必須
\renewenvironment{itemize}%% itemize 環境を再定義
{\ifnum \@itemdepth >\thr@@\@toodeep\else
\advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\expandafter
\list{\csname \@itemitem\endcsname}{%
\iftdir
\ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
\else\topsep\z@\fi
% 元々ここにあった定義を...
\labelwidth1zw \labelsep.3zw
\ifnum \@itemdepth =\@ne \leftmargin1zw\relax
\else\leftmargin\leftskip\fi
\advance\leftmargin 1zw
\fi
\parskip\z@ \itemsep\z@ \parsep\z@% こちらに移動
\def\makelabel##1{\hss\llap{##1}}}%
\fi}{\endlist}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%descriptionの行間調整 ref:http://www.nsknet.or.jp/~tony/TeX/faq/macro.htm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter%% プリアンブルで定義する場合は必須
\renewenvironment{description}%% description 環境を再定義
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\iftdir
\leftmargin\leftskip \advance\leftmargin3\Cwd
\rightmargin\rightskip
\labelsep=1zw% 元々ここにあった定義を...
\fi
\itemsep\z@% こちらに移動
\listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@% こちらに移動
\let\makelabel\descriptionlabel}}{\endlist}
\makeatother%% プリアンブルで定義する場合は必須
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%ヘッダーの誌名と号数の記述用。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\voltitle#1#2{
\vspace{0.4cm}
{
生涯学習基盤経営研究 第#1号 #2年度
}{
%\bigskip{}
%\smallskip
%\vspace{0.1cm}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%tableofcontents命令でSectionのページ数が出力されないようにする
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand*{\l@section}[2]{%
\ifnum \c@tocdepth >\z@
\addpenalty{\@secpenalty}%
\addvspace{1.0em \@plus\p@}%
\begingroup
\parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
\leavevmode\bfseries
\setlength\@lnumwidth{1.5em}%
\advance\leftskip\@lnumwidth \hskip-\leftskip
#1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss}\par
\endgroup
\fi}
\makeatother%% プリアンブルで定義する場合は必須
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%tableofcontents命令でsubsection以下のリーダー及びページ数が出力されな
%いようにする
%ref:http://xymtex.com/ 「LaTeX2eまくろのやちまた」第14章から第17章
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\def\numberline#1{\hbox to3.1zw{#1\hfil}}
\def\@dottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
\vskip \z@ plus .2pt
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax \advance\leftskip \@tempdima \hbox{}\hskip
-\leftskip #4\hbox to0.33333zw{\hss\raise.4zh\hbox{}\hss}\hfill
\nobreak \hbox to\@pnumwidth{\hfil\rm}\par}\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%タイトルの定義
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter%% プリアンブルで定義する場合は必須
\def\jtitle#1#2{%
\def\@tempb{#1}%
\def\@tempb{#2}%
\ifx\@tempb\empty
\begin{flushleft}
{\LARGE
{\renewcommand{\baselinestretch}{1}\selectfont
\bf #1 \\}}{}
\end{flushleft}
\vspace{1mm}
\else
\begin{flushleft}
{\LARGE\bf #1\\}{\vspace{1zw}\large\bf #2}{}
\end{flushleft}
\vspace{1mm}
\fi
%\ifx\@tempb\empty
%\begin{flushleft}
%{\LARGE
% {\renewcommand{\baselinestretch}{1}\selectfont
% \bf #1 \\}}{}
%\end{flushleft}
%\else
%\begin{flushleft}
% {\LARGE\bf #1\\}{\vspace{1zw}\large\bf #2}{}
%\end{flushleft}
%\fi
}
\makeatother%% プリアンブルで定義する場合は必須
\makeatletter%% プリアンブルで定義する場合は必須
\def\etitle#1{
\begin{center}
{\Large
{\renewcommand{\baselinestretch}{1.2}\selectfont
\bf #1\\[2mm] }
}{}
\end{center}
}
\makeatother%% プリアンブルで定義する場合は必須
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%endnotesの定義
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\def\enotesize{\normalsize}
\def\enoteformat{\rightskip\z@ \leftskip1.8em \parindent=\z@
\leavevmode\llap{\small{\hbox{${\@theenmark})$ }}}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%endnotesのコマンド定義
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\enhere}{
\renewcommand{\baselinestretch}{0.9}\selectfont
\begingroup \parindent 0ex \parskip 0ex \def\ennotesize{\normalsize}
\theendnotes \endgroup
\renewcommand{\baselinestretch}{1}\selectfont
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%名前の定義
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{authors}{\hfill\Large}{\smallskip\\}
\newenvironment{eauthors}{\Large}{\bigskip\\}
\def\name#1#2{
\ifnum#1=1
#2 $^{\dag}$
\else
\ifnum#1=2
#2 $^{\dag\dag}$
\else
\ifnum#1=3
#2 $^{\ddag}$
\else
\ifnum#1=4
#2 $^{\ddag\ddag}$
\else
#2 $^{\ddag\ddag\ddag}$
\fi
\fi
\fi
\fi
}
\def\ename#1#2#3{
\ifnum#1=1
#2{\footnotesize #3} $^{\dag}$
\else
\ifnum#1=2
#2{\footnotesize #3} $^{\dag\dag}$
\else
\ifnum#1=3
#2{\footnotesize #3} $^{\ddag}$
\else
\ifnum#1=4
#2{\footnotesize #3} $^{\ddag\ddag}$
\else
#2{\footnotesize #3} $^{\ddag\ddag}$
\fi
\fi
\fi
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%所属の定義
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{affiliation}{\hfill}{}
\newenvironment{eaffiliation}{}{}
\def\aff#1#2{
\ifnum#1=1
% \footnotetext{$^{\dag}$#2} %
{$^{\dag}$#2} %
\else
\ifnum#1=2
{$^{\dag\dag}$ #2} %
\else
\ifnum#1=3
{$^{\ddag}$ #2} %
\else
\ifnum#1=4
{$^{\ddag\ddag}$ #2} %
\else
{$^{\ddag\ddag\ddag}$ #2} %
\fi
\fi
\fi
\fi
}
\def\eaff#1#2{
\ifnum#1=1
$^{\dag}$ #2 %
\else
\ifnum#1=2
\\$^{\dag\dag}$ #2 %
\else
\ifnum#1=3
\\$^{\ddag}$ #2 %
\else
\ifnum#1=4
\\$^{\ddag\ddag}$ #2 %
\else
\\$^{\ddag\ddag\ddag}$ #2 %
\fi
\fi
\fi
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%abstract環境の更新
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{abstract}{
%
\begin{minipage}{14cm}%
\hspace{0.6zw}\small
}%
{\end{minipage}\bigskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%英語abstract環境の更新
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{eabstract}{
%
\begin{minipage}{14cm}%
\renewcommand{\baselinestretch}{1.4}\selectfont
\vspace{2zw}\hspace{1.5zw}\small
}%
{\end{minipage}\vspace{2zw}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%keyword環境の新設
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{keyword}{%
%
\begin{minipage}{14cm}%
\small}%
{\end{minipage}\bigskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%引用記号の再定義
%LaTeX階梯 p.206
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\def\@biblabel#1{#1)}
%\def\@cite#1#2{{$^{\mbox{\scriptsize $#1$}}$%
% \if@tempswa , #2\fi}$^{\mbox{\scriptsize $)$}}$ }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%最終ページの表記変更
%ref:http://mikilab.doshisha.ac.jp/dia/seminar/1999/latex/download.html
%同志社大学三木研究室のスタイルを参照
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\ps@lastpage{\let\@mkboth\@gobbletwo
\def\@oddhead{} \def\@oddfoot{\hfil\thepage」\hfil}
\def\@evenhead{} \def\@evenfoot{\thepage」}}