-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcpc-hepnp.cls
executable file
·368 lines (290 loc) · 10.7 KB
/
cpc-hepnp.cls
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
%%
%% This is file `cpc-hepnp.cls',
%%
%% Copyright (c) 2007 Chinese Physics C
%% http://cpc-hepnp.ihep.ac.cn
%% mailto:[email protected]
%------------------------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesClass{cpc-hepnp}
\def\class@name{cpc-hepnp}%
\NeedsTeXFormat{LaTeX2e}
\@obsoletefile{article.cls}{article.sty}
\LoadClass{article}
\RequirePackage{fancyhdr}
\RequirePackage[numbers,sort&compress]{natbib}
\DeclareMathSizes{10}{10}{6}{5}
%----------------------------------------------------
\setlength{\textheight}{230mm}
\setlength{\textwidth}{178mm}
\setlength{\topmargin}{-0.3in}
\leftmargin 0mm
\evensidemargin 0mm
\headheight 12mm
\headsep 5mm
\footskip=30pt
\oddsidemargin-10mm
\evensidemargin-10mm
\columnsep 6mm
%--------------------------------------------------------------------------------------------------------------
\renewcommand{\baselinestretch}{1.0}
\renewcommand{\arraystretch}{1.2}
\setcounter{page}{1}
\setlength{\parskip}{0pt}
\setlength{\floatsep}{6pt}
\setlength{\textfloatsep}{6pt}
\setlength\footnotesep{8pt}
\setlength{\abovecaptionskip}{4pt plus1pt minus1pt}
\setlength{\belowcaptionskip}{4pt plus1pt minus1pt}
\setlength{\abovedisplayskip}{6pt plus1pt minus1pt}
\setlength{\belowdisplayskip}{6pt plus1pt minus1pt}
\addtolength{\thinmuskip}{-1mu}
\addtolength{\medmuskip}{-2mu}
\addtolength{\thickmuskip}{-2mu}
%---------------------------------------------------------------------------------------------------
\font\scten=euex10 at 10pt
\newcommand{\vint}{\mathop{{\vcenter{\hbox{\scten\char90}}}}}
\renewcommand{\int}{\vint}
\font\sctenr=euex10 at 9pt
\newcommand{\sint}{\mathop{{\vcenter{\hbox{\sctenr\char82}}}}}
\font\timeroman=psyr at 10pt
\newcommand{\vpartial}{\mathop{{\hbox{\timeroman \char182}}}}
%---------------------------------------------------------------------------------------------------
\def\journal#1#2#3#4#5{{#1}. {#2}, {#3}, {\bf #4}: {#5}}
\def\book#1#2#3#4#5#6{{#1}. {#2}. {#3}: {#4}, {#5}. {#6}}
\def\diss#1#2#3#4#5#6#7{{#1}. {#2}. {#3}. {#4}: {#5}, {#6}. {#7}}
\newcommand{\thanksmark}{\textsuperscript{\,\rm{*}}}
\newcommand{\dsize}{\displaystyle}
\newcommand{\kou}{\rule[-2.5ex]{0ex}{6ex}}
%\renewcommand{\,}{\hspace{0.125em plus 0.025em minus 0.025em}}
\newcommand{\oa}{\hbox{\fontfamily{ptm}\selectfont @}} %使用新字体◎
\newcommand{\ruleup}{\vspace*{-0.5cm}\noindent\rule{8.35cm}{0.2pt}\rule{0.6pt}{0.4cm}} %复杂公式与文本
\newcommand{\ruledown}{\hfill\noindent{\lower.38cm\hbox{\rule{0.2pt}{0.4cm}}\rule{8.35cm} %用折线分开
{0.2pt}}\vspace*{-0.5cm}}
\newcommand{\wen}[1]{\raisebox{0.3mm}{\textsuperscript{[#1]}}}
\newcommand{\bb}{\raisebox{0.4mm}[0pt]{:}}
\newcommand{\newsmall}{\fontsize{9pt}{1\baselineskip}\selectfont}
%----------------------------------\thanks, \footnote--------------------------------------
\makeatletter
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand{\thanks}[1]{\thanksmark
\protected@xdef\@thanks{\@thanks
\protect\footnotetext[0]{\hspace*{-6pt}$*$\;#1}}}
\newcounter{email}
\setcounter{email}{1}
\newcommand{\email}[1]{%
\protected@xdef\@thanks{\@thanks%
\protect\footnotetext[0]{\hspace*{-8pt}\arabic{email})\,{E-mail:\,}#1}}%
\stepcounter{email}}%
\newcommand{\emails}[1]{%
\footnotetext[0]{\hspace*{-8pt}\arabic{email})\,{E-mail:\,}#1}%
\stepcounter{email}}%
\renewcommand\footnoterule{%
\kern 1\p@
\hrule \@width37mm
\kern 8\p@}
\renewcommand\@makefntext[1]{%
\parindent 1em%
\noindent
\hb@xt@2em{\hss\@makefnmark}#1}
%---------------------------------------------------------------------------------------
\renewcommand\maketitle{\par%
\begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
\long\def\@makefntext##1{\parindent 1em\noindent
\hb@xt@2em{%
\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle
\fi
\@thanks
\endgroup
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax}
\renewcommand\@maketitle{%
\begin{center}%
\let \footnote \thanks
\vspace*{-1mm}
{\Large\bf \@title \par}%
{\normalsize%
\lineskip .5em%
\vskip 4mm%
\begin{tabular}[t]{c}%
\normalsize\@author%
\end{tabular}}%
\end{center}}%
\makeatother
%---------------------------------------------------------------------------------------------
\newcommand{\address}[1]{%
\vspace*{0mm}
\begin{center}%
\vskip -5mm%
\begin{center}%
{\footnotesize #1}%
\end{center}%
\end{center}%
}%
\newcommand{\ym}[1]{\normalsize #1}%
%-----------------------------------------------------------------------------------
\renewenvironment{abstract}%
{\newsmall\vspace{-2mm}%
\list{}{\rightmargin 2em%
\leftmargin 2em}%
\item{}{\bf Abstract:}\hspace*{0.5em}\relax}%
{\endlist}
%-----------------------------------------------------------------------------------
\newenvironment{keyword}%
{\small%
\list{}{\rightmargin 2em%
\leftmargin 2em}%
\item{}{\bf Key~words:}\hspace*{0.5em}\relax }%
{\endlist%
}%
\newenvironment{pacs}%
{\small%
\list{}{\rightmargin 2em%
\leftmargin 2em}%
\item{}{\bf PACS:}\hspace*{0.5em}\relax }%
{\endlist%
\vskip 1.5mm}%
%---------------------------------------------------------------
\newcommand{\acknowledgments}[1]{%
{\it #1}%
}
\makeatletter
%--------------------\section, \subsection--------------------------------------------------------------
\renewcommand \thesection {\bf\@arabic\c@section}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{4mm \@plus.2ex \@minus .2ex}%
{3.5mm \@plus.2ex \@minus .2ex}%
{\normalfont\large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
% {-2.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\bfseries}}
\renewcommand\subsubsection{\renewcommand \thesection {\@arabic\c@section}
\@startsection{subsubsection}{3}{\z@}%
% {-2.25ex\@plus -1ex \@minus -.2ex}%
{0.5ex}%
{0.5ex}%
{\normalfont}}
%----------------------------------------------------------------------------------------------
\renewcommand{\@biblabel}[1]{#1}
\renewcommand\refname{{\normalsize\bf References}}
\renewenvironment{thebibliography}[1]
{\noindent\refname%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\footnotesize
\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
%\setlength{\itemsep}{-1.5mm}
\setlength{\itemsep}{0mm}
\setlength{\labelsep}{0.8em}
\setlength{\parsep}{0mm}
\setlength{\parskip}{0mm}
\setlength{\topsep}{0mm}
\setlength{\partopsep}{0mm}
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%---------------------------------------------------------------------------------
\newenvironment{mylabc}
{%
\small
\let\\\@centercr
\list{}{\itemsep \z@
\itemindent -1em%
\listparindent0em
\leftmargin 3em
\rightmargin 2em}
\item\relax}
{\endlist}
\newenvironment{zhu} %用于图表注
{\footnotesize
\vspace{-1mm}
\let\\\@centercr
\list{}{\itemsep \z@
\itemindent 0em%
\listparindent0em
\leftmargin 2mm
\rightmargin 0em}
\item\relax}
{\endlist}
\makeatother
\fancypagestyle{myfoot}
{%
%\fancyhf{}
\renewcommand{\headrule}{\vskip 2pt \hrule height0.4pt width\headwidth}
}%
%\thispagestyle{myfoot}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrule}{\vskip 2pt \hrule height0.4pt width\headwidth}
\makeatletter
\newcommand\figcaption{\def\@captype{figure}\caption}
\renewcommand\figurename{{\small Fig.}}
\newcommand\tabcaption{\def\@captype{table}\caption}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{\small #1.\quad #2}%
\ifdim \wd\@tempboxa >\hsize
\begin{mylabc}
\vspace{-2mm}
{\protect #1.\quad #2}%
\vskip 1mm%
\end{mylabc}\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother
\makeatletter
\newcommand\capt[1]{%
\sbox\@tempboxa{\small #1}%
\ifdim \wd\@tempboxa >\hsize
\begin{mylabc}
\vspace*{-2mm}
\small #1%
\vskip 1mm%
\end{mylabc}
\else
\global \@minipagefalse
\vspace*{-2mm}
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\vskip 1mm%
\fi}
\makeatother
%%
%% End of file `cpc-hepnp.cls'.