forked from YimianDai/iNSFC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsfc.sty
78 lines (59 loc) · 2.38 KB
/
insfc.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
% -------------------------------------------------
% Another NSFC LaTeX template.
% Latest version: https://github.com/YimianDai/NSFC-LaTeX
% Latest document: http://lowrank.science/NSFC-LaTeX/
% Yimian Dai, Feb. 2017. Questions? [email protected] ;
%
% Thank Prof. Mingming Chen for his pioneer work.
% http://bbs.ctex.org/forum.php?mod=viewthread&tid=153098&extra=page%3D1
% -------------------------------------------------
% Cite mark [1] on the top right
% \newcommand{\citetop}[1]{\textsuperscript{\cite{#1}}}
% enumitem command
% \setlength{\parskip}{0.5\baselineskip}
% xcolor command
\definecolor{NsfcBlue}{RGB}{0, 112, 192}
% setspace command
% \setstretch{1.5} % 22 bp / 14 pt = 1.571
% For bule regular 14 bp NSFC words
\newcommand{\NsfcNote}[1]{\textcolor{NsfcBlue}{{\zihao{4}{{\kaishu #1}}}}}
\newcommand{\alert}[1]{\textcolor{NsfcBlue}{{\zihao{4}{{\bfseries \kaishu #1}}}}}
% For the chapter name like (一)立项依据与研究内容(4000-8000字)
\newcommand{\NsfcChapter}[2]{
\begingroup
\setcounter{section}{0}
% \setlength{\parskip}{0.5\baselineskip}
% For xelatex
\setlength{\baselineskip}{22bp}
\indent {\bfseries \NsfcNote{#1}}\NsfcNote{\setmainfont{KaiTi}#2} \vspace{9bp}%
% For pdflatex
% \indent {\bfseries \NsfcNote{#1}}\NsfcNote{#2} %
\endgroup
}
% For the section name like 2.项目的研究内容、研究目标,以及拟解决的关键科学问题(此部分为重点阐述内容);
\newcommand{\NsfcSection}[3]{
\setcounter{section}{#1}
\setcounter{subsection}{0}
% For xelatex
\indent \NsfcNote{\setmainfont{KaiTi} #1.}{\bfseries\NsfcNote{#2}}\NsfcNote{#3}%
% For pdflatex
% \indent \NsfcNote{#1.}{\bfseries\NsfcNote{#2}}\NsfcNote{#3} %
}
% \renewcommand{\maketitle}{
% \begingroup
% \begin{center}
% \setlength{\baselineskip}{22bp}
% \zihao{2} \bfseries \@title \vspace{0.5\baselineskip}
% \end{center}
% \endgroup
% }
\renewcommand\refname{
\textcolor{black}{\hskip 2pt \zihao{-4}\songti{参考文献}}
}
% \setlength{\baselineskip}{22pt}
% Prof. Mingming Chen's definition on subsection
\def\cvprsubsection{\@startsection {subsection}{2}{\z@}
{11pt plus 2pt minus 2pt}{6pt} {\indent \bfseries \songti}}
\def\cvprssubsect#1{\cvprsubsection*{#1}}
\def\cvprsubsect#1{\cvprsubsection{\hskip -1em.~#1 \vspace{-0.2em}}}
\def\subsection{\@ifstar\cvprssubsect\cvprsubsect}