This repository was 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
/
Copy paththesis.sty
95 lines (77 loc) · 2.11 KB
/
thesis.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{thesis}[2017/11/20 v0.1 ]
\newif\if@B
\@Bfalse
\newif\if@M
\@Mfalse
\DeclareOption{B}{\@Btrue}
\DeclareOption{M}{\@Mtrue}
\ProcessOptions\relax
\renewenvironment{abstract}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
{\bfseries\abstractname}%
\vspace{5mm}
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
\if@B
\renewcommand{\abstractname}{要\hspace{2\Cwd}旨}
\fi
\if@M
\renewcommand{\abstractname}{概要}
\fi
\renewcommand{\and}{\hspace*{2\Cwd}}
\renewcommand{\rmdefault}{ptm}
\renewcommand{\sfdefault}{ptm}
% from bxjsreport
\def\@makechapterhead#1{%
\vspace*{2\Cvs}% 欧文は50pt
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\setlength\@tempdima{\linewidth}%
\if@mainmatter
\huge\headfont \@chapapp\thechapter\@chappos\hskip1\Cvs
\addtolength\@tempdima{-\wd\z@}%
\unhbox\z@\nobreak
\vtop{\hsize\@tempdima}
% \par\nobreak
% \vskip \Cvs % 欧文は20pt
\fi
\fi
% \interlinepenalty\@M
\huge \headfont #1\par\nobreak
\vskip 3\Cvs}} % 欧文は40pt
\def\@makeschapterhead#1{%
\vspace*{2\Cvs}% 欧文は50pt
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\huge \headfont #1\par\nobreak
\vskip 3\Cvs}} % 欧文は40pt
% end from bxjsreport.cls
% from jrepost.cls
\setlength\bibindent{1.5em}
\renewcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\let\@openbib@code\@empty
% end from jrepost.cls