-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaaas.cls
More file actions
319 lines (277 loc) · 11.1 KB
/
Copy pathaaas.cls
File metadata and controls
319 lines (277 loc) · 11.1 KB
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
% aaas.cls
%
% version 0.1 (2018年4月)
%
% 航空学报中文版LaTeX模板(非官方)
% LaTeX Template (unofficial) for Acta Aeronautica et Astronautica Sinica
%
% by Htallone
%
% These macros may be freely transmitted, reproduced, or modified
% provided that this notice is left intact.
% 参考了《控制理论与应用》提供的LATEX模板 http://jcta.alljournals.ac.cn/uploadfile/cta_cn/20170419/kzllyy%20template20170419-2.9.zip
% BHOSC BUAAthesis https://github.com/BHOSC/BUAAthesis/
% 航空学报 http://hkxb.buaa.edu.cn/UserFiles/File/plate-2017-07-20(1).doc
% 在JBUAA模板上改的
%中文latax模版
\NeedsTeXFormat{LaTeX2e}[2007/10/19]
\ProvidesClass{aaas}
[2017/07/07 v0.1
The LaTeX template for Acta Aeronautica et Astronautica Sinica]
\typeout{Document Class `aaas' v0.1 by Htallone (2018/04)}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexart}}
\ProcessOptions\relax
% 引用ctexbook及基本设置
\LoadClass[twocolumn,twoside,a4paper,UTF8]{ctexart}
% \documentclass[10.5pt,onecolumn,twoside,a4paper,UTF8]{ctexart} %article
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% packages
% 这部分声明需要用到的包
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\usepackage{amsmath,amsfonts,amssymb,graphicx} % EPS 图片支持
\usepackage{subfigure} % 使用子图形
\usepackage{indentfirst} % 中文段落首行缩进
\usepackage{bm} % 公式中的粗体字符(用命令\boldsymbol)
% \usepackage{multicol} % 正文双栏
\usepackage{indentfirst} % 中文首段缩进
\usepackage{abstract} % 2栏文档,一栏摘要及关键字宏包
\usepackage{amsthm} % 使用定理
\usepackage{booktabs} % 使用表格
\usepackage{siunitx}
\usepackage{tikz}
\usepackage{titlesec}
\usepackage{times}
\usepackage{wasysym}
\usepackage{pifont}
\usepackage[sort]{cite}
\usepackage{ccaption}
\usepackage{float}
\usepackage{calc}
\usetikzlibrary{calc}
\usepackage{environ}
% \usepackage{bigstrut}
% \setlength\bigstrutjot{3pt}
%\def\citedash{$\sim$} % for creating cites like [3,4],[7~10]
%\renewcommand{\theequation}{\thesection.\arabic{equation}}(公式按节编号)
% \usepackage[scheme=plain]{ctex}
\setmainfont{Times New Roman}
\setCJKfamilyfont{hwxingkai}{STXingkai}
\newcommand{\hwxingkai}{\CJKfamily{hwxingkai}}
\usepackage{xeCJK}
% \setCJKmainfont[BoldFont=SimHei]{SimSun}
\setCJKfamilyfont{hei}{SimHei}
\setCJKfamilyfont{kai}{KaiTi}
\setCJKfamilyfont{fang}{FangSong}
\newcommand{\hei}{\CJKfamily{hei}}
\newcommand{\kai}{\CJKfamily{kai}}
\newcommand{\fang}{\CJKfamily{fang}}
\setCJKfamilyfont{simsong}{SimSun}
\newcommand{\simsong}{\CJKfamily{simsong}}
\newfontfamily\CalibriFont{Calibri}
\newfontfamily\TimesNMFont{Times New Roman}
\newfontfamily\ArialFont{Arial}
\newcommand{\erhao}{\fontsize{22pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\xiaoerhao}{\fontsize{20pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\sanhao}{\fontsize{16pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\xiaosihao}{\fontsize{12pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\wuhao}{\fontsize{10.5pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\xiaowuhao}{\fontsize{9pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\liuhao}{\fontsize{7.875pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\myxiaoliuhao}{\fontsize{6.5pt}{\baselineskip}\selectfont} % 字号设置
\newcommand{\qihao}{\fontsize{5.25pt}{\baselineskip}\selectfont} % 字号设置
\renewcommand{\tablename}{表}
\renewcommand{\figurename}{图}
\captiondelim{~~}
\captionnamefont{\xiaowuhao}
\captiontitlefont{\xiaowuhao}
\setlength{\abovecaptionskip}{0pt}
\setlength{\belowcaptionskip}{0pt}
% \precaption{\vspace{-1em}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lengths
% 下面的命令重定义页面边距,使其符合中文刊物习惯。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lettrine}
\setlength{\parindent}{2em}
\setlength{\voffset}{-4mm}
\setlength{\parskip}{1pt}
% \setlength{\arraycolsep}{1pt}
\renewcommand{\baselinestretch}{1.11} %定义行间距1.15
\setcounter{page}{1} \makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{1.5ex }%
{1.5ex}%
{\normalfont\xiaosihao}}
\renewcommand\subsection{\@startsection {subsection}{1}{\z@}%
{-1pt }%
{1pt}%
{\normalfont\bfseries\hei\wuhao}}
\renewcommand\subsubsection{\@startsection {subsubsection}{1}{\z@}%
{-1pt }%
{1pt}%
{\normalfont\wuhao}}
\renewcommand{\CJKglue}{\hskip -0.4pt plus 5.5\baselineskip}
%% 节编号字体为\normalfont,取消黑体
\makeatletter % see, e.g., p. 26 of "The LaTeX Companion"
\def\@seccntformat#1{\@ifundefined{#1@cntformat}%
{\csname the#1\endcsname\quad}% default setting
{\csname #1@cntformat\endcsname}% individual control
}
\def\section@cntformat{\normalfont{\thesection}\quad}
\makeatother
\makeatletter % see, e.g., p. 26 of "The LaTeX Companion"
\def\@subseccntformat#1{\@ifundefined{#1@cntformat}%
{\csname the#1\endcsname\quad}% default setting
{\csname #1@cntformat\endcsname}% individual control
}
\def\subsection@cntformat{\normalfont{\thesubsection}\quad}
\makeatother
\makeatletter % see, e.g., p. 26 of "The LaTeX Companion"
\def\@subsubseccntformat#1{\@ifundefined{#1@cntformat}%
{\csname the#1\endcsname\quad}% default setting
{\csname #1@cntformat\endcsname}% individual control
}
\def\subsubsection@cntformat{\normalfont{\thesubsubsection}\quad}
\makeatother
\usepackage{geometry}
\newgeometry{
top=33.5mm, bottom=31.5mm, left=22mm, right=22mm,
headsep=5mm, headheight=10mm, footskip=10mm,
}
\savegeometry{mastergeometry}
\loadgeometry{mastergeometry}
\setlength{\columnsep}{9mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\parskip}{1pt} \allowdisplaybreaks \makeatother
\newtheoremstyle{mystyle}{3pt}{3pt}{}{\parindent}{\bfseries}{}{5mm}{}
\theoremstyle{mystyle}
\newtheorem{Cor}{\normalsize{{\CJKfamily{hei}推论}}}
\newtheorem{Thm}{\normalsize{{\CJKfamily{hei}定理}}}
\newtheorem{Site}{\normalsize{{\CJKfamily{hei}引理}}}
\newtheorem{Def}{\normalsize{{\CJKfamily{hei}定义}}}
\newtheorem{Rem}{\normalsize{{\CJKfamily{hei}注}}}
\newtheorem{Exa}{\normalsize{{\CJKfamily{hei}例}}}
\newtheorem{Ste}{\normalsize{{\CJKfamily{hei}步骤}}}
\newtheorem{Sup}{\normalsize{{\CJKfamily{hei}假设}}}
\newtheoremstyle{citing}{3pt}{3pt}{}{}{\bfseries}{.}{.5em}{\thmnote{#3}}
\theoremstyle{citing}\newtheorem*{citedthm}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\diag}{{\rm diag}}
\newcommand{\rank}{{\rm rank}}
\newcommand{\tr}{{\rm tr}}
\newcommand{\sign}{{\rm sign}}
\newcommand{\sgn}{{\rm sgn}}
\newcommand{\Proj}{{\rm Proj}}
\makeatletter
\renewcommand{\proofname}{\normalsize{{\CJKfamily{hei}证}}}
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}%
\normalfont \topsep.1\p@\@plus.1\p@ \labelsep0em\relax
\trivlist
\item[\hskip 2.2em
\bfseries
#1]\hskip .5em\ignorespaces
}{%
\endtrivlist\@endpefalse
} \makeatother
\newcommand{\positiontextbox}[4][]{%
\begin{tikzpicture}[remember picture,overlay]
% \draw[step=0.5,gray!80!white] (current page.north west) grid (current page.south east); % For controlling
\node[inner sep=0pt,right,align=left, #1] at ($(current page.north west) + (#2,-#3)$) {#4};
\end{tikzpicture}%
}
\NewEnviron{CAbstractAAAS}{%
\vspace{-2em}
\begin{center}
\parbox{\textwidth}{
\wuhao\setlength{\parindent}{0em}
\newlength{\somelength}
\settowidth{\somelength}{中图分类号}
{\hei\xiaowuhao \makebox[\widthof{关键词}][s]{摘 要}\textbf{:}} %% 摘要 和 中图分类号 等宽设置 \quad 或者 \hphantom{键词} \phantom{键词} 或者 \makebox
{\xiaowuhao
\BODY
\vspace{0.1cm}
}
{\hei\xiaowuhao \makebox[\widthof{关键词}][s]{关键词}\textbf{:}} \xiaowuhao \aaasCKeyword \vspace{0.1cm}
{\hei\xiaowuhao 中图分类号\textbf{:}} {\xiaowuhao \aaasCLCNo} \qquad { \hei\xiaowuhao 文献标识码\textbf{:}} \xiaowuhao \aaasDcode \qquad \qquad {\hei\xiaowuhao 文章编号\textbf{:}} \aaasPaperNo
\vspace*{0.8cm}}
\end{center}
}
\def\aaasCLCNo{}
\newcommand{\CLCNo}[1]{%
\def\aaasCLCNo{#1}
}
\def\aaasCKeyword{}
\newcommand{\CKeyword}[1]{%
\def\aaasCKeyword{#1}
}
\def\aaasDcode{}
\newcommand{\Dcode}[1]{%
\def\aaasDcode{#1}
}
\def\aaasPaperNo{}
\newcommand{\PaperNo}[1]{%
\def\aaasPaperNo{#1}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%define the format like [1-2]
\makeatletter
\def\@compress@cite#1{% % This is executed for each number
\advance\@tempcnta\@ne % Now \@tempcnta is one more than the previous number
\ifnum #1=\@tempcnta % Number follows previous--hold on to it
\def\@h@ld{\citedash \citeform{#1}}%
\else % non-successor -- dump what's held and do this one
\@h@ld \@citea \citeform{#1}%
\let\@h@ld\@empty
\fi \@tempcnta#1\let\@citea\citepunct
} \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\citedash}{-}
\newcommand{\citeAAAS}[1]{%
\!\textsuperscript{\cite{#1}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 首页页眉页脚定义
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fancypagestyle{plain}{ \fancyhf{}\vspace{10pt}
\lhead{\vspace{0.44cm}
{
{\CJKfamily{hei}\xiaowuhao 航\ \ 空\ \ 学\ \ 报}\\
{{\ArialFont \xiaowuhao Acta Aeronautica et Astronautica Sinica}}
}
}
\chead{}
\rhead{{\ArialFont \xiaowuhao Jan. 25 2017 Vol.38 No.X:}\\
{\ArialFont \xiaowuhao ISSN 1000-6893 CN 11-1929/V}}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrule}{%
\hrule height0.5pt width \headwidth \vskip0.5pt%
\hrule height0.5pt width \headwidth \vskip-2pt}}
%\renewcommand{\footrulewidth}{0.4pt}
%\setlength{\hoffset}{0.1pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\renewcommand{\headrule}{%
\hrule height0.5pt width \headwidth \vskip1pt%
\hrule height0.5pt width \headwidth \vskip-2pt}
\fancyhf{}
% \fancyhead[RE]{{\footnotesize 第~xx~卷~~~}}
\fancyhead[CE,CO]{{\CJKfamily{hei}\xiaowuhao 航\quad 空\quad 学\quad 报}}
\fancyhead[LE,RO]{}
% \fancyhead[LO]{{\footnotesize ~~~第~x~期}}
\lfoot{}
\cfoot{~~~\xiaowuhao XXXXXX-\thepage ~~~}
\rfoot{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 标题居左 https://tex.stackexchange.com/questions/282514/title-author-and-email-flush-left-alignment
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@maketitle}{\begin{center}}{\begin{flushleft}}{}{}
\patchcmd{\@maketitle}{\begin{tabular}[t]{c}}{\begin{tabular}[t]{@{}l}}{}{}
\patchcmd{\@maketitle}{\end{center}}{\end{flushleft}}{}{}
\makeatother