This repository has been archived by the owner on Apr 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cover.sty
123 lines (79 loc) · 1.96 KB
/
cover.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cover}[2017/11/20 v0.2 for cover of univ graduation thesis]
%----------------------------------------
\RequirePackage{ulem}
\newif\if@B \@Bfalse
\newif\if@M \@Mfalse
\DeclareOption{B}{\@Btrue}
\DeclareOption{M}{\@Mtrue}
\ProcessOptions\relax
\def\advisor#1{\gdef\@advisor{#1}}
\def\institution#1{\gdef\@institution{#1}}
\def\papertype#1{\gdef\@papertype{#1}}
\def\majorfield#1{\gdef\@majorfield{#1}}
%\def\abstract#1{\gdef\@abstract{#1}}
\def\era#1{\gdef\@era{#1}}
\def\erayear#1{\gdef\@erayear{#1}}
\def\yearandmonth#1{\gdef\@yearandmonth{#1}}
\def\keywords#1{\gdef\@keywords{#1}}
\def\keywordsname{\textbf{Key Words : }}
%
\def\maketitle{\par
\begingroup
\def\@makefnmark{\hbox
to\z@{$\m@th^{\@thefnmark}$\hss}}%
\if@twocolumn
\twocolumn[\@maketitle]
\else
\global\@topnum\z@
\@maketitle
\fi
\thispagestyle{empty}\@thanks
\endgroup
\let\maketitle\relax
\let\@maketitle\relax
\gdef\@keywords{}
\let\keywords\relax
\let\majorfield\relax\gdef\@majorfield{}
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
\def\@maketitle{
\newpage\null
\thispagestyle{empty}
\if@B
\begin{center}
\vspace*{2truecm}
{\Large \@era \@erayear 年度}
\vspace{1truecm}
{\Large \@institution}
\vspace*{1truecm}
{\Large \@papertype}
\vspace*{2.4truecm}
{\huge 題目 \baselineskip 1.5em \uline{\huge\@title}} \vfill
\vspace*{6cm plus 2truecm minus 2truecm}
\underline{\LARGE 主専攻 \hspace{1truecm} \@majorfield }
\vspace*{1truecm}
\underline{\huge 著者 \hspace{1truecm} \@author }
\vspace*{5truemm}
\underline{\LARGE 指導教員 ~ \@advisor}
\end{center}
\fi
\if@M
\begin{center}
\vspace*{2cm}
{\Large \@institution}
\vspace{1cm}
{\Large \@papertype}
\vspace{2.4cm}
{\huge \baselineskip 1.5em \@title\\} \vfill
\vspace{6cm plus 2cm minus 2cm}
\vspace{1cm}
{\huge \@author}
\vspace{5mm}
{\LARGE 修士 (\@majorfield)}
\vspace{1cm}
{\LARGE 指導教員 ~ \@advisor}
\vspace{1cm}
{\LARGE \@yearandmonth}
\end{center}
\fi
}