forked from daijifeng001/NSFC-LaTex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsfc.sty
129 lines (94 loc) · 3.94 KB
/
nsfc.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
% -------------------------------------------------
% Modified from latex template of IEEE CVPR
% -------------------------------------------------
\RequirePackage{enumitem}
\setenumerate[1]{itemsep=0pt,parsep=0pt,topsep=5pt}
\setitemize[1]{itemsep=0pt,parsep=0pt,topsep=5pt}
\RequirePackage{times}
% \RequirePackage{newtxtext}
% \RequirePackage{newtxmath}
\usepackage{indentfirst}
\RequirePackage{graphicx}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{overpic}
\RequirePackage{xcolor}
\RequirePackage[pagebackref=false,breaklinks=true,colorlinks=true,bookmarks=false,linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
\usepackage{amsmath, bm}
% \RequirePackage{bm}
% \DeclareRobustCommand\bfseries{\not@math@alphabet\bfseries\mathbf\fontseries\bfdefault\selectfont\boldmath}
\RequirePackage[a4paper, left = 3.0cm, right = 3.0cm, top = 2.54cm, bottom = 2.54cm]{geometry}
\pagestyle{empty}
\thispagestyle{empty}
\definecolor{MSBlue}{RGB}{0,112,192}
\newcommand\nsfctitlesize{\fontsize{16pt}{16pt}\selectfont}
\newcommand\nsfcheadsize{\fontsize{14pt}{14pt}\selectfont}
\newcommand{\nsfClr}[1]{\textcolor[rgb]{0.0,0.44,0.753}{#1}}
\newcommand{\alert}[1]{\nsfClr{\emph{#1}}}
\newcommand{\ContentDes}[1]{
\setcounter{section}{0}
{\vspace*{8pt}} \noindent \quad\;\, {\kaishu \nsfcheadsize \bfseries{{\alert{#1}}} } % align word
}
%\setlength{\parskip}{0.5\baselineskip}
\def\@maketitle{ %\newpage \null \vskip .01in
\begin{center}
\vspace*{-1.4em} % title down
{\nsfctitlesize\kaishu\bfseries{\@title}\par}
\end{center}
}
%\RequirePackage{titlesec}
%\titleformat*{\section}{\bfseries \large \color{MSBlue}} %\itshape
%\newcommand{\NsfcSectionDes}[1]{\vspace{-15pt} \alert{\large (#1);}}
%\section{项目的立项依据}
%\NsfcSectionDes{
%研究意义、国内外研究现状及发展动态分析,需结合科学研究发展趋势来论述科学意义;
%或结合国民经济和社会发展中迫切需要解决的关键科技问题来论述其应用前景。
%附主要参考文献目录}
\newcommand{\NsfcSection}[3]{{\nsfcheadsize
\setcounter{section}{#1}
\setcounter{subsection}{0}
{\vspace*{9pt}} {$\bm{\nsfClr{#1.}}$ }{\kaishu \nsfcheadsize \bfseries{\alert{#2}}}{\kaishu \nsfcheadsize \alert{#3}} % align word
}}
% \newcommand{\NsfcSection}[3]{{\nsfcheadsize
% \setcounter{section}{#1}
% \setcounter{subsection}{0}
% {\vspace*{9pt}} \nsfClr{{\kaishu #1}. }{\kaishu \nsfcheadsize \bfseries{\alert{#2}}}{\kaishu \nsfcheadsize \alert{#3}} % align word
% }}
\renewcommand\refname{
\textcolor{black}{\hskip 2pt \emph{\large 参考文献:}}
}
\RequirePackage{cite}
\bibliographystyle{unsrt}
\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}
\RequirePackage[numbers,sort&compress]{natbib}
\setlength{\bibsep}{0.5ex}
\def\cvprsubsection{\@startsection {subsection}{2}{\z@}
{11pt plus 2pt minus 2pt}{6pt} {\bf}}
\def\cvprssubsect#1{\cvprsubsection*{\large #1}}
\def\cvprsubsect#1{\cvprsubsection{\hskip -1em.~#1}}
\def\subsection{\@ifstar\cvprssubsect\cvprsubsect}
\linespread{1.5}
\RequirePackage{caption}
\captionsetup[table]{font={stretch=1.0}}
\captionsetup[figure]{font={stretch=1.0}}
%%% Make figure placement a little more predictable.
% We trust the user to move figures if this results
% in ugliness.
% Minimize bad page breaks at figures
\renewcommand{\textfraction}{0.01}
\renewcommand{\floatpagefraction}{0.99}
\renewcommand{\topfraction}{0.99}
\renewcommand{\bottomfraction}{0.99}
\renewcommand{\dblfloatpagefraction}{0.99}
\renewcommand{\dbltopfraction}{0.99}
\setcounter{totalnumber}{99}
\setcounter{topnumber}{99}
\setcounter{bottomnumber}{99}
% ---------------------------------------------------------------
\newcommand{\figref}[1]{图\ref{#1}}
\newcommand{\tabref}[1]{表\ref{#1}}
\newcommand{\equref}[1]{式\ref{#1}}
\newcommand{\secref}[1]{第\ref{#1}节}
\RequirePackage{silence}
\WarningFilter{latexfont}{Font shape `}
\WarningFilter{latexfont}{Some font shapes were not available,}