-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjsme-nenji.sty
178 lines (152 loc) · 5.19 KB
/
jsme-nenji.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
%%
%% This is file `jsme-nenji.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jsme-nenji.dtx (with options: `package')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from jsme-nenji.sty.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file jsme-nenji.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{jsme-nenji}[2010/09/30 makita]
%% %<*package>
%% \onecolumn
%% % \columnsep 8truemm
%% \textheight 247truemm
%% \textwidth 170truemm
%% \topmargin -1in
%% \addtolength{\topmargin}{25truemm}
%% \headheight 7truemm
%% \headsep 0mm
%% \oddsidemargin -1in
%% \addtolength{\oddsidemargin}{20truemm}
%% \marginparsep 0mm
%% \marginparwidth 0mm
%% \footskip 0mm
%% %</package>
\RequirePackage{fancyhdr}
\RequirePackage{geometry}
\RequirePackage{cite}
\RequirePackage{caption}
\geometry{a4paper, onecolumn, top=26mm, bottom=25mm, left=21mm, right=21mm, headheight=21pt, headsep=0mm, }
\captionsetup[figure]{name=Fig.~}
\captionsetup[table]{name=Table~}
\newcommand{\eqjref}[1]{式\eqref{#1}}
\rhead{\footnotesize \sffamily 日本機械学会2016年度年次大会 [2016.9.11-14] \\
Copyright \copyright 2016 一般社団法人 日本機械学会
}
\lfoot{\footnotesize \sffamily [No.16-1] 日本機械学会2016年度年次大会講演論文集 〔2016.9.11-14,福岡〕}
\renewcommand{\headrulewidth}{0mm}
\renewcommand{\footnoterule}{%
\kern -3pt
\hrule width \columnwidth
\kern 2.6pt}
\renewcommand{\@fnsymbol}[1]{*\@arabic{#1}}
\newcommand{\email}[1]{\footnote[0]{Email: {#1}}}
\def\pnum#1{\gdef\@pnum{#1}}
\def\engtitle#1{\gdef\@engtitle{#1}}
\def\engauthor#1{\gdef\@engauthor{#1}}
\def\affiliation#1{\gdef\@affiliation{#1}}
\def\address#1{\gdef\@address{#1}}
\def\keyword#1{\gdef\@keyword{#1}}
\def\@maketitle{\newpage%
\null%
\begin{flushleft}
\vspace*{-10mm} % added for pLaTeX
{\LARGE \sf \@pnum \par }
\end{flushleft}
\begin{center} %
% \vspace*{5mm} % added for pLaTeX
{\Large\bf \@title \par } %
\end{center}
\begin{flushright}
{\large \@author }
\end{flushright}%
\begin{center}
{\large\bf \@engtitle \par } %
\vskip 1em
{\large \@engauthor \par } %
\vskip 1em
{\normalsize $^{*1}$ \@affiliation \par } %
{\normalsize \@address \par } %
\end{center}
\@ifundefined{@abstract}{}{%
\vspace*{0.0mm} % added for pLaTeX
\vskip 1em
\@abstract%
\gdef\@abstract{}}%
% \vspace*{0.0mm} % added for pLaTeX
% \vspace*{-4.0mm} % added for pLaTeX
\@ifundefined{@keyword}{}{%
{\em \bfseries Key Words: }\@keyword%
\gdef\@keyword{}}%
% % \vspace*{5.0mm} % added for pLaTeX
\vspace*{0.0mm} % added for pLaTeX
\vskip 2zh}%
\long\def\abstract#1{\long\gdef\@abstract{#1}
\vskip 1ex
}%
\def\thesection{\normalsize \arabic{section}.}
\def\thesubsection{\normalsize \arabic{section}$\cdot$\arabic{subsection}}
\def\thesubsubsection{\normalsize \arabic{section}$\cdot$\arabic{subsection}$\cdot$\arabic{subsubsection}}
\def\section{\vskip 1ex \@startsection {section}{1}{\z@}{.8ex plus .5ex minus
.2ex}{.5ex plus .2ex}{\normalsize\bfseries\centering}}
\def\subsection{\vskip 1ex \@startsection{subsection}{2}{\z@}{.1ex plus .5ex minus
.2ex}{.5ex plus .2ex}{\normalsize\bfseries}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{.1ex plus
.5ex minus .2ex}{.5ex plus .2ex}{\normalsize\bfseries}}
\def\thebibliography#1{% 参考文献出力命令
\vskip 1ex
\vskip 1zh plus .2ex minus .2ex
\centering{\normalsize\bfseries 文 献}\par\@mkboth{References}{References}
\list{(\arabic{enumi})~} % ラベルは 1. , 2. , ...
{\settowidth\labelwidth{#1)} % ラベルの幅は [引数]
\leftmargin\labelwidth % 左余白はラベル幅
\parsep \z@ plus 1pt minus 1pt
\itemsep \z@ plus 1pt minus 1pt
\advance \leftmargin by \labelsep % 左余白を \labelsep だけ増す
\usecounter{enumi}} % enumi カウンタで文献番号を数える
\def\newblock{\hskip .11em plus .33em minus .07em}%
% \newblock は若干の空きをあける命令
\sloppy % 段落は多少空きが不揃いでもよい
\clubpenalty=4000 \widowpenalty=4000 % なるべく段落中の1行だけ別ページにならないように
\sfcode`\.=1000\relax} % 上の解説参照
\let\endthebibliography=\endlist % 終わりは list の終わりと同じ
\makeatletter
\DeclareRobustCommand\cite{\unskip
\@ifnextchar[{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}}
\def\@cite#1#2{$^{\hbox{\scriptsize{(#1\if@tempswa , #2\fi)}}}$}
\def\@biblabel#1{(#1)}
\makeatother
\newenvironment{env}%
{\begin{quote}\textbf}%
{\end{quote}}
\newcounter{stepnumber}
\newenvironment{steps}{%
\begin{list}{\bf Step~\arabic{stepnumber}.}{%
\usecounter{stepnumber}%
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\partopsep}{0pt}%
\setlength{\labelwidth}{0pt}%
\setlength{\leftmargin}{10pt}%
}}
{\end{list}}
\thispagestyle{fancy}
\pagestyle{empty}
\endinput
%%
%% End of file `jsme-nenji.sty'.