├── .github
└── workflows
│ └── build.yml
├── .gitignore
├── .travis.yml
├── Makefile
├── README.md
├── examples
├── Makefile
├── my-proposal.bib
└── my-proposal.tex
└── mynsfc.dtx
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: Build mynsfc package
2 | on: [push]
3 | jobs:
4 | build:
5 | runs-on: ubuntu-latest
6 |
7 | steps:
8 | - name: Checkout Git repository
9 | uses: actions/checkout@v2
10 | - name: Build the package
11 | uses: docker://fredqi/texlive:mynsfc
12 | with:
13 | entrypoint: /bin/bash
14 | args: -c make
15 | - name: Check results
16 | run: |
17 | ls -lh mynsfc.pdf
18 | file mynsfc.pdf | grep -q 'PDF'
19 |
20 | build_container:
21 | runs-on: ubuntu-latest
22 | container: fredqi/texlive:mynsfc
23 | steps:
24 | - name: Checkout Git repository
25 | uses: actions/checkout@v2
26 | - name: Build the package
27 | run: make
28 | - name: Check results
29 | run: |
30 | ls -lh mynsfc.pdf
31 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Core latex/pdflatex auxiliary files:
2 | *.aux
3 | *.lof
4 | *.log
5 | *.lot
6 | *.fls
7 | *.out
8 | *.toc
9 |
10 | ## Intermediate documents:
11 | *.dvi
12 | *-converted-to.*
13 | # these rules might exclude image files for figures etc.
14 | # *.ps
15 | # *.eps
16 | # *.pdf
17 |
18 | ## Bibliography auxiliary files (bibtex/biblatex/biber):
19 | *.bbl
20 | *.bcf
21 | *.blg
22 | *-blx.aux
23 | *-blx.bib
24 | *.brf
25 | *.run.xml
26 |
27 | ## Build tool auxiliary files:
28 | *.fdb_latexmk
29 | *.synctex.gz
30 | *.synctex.gz(busy)
31 | *.pdfsync
32 |
33 | ## Package files:
34 | mynsfc.cls
35 | mynsfc.pdf
36 | mynsfc*.zip
37 | examples/mynsfc.cls
38 | examples/my-nsfc-proposal.pdf
39 |
40 | ## Package created files
41 | examples/my-proposal-contents.tex
42 |
43 | ## Auxiliary and intermediate files from other packages:
44 |
45 | # algorithms
46 | *.alg
47 | *.loa
48 |
49 | # amsthm
50 | *.thm
51 |
52 | # beamer
53 | *.nav
54 | *.snm
55 | *.vrb
56 |
57 | #(e)ledmac/(e)ledpar
58 | *.end
59 | *.[1-9]
60 | *.[1-9][0-9]
61 | *.[1-9][0-9][0-9]
62 | *.[1-9]R
63 | *.[1-9][0-9]R
64 | *.[1-9][0-9][0-9]R
65 | *.eledsec[1-9]
66 | *.eledsec[1-9]R
67 | *.eledsec[1-9][0-9]
68 | *.eledsec[1-9][0-9]R
69 | *.eledsec[1-9][0-9][0-9]
70 | *.eledsec[1-9][0-9][0-9]R
71 |
72 | # glossaries
73 | *.acn
74 | *.acr
75 | *.glg
76 | *.glo
77 | *.gls
78 |
79 | # hyperref
80 | *.brf
81 |
82 | # listings
83 | *.lol
84 |
85 | # makeidx
86 | *.idx
87 | *.ilg
88 | *.ind
89 | *.ist
90 |
91 | # minitoc
92 | *.maf
93 | *.mtc
94 | *.mtc0
95 |
96 | # minted
97 | *.pyg
98 |
99 | # morewrites
100 | *.mw
101 |
102 | # nomencl
103 | *.nlo
104 |
105 | # sagetex
106 | *.sagetex.sage
107 | *.sagetex.py
108 | *.sagetex.scmd
109 |
110 | # sympy
111 | *.sout
112 | *.sympy
113 | sympy-plots-for-*.tex/
114 |
115 | # todonotes
116 | *.tdo
117 |
118 | # xindy
119 | *.xdy
120 |
121 | auto/
122 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: ruby
2 | os: linux
3 | sudo: required
4 | services:
5 | - docker
6 | before_install:
7 | - docker pull fredqi/texlive
8 | # - docker build -t fredqi/texlive -f .docker/Dockerfile .
9 | before_script:
10 | - docker create --name=texlive -v `pwd`:/mynsfc -w /mynsfc -it fredqi/texlive
11 | - docker start texlive
12 | script:
13 | - docker exec texlive bash -c "make distclean && make zip"
14 | after_script:
15 | - docker stop texlive && docker rm $(docker ps -aq)
16 | notifications:
17 | email: false
18 | slack: camerart:mf4rkoPcm628vBgvlbOk8zry
19 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | NAME = mynsfc
2 | EGDIR = examples
3 | EGFN = my-proposal
4 | SHELL = bash
5 | LATEX = xelatex
6 | BIB = biber
7 | PWD = $(shell pwd)
8 | TEMP := $(shell mktemp -u -d -t dtxgen.XXXXXXXXXX)
9 | TDIR = $(TEMP)/$(NAME)
10 | VERS = $(shell ltxfileinfo -v $(NAME).dtx)
11 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
12 | UTREE = $(shell kpsewhich --var-value TEXMFHOME)
13 | CLEXT = aux bbl bcf blg fls glo gls hd idx ilg ind ins log out run.xml
14 | all: $(NAME).pdf clean
15 | $(MAKE) -C examples all
16 | $(NAME).pdf: $(NAME).dtx
17 | $(LATEX) -shell-escape -recorder -interaction=batchmode $(NAME).dtx > /dev/null
18 | $(BIB) $(NAME).bcf > /dev/null
19 | if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
20 | if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
21 | $(LATEX) --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
22 | $(LATEX) --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
23 | .PHONY: $(CLEXT) clean distclean inst install zip
24 | .SILENT:$(CLEXT)
25 | $(CLEXT):
26 | $(RM) $(NAME).$@
27 | clean: $(CLEXT)
28 | $(MAKE) -C examples clean
29 | distclean: clean
30 | $(RM) $(NAME).{pdf,cls}
31 | $(MAKE) -C examples distclean
32 | inst: all
33 | mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
34 | cp $(NAME).{dtx,cls,pdf} $(UTREE)/source/latex/$(NAME)
35 | cp $(EGDIR)/$(EGFN).{tex,bib,pdf} $(LOCAL)/doc/latex/
36 | cp $(EGDIR)/$(EGFN)-contents.tex $(LOCAL)/doc/latex/$(EGFN)-contents.tex
37 | install: all
38 | sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(NAME)
39 | sudo cp $(NAME).{dtx,cls,pdf} $(LOCAL)/source/latex/$(NAME)
40 | sudo cp $(EGDIR)/$(EGFN).{tex,bib,pdf} $(LOCAL)/doc/latex/$(EGFN).tex
41 | sudo cp $(EGDIR)/$(EGFN)-contents.tex $(LOCAL)/doc/latex/$(EGFN)-contents.tex
42 | zip: all
43 | mkdir -p $(TEMP)/{tex,source,doc}/xelatex/$(NAME)
44 | cp $(NAME).cls $(TEMP)/tex/xelatex/$(NAME)/
45 | cp $(NAME).dtx $(TEMP)/source/xelatex/$(NAME)/
46 | cp $(NAME).pdf $(TEMP)/doc/xelatex/$(NAME)/
47 | cp $(EGDIR)/$(EGFN).{tex,bib,pdf} $(TEMP)/doc/xelatex/$(NAME)/
48 | cp $(EGDIR)/$(EGFN)-contents.tex $(TEMP)/doc/xelatex/$(NAME)/
49 | cd $(TEMP); zip -Drq $(TEMP)/$(NAME).tds.zip tex source doc
50 | mkdir -p $(TDIR)
51 | cp $(NAME).{pdf,dtx} README.md $(TDIR)
52 | cd $(TEMP); zip -Drq $(PWD)/$(NAME)-$(VERS).zip $(NAME) $(NAME).tds.zip
53 | $(RM) -r $(TEMP)
54 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | ----
3 | # mynsfc
4 |
5 | My XeLaTeX template for writing NSFC proposals.
6 |
7 | ----------------------------------------------------------------
8 | > mynsfc --- A XeLaTeX template for writing NSFC proposals.
9 | > Author: Fei Qi
10 | > E-mail: fred.qi@ieee.org
11 | > License: Released under the LaTeX Project Public License v1.3c or later
12 | > See: http://www.latex-project.org/lppl.txt
13 | ----------------------------------------------------------------
14 |
15 |
16 | # 日志
17 |
18 | - 20210818 本年度自然科学基金今日放榜,本人面上项目有幸中选。特将申请基金所使用
19 | 的 XeLaTeX 模板共享,以方便其他希望使用 XeLaTeX/LaTeX 的申请人。
20 |
21 | - 20150818 本年度自然科学基金今日放榜,本人面上项目有幸中选。特将申请基金所使用
22 | 的 XeLaTeX 模板共享,以方便其他希望使用 XeLaTeX/LaTeX 的申请人。
23 |
--------------------------------------------------------------------------------
/examples/Makefile:
--------------------------------------------------------------------------------
1 | NAME = my-proposal
2 | BIBTEX = biber
3 | LATEX = xelatex
4 | CLEXT = aux bbl bcf blg fls log out run.xml toc
5 | all: $(NAME).pdf clean
6 | $(NAME).pdf: $(NAME).tex $(NAME).bib ../mynsfc.cls
7 | test -L mynsfc.cls || ln -s ../mynsfc.cls .
8 | $(LATEX) -shell-escape -recorder -interaction=batchmode $(NAME).tex > /dev/null
9 | $(BIBTEX) $(NAME).bcf >/dev/null
10 | $(LATEX) -recorder -interaction=nonstopmode $(NAME).tex > /dev/null
11 | $(LATEX) -recorder -interaction=nonstopmode $(NAME).tex > /dev/null
12 | .PHONY: clean distclean $(CLEXT)
13 | .SILENT:$(CLEXT)
14 | $(CLEXT):
15 | $(RM) $(NAME).$@
16 | clean: $(CLEXT)
17 | distclean: clean
18 | $(RM) $(NAME).pdf
19 | $(RM) mynsfc.cls $(NAME)-contents.tex
20 |
--------------------------------------------------------------------------------
/examples/my-proposal.bib:
--------------------------------------------------------------------------------
1 | @STRING{IEEE_J_PAMI = "{IEEE} Trans. Pattern Anal. Mach. Intell."}
2 |
3 | @article{bengio_representation_2013,
4 | title = "Representation Learning: A Review and New Perspectives",
5 | author = "Bengio, Y. and Courville, A. and Vincent, P.",
6 | volume = "35",
7 | number = "8",
8 | pages = "1798--1828",
9 | journal = IEEE_J_PAMI,
10 | year = "2013",
11 | doi = "10.1109/TPAMI.2013.50",
12 | }
13 |
14 | @article{xia_saliency_2015,
15 | author = "Xia, Chen and Qi, Fei and Shi, Guangming and Wang, Pengjin",
16 | author+an = {2=self;2:family=corr},
17 | title = "Nonlocal Center-Surround Reconstruction-based Bottom-Up Saliency Estimation",
18 | journal = "{Pattern Recognition}",
19 | doi = "10.1016/j.patcog.2014.10.007",
20 | month = "4",
21 | number = "4",
22 | volume = "48",
23 | year = "2015",
24 | pages = "1337--1348"
25 | }
26 |
--------------------------------------------------------------------------------
/examples/my-proposal.tex:
--------------------------------------------------------------------------------
1 | \documentclass[boldtoc]{mynsfc}
2 |
3 | \addbibresource{my-proposal.bib}
4 |
5 | \title{报告正文}
6 | \author{齐飞}
7 |
8 | \begin{document}
9 |
10 | \thispagestyle{empty}
11 |
12 | %% 大字体显示“报告正文”字样
13 | \maketitle
14 |
15 | \input{my-proposal-contents.tex}
16 |
17 | \end{document}
18 |
--------------------------------------------------------------------------------
/mynsfc.dtx:
--------------------------------------------------------------------------------
1 | % \iffalse meta-comment
2 | %<*internal>
3 | \def\nameofplainTeX{plain}
4 | \ifx\fmtname\nameofplainTeX\else
5 | \expandafter\begingroup
6 | \fi
7 | %
8 | %<*install>
9 | \input docstrip.tex
10 | \keepsilent
11 | \askforoverwritefalse
12 | \preamble
13 | ----------------------------------------------------------------
14 | mynsfc --- A XeLaTeX template for writing the main body of NSFC proposals.
15 | Author: Fei Qi
16 | E-mail: fred.qi@ieee.org
17 | License: Released under the LaTeX Project Public License v1.3c or later
18 | See: http://www.latex-project.org/lppl.txt
19 | ----------------------------------------------------------------
20 | \endpreamble
21 | \postamble
22 |
23 | Copyright (C) 2015-2021 by Fei Qi
24 |
25 | This work may be distributed and/or modified under the
26 | conditions of the LaTeX Project Public License (LPPL), either
27 | version 1.3c of this license or (at your option) any later
28 | version. The latest version of this license is in the file:
29 |
30 | http://www.latex-project.org/lppl.txt
31 |
32 | This work is "maintained" (as per LPPL maintenance status) by
33 | Fei Qi.
34 |
35 | This work consists of the file mynsfc.dtx and a Makefile.
36 | Running "make" generates the derived files README, mynsfc.pdf and mynsfc.cls.
37 | Running "make inst" installs the files in the user's TeX tree.
38 | Running "make install" installs the files in the local TeX tree.
39 |
40 | \endpostamble
41 |
42 | \usedir{tex/latex/mynsfc}
43 | \generate{
44 | \file{\jobname.cls}{\from{\jobname.dtx}{class}}
45 | }
46 | \usedir{doc/latex/mynsfc}
47 | \nopreamble\nopostamble
48 | \generate{
49 | \file{examples/my-proposal-contents.tex}{\from{\jobname.dtx}{content}}
50 | }
51 | %
52 | %\endbatchfile
53 | %<*internal>
54 | \usedir{source/latex/mynsfc}
55 | \generate{
56 | \file{\jobname.ins}{\from{\jobname.dtx}{install}}
57 | }
58 | \nopreamble\nopostamble
59 | \ifx\fmtname\nameofplainTeX
60 | \expandafter\endbatchfile
61 | \else
62 | \expandafter\endgroup
63 | \fi
64 | %
65 | % \fi
66 | %
67 | % \iffalse
68 | %<*driver>
69 | \ProvidesFile{mynsfc.dtx}
70 | %
71 | %\NeedsTeXFormat{LaTeX2e}[1999/12/01]
72 | %\ProvidesClass{mynsfc}
73 | %<*class>
74 | [2020/08/18 v1.30 A XeLaTeX class for writing NSFC proposals.]
75 | %
76 | %<*driver>
77 | \documentclass[subfig,boldtoc]{mynsfc}
78 | \usepackage{doc}
79 | \makeatletter
80 | \def\glossary@prologue{\section{修改记录}{}}%
81 | \def\index@prologue{\section{索引}{}}%
82 | \makeatother
83 | \EnableCrossrefs
84 | \CodelineIndex
85 | \RecordChanges
86 | \bibliography{examples/my-proposal}
87 | \begin{document}
88 | \DocInput{\jobname.dtx}
89 | \end{document}
90 | %
91 | % \fi
92 | %
93 | % \GetFileInfo{\jobname.dtx}
94 | % \DoNotIndex{\newcommand,\newenvironment}
95 | %
96 | % \changes{v1.00}{2015/08/18}{First public release}
97 | % \changes{v1.01}{2016/07/11}{Improved command \texttt{maketitle}}
98 | % \changes{v1.01}{2016/07/11}{Added an option \texttt{arabicpart}}
99 | % \changes{v1.01}{2016/07/11}{Author highlight with \texttt{biblatex} newer than
100 | % 3.3 (2016-03-01)}
101 | % \changes{v1.01}{2016/09/05}{Added options \texttt{tocfont} and
102 | % \texttt{boldtoc} to select font on headings}
103 | % \changes{v1.01}{2016/09/05}{Using kvoptions to handle package options}
104 | % \changes{v1.01}{2016/09/05}{Added an option \texttt{toccolor} to show outline
105 | % in a given color specified by a HTML/CSS style hex code}
106 | % \changes{v1.20}{2018/08/05}{Changed to support Chinese based on the CTeX package.}
107 | % \changes{v1.21}{2018/08/22}{Using xelatex for the FakeBold feature.}
108 | % \changes{v1.22}{2019/04/07}{Added macros render author annotations with biblatex.}
109 | % \changes{v1.22}{2019/04/09}{Added biblatex string \texttt{patentcn}.}
110 | % \changes{v1.30}{2021/08/18}{Release based on a newly funded proposal.}
111 | %
112 | % \title{\textsf{mynsfc}---国家自然科学基金申请书正文模板\thanks{此文
113 | % 档描述的模板版本为 \fileversion, 最后修改日期为\filedate.} }
114 | % \author{Fred Qi\thanks{E-mail: fred.qi@ieee.org}}
115 | % \date{\filedate 发布}
116 | %
117 | % \maketitle
118 | %
119 | % \begin{abstract}
120 | % 用于自然基金申请书正文部分的撰写。
121 | % \end{abstract}
122 | %
123 | % \input{examples/my-proposal-contents.tex}
124 | %
125 | % \iffalse
126 | %<*content>
127 | %
128 | {\kaishu\zihao{4} 参照以下提纲撰写,要求内容翔实、清晰,层次分明,标题
129 | 突出。\cemph{请勿删除或改动下述提纲标题及括号中的文字。}}
130 |
131 | \part{立项依据与研究内容(建议8000字以下):}
132 | \label{part:background}
133 |
134 | \section{项目的立项依据}{(研究意义、国内外研究现状及发展动态分析,需
135 | 结合科学研究发展趋势来论述科学意义;或结合国民经济和社会发展中迫切需
136 | 要解决的关键科技问题来论述其应用前景。附主要参考文献目录);}
137 | \label{sec:background}
138 |
139 | \subsection{研究意义}
140 | \label{sec:motivation}
141 |
142 | 略。
143 |
144 | \subsection{国内外研究现状}
145 | \label{sec:review}
146 |
147 | 可以引用相关文献~\cite{bengio_representation_2013}对研究意义与国内外研究现状进行说明。
148 |
149 | \printbibliography[segment=\therefsegment,heading=reftype]
150 |
151 | \section{项目的研究内容、研究目标,以及拟解决的关键科学问题}{(此部分为重点阐述内容);}
152 | \label{sec:proposals}
153 |
154 | \subsection{研究内容}
155 |
156 | 略。
157 |
158 | \begin{figure}[h]
159 | \centering
160 |
161 | \caption{测试图表标题。}
162 | \label{fig:test}
163 | \end{figure}
164 |
165 | \begin{table}[h]
166 | \centering
167 | \begin{tabular}{cc}
168 | \hline
169 | 标题 & 内容 \\
170 | \hline
171 | 科目1 & 内容1 \\
172 | \hline
173 | \end{tabular}
174 | \caption{测试图表标题。}
175 | \label{tab:test}
176 | \end{table}
177 |
178 | \subsection{研究目标}
179 | \label{sec:goals}
180 |
181 | 略。
182 |
183 | \subsection{拟解决的关键科学问题}
184 |
185 | 略。
186 |
187 | \section{拟采取的研究方案及可行性分析}{(包括研究方法、技术路线、实验手段、关键技术等说明);}
188 | \label{sec:tech-feasibility}
189 |
190 | 略。
191 |
192 | \section{本项目的特色与创新之处;}{}
193 | \label{sec:innovations}
194 |
195 | 略。
196 |
197 | \section{年度研究计划及预期研究结果}{(包括拟组织的重要学术交流活动、国际合作与交流计划等)。}
198 | \label{sec:plans}
199 |
200 | 略。
201 |
202 | % \clearpage
203 |
204 | \part{研究基础与工作条件}
205 | \label{part:foundations}
206 |
207 | \section{研究基础}{(与本项目相关的研究工作积累和已取得的研究工作成绩);}
208 | \label{sec:foundatioins}
209 |
210 | \newrefsegment
211 |
212 | 申请人针对\textbf{某问题}进行了研究~\cite{xia_saliency_2015}。
213 |
214 | 在使用\texttt{biblatex} 3.4以上版本的情况下,建议使用
215 | \texttt{biblatex}提供数据标注功能。如第二个作者是自己,用粗体标记自己的姓
216 | 名;且为文章的通记作者,加上角标``*''进行标注。则仅需要在bibtex文
217 | 件的相应条目中增加以下标记:
218 | \begin{verbatim}
219 | author = "Xia, C and Qi, F and Shi, G and Wang, P",
220 | author+an = {2=self;2:family=corr},
221 | \end{verbatim}
222 |
223 | 需要强调的作者列表有三种形式,分别适用于不同版本的\texttt{biblatex}。
224 | \begin{description}
225 | \item[3.4+ (20160301)] 请使用\texttt{biblatex}中提供的数据标注(Data
226 | annotation)功能。
227 | \item[3.3 (20160301)] 由于姓名处理的宏更新,请使用哈希字符串列表指定需要强调
228 | 的作者。
229 | \begin{verbatim}
230 | \initauthors{{72b3cccfc646adeb1d6b20320b56fd7d}}
231 | \end{verbatim}
232 | \item[3.2- (20151228)] 使用旧式的姓名处理宏,使用下列形式的作者列表。
233 | \begin{verbatim}
234 | \forcsvlist{\listadd\boldnames}{{Qi, F\bibinitperiod}}
235 | \end{verbatim}
236 | \end{description}
237 | 其中命令\texttt{initauthors}中的所需要的姓名的哈希字符串可以
238 | 在Biber/bibtex 生成的文件\texttt{*.bbl} 中找到。
239 |
240 | \printbibliography[segment=\therefsegment,heading=cvtype,title={相关工作}]
241 |
242 | \section{工作条件}{(包括已具备的实验条件,尚缺少的实验条件和拟解决的
243 | 途径,包括利用国家实验室、国家重点实验室和部门重点实验室等研究基地的
244 | 计划与落实情况);}
245 | \label{sec:condition}
246 |
247 | 略。
248 |
249 | \section{正在承担的与本项目相关的科研项目情况}{(申请人和项目组主要参与
250 | 者正在承担的与本项目相关的科研项目情况,包括国家自然科学基金的项目和
251 | 国家其他科技计划项目,要注明项目的名称和编号、经费来源、起止年月、与
252 | 本项目的关系及负责的内容等);}
253 | \label{sec:projects}
254 |
255 | 略。
256 |
257 | \section{完成国家自然科学基金项目情况}{(对申请人负责的前一个已结题科学
258 | 基金项目(项目名称及批准号)完成情况、后续研究进展及与本申请项目的关
259 | 系加以详细说明。另附该已结题项目研究工作总结摘要(限500字)和相关成果
260 | 的详细目录)。}
261 | \label{sec:finished-project}
262 |
263 | \newrefsegment
264 |
265 | 略。
266 |
267 | \part{其他需要说明的问题}
268 | \label{cha:others}
269 |
270 | \section{}{申请人同年申请不同类型的国家自然科学基金项目情况(列明同年
271 | 申请的其他项目的项目类型、项目名称信息,并说明与本项目之间的区别与联
272 | 系)。}
273 |
274 | 无
275 |
276 | \section{}{具有高级专业技术职务(职称)的申请人或者主要参与者是否存在
277 | 同年申请或者参与申请国家自然科学基金项目的单位不一致的情况;如存在上
278 | 述情况,列明所涉及人员的姓名,申请或参与申请的其他项目的项目类型、项
279 | 目名称、单位名称、上述人员在该项目中是申请人还是参与者,并说明单位不
280 | 一致原因。}
281 |
282 | 无
283 |
284 | \section{}{具有高级专业技术职务(职称)的申请人或者主要参与者是否存在与
285 | 正在承担的国家自然科学基金项目的单位不一致的情况;如存在上述情况,列
286 | 明所涉及人员的姓名,正在承担项目的批准号、项目类型、项目名称、单位名
287 | 称、起止年月, 并说明单位不一致原因。}
288 |
289 | 无
290 |
291 | \section{}{其他。}
292 |
293 | 无
294 |
295 | 使用方法参见样例文件 \texttt{my-proposal.tex}。
296 |
297 | %
298 | % \fi
299 | %
300 | %\StopEventually{
301 | % \PrintChanges
302 | % \PrintIndex
303 | %}
304 | %
305 | % \part{附录}
306 | % \appendix
307 | % \section{实现}{}
308 | %
309 | %<*class>
310 | % \begin{macrocode}
311 | \ExecuteOptions{}
312 | \ProcessOptions*
313 | %% Options
314 | \RequirePackage{kvoptions}
315 | \DeclareBoolOption[false]{subfig}
316 | \DeclareBoolOption[false]{boldtoc}
317 | \DeclareStringOption[zhkai]{tocfont}
318 | \DeclareStringOption[0070c0]{toccolor}
319 | \ProcessKeyvalOptions*
320 | %% Load default class
321 | \LoadClass[a4paper,UTF8,fontset=fandol,zihao=-4]{ctexart}
322 | %\setmainfont{Times New Roman}
323 | \setCJKmainfont{FandolSong}[%
324 | Extension = .otf,
325 | UprightFont = *-Regular,
326 | BoldFont = *-Bold]
327 | \setCJKfamilyfont{zhkai}{FandolKai-Regular.otf}[AutoFakeBold=2]
328 | \RequirePackage[hmargin=1.25in,vmargin=1in]{geometry}
329 | \setlength{\parskip}{0pt \@plus2pt \@minus0pt}
330 | % \end{macrocode}
331 | %
332 | % \begin{macrocode}
333 | %% Load required packages
334 | \RequirePackage{titlesec}
335 | \RequirePackage{marvosym}
336 | \RequirePackage{amsmath,amssymb}
337 | \RequirePackage{paralist}
338 | \RequirePackage{graphicx}
339 | \ifmynsfc@subfig
340 | \RequirePackage[config]{subfig}
341 | \else
342 | \RequirePackage{caption,subcaption}
343 | \fi
344 | \RequirePackage{xcolor}
345 | \RequirePackage{calc}
346 | \RequirePackage{hyperref}
347 | \hypersetup{%
348 | breaklinks=true,
349 | colorlinks=true,
350 | allcolors=black,
351 | pdfpagelabels}
352 | \urlstyle{same}
353 | % \end{macrocode}
354 | % \begin{macrocode}
355 | %% Load and setup package biblatex
356 | \RequirePackage[backend=biber,
357 | doi=false,
358 | url=false,
359 | isbn=false,
360 | defernumbers=true,
361 | style=ieee]{biblatex}
362 |
363 | \setlength{\bibitemsep}{2pt}
364 | \appto{\bibfont}{\normalfont\zihao{5}\linespread{1}\selectfont}
365 | \defbibheading{reftype}[参考文献]{\subsection*{#1}}
366 | \defbibheading{cvtype}[\bibname]{\subsubsection*{#1}}
367 | \defbibfilter{conference}{type=inproceedings or type=incollection}
368 |
369 | \NewBibliographyString{patentcn}
370 |
371 | \DefineBibliographyStrings{english}{%
372 | and = {\&},
373 | patentcn = {中国发明专利\adddot},
374 | }
375 |
376 | \RequirePackage{xpatch}% or use http://tex.stackexchange.com/a/40705
377 |
378 | \@ifpackagelater{biblatex}{2016/05/10}
379 | {
380 | \renewcommand*{\mkbibnamegiven}[1]{%
381 | \ifitemannotation{self}{\textbf{#1}}{#1}}
382 | \renewcommand*{\mkbibnamefamily}[1]{%
383 | \ifitemannotation{self}{\textbf{#1}}{#1}%
384 | \ifpartannotation{family}{corr}{\textsuperscript{*}}{}}
385 | }
386 | {
387 | \@ifpackagelater{biblatex}{2016/03/01}
388 | {
389 | \newcommand*{\list@bold@authors}{}
390 | \newcommand{\initauthors}[1]{
391 | \renewcommand*{\list@bold@authors}{}
392 | \forcsvlist{\listadd\list@bold@authors}{#1}}
393 |
394 | \newboolean{bold}
395 | \renewcommand*{\mkbibnamefamily}[1]{\ifthenelse{\boolean{bold}}{\textbf{#1}}{#1}}
396 | \renewcommand*{\mkbibnamegiven}[1]{\ifthenelse{\boolean{bold}}{\textbf{#1}}{#1}}
397 |
398 | \newbibmacro*{name:bold}{%
399 | \setboolean{bold}{false}%
400 | \def\do##1{\iffieldequalstr{hash}{##1}{\setboolean{bold}{true}\listbreak}{}}%
401 | \dolistloop{\list@bold@authors}%
402 | }
403 |
404 | \xpretobibmacro{name:family}{\begingroup\usebibmacro{name:bold}}{}{}{}{}
405 | \xpretobibmacro{name:given-family}{\begingroup\usebibmacro{name:bold}}{}{}{}{}
406 | \xpretobibmacro{name:family-given}{\begingroup\usebibmacro{name:bold}}{}
407 | %\xpretobibmacro{name:delim}{\begingroup\normalfont}{}{}
408 |
409 | \xapptobibmacro{name:family}{\endgroup}{}{}{}{}
410 | \xapptobibmacro{name:given-family}{\endgroup}{}{}{}{}
411 | \xapptobibmacro{name:family-given}{\endgroup}{}{}{}{}
412 | % \xapptobibmacro{name:delim}{\endgroup}{}{}
413 | }
414 | {
415 | \newbibmacro*{name:bold}[2]{%
416 | \def\do##1{\ifstrequal{#1, #2}{##1}{\bfseries\listbreak}{}}%
417 | \dolistloop{\boldnames}}
418 | \newcommand*{\boldnames}{}
419 |
420 | \xpretobibmacro{name:last}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
421 | \xpretobibmacro{name:first-last}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
422 | \xpretobibmacro{name:last-first}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
423 | \xpretobibmacro{name:delim}{\begingroup\normalfont}{}{}
424 |
425 | \xapptobibmacro{name:last}{\endgroup}{}{}
426 | \xapptobibmacro{name:first-last}{\endgroup}{}{}
427 | \xapptobibmacro{name:last-first}{\endgroup}{}{}
428 | \xapptobibmacro{name:delim}{\endgroup}{}{}
429 | }
430 | }
431 | % \end{macrocode}
432 | %
433 | % \begin{macro}{\tocformat}
434 | % \begin{macrocode}
435 | \newcommand{\tocformat}{%
436 | \CJKfamily{\mynsfc@tocfont}%
437 | \color[HTML]{\mynsfc@toccolor}}
438 | % \end{macrocode}
439 | % \end{macro}
440 | % \begin{macrocode}
441 | % Define page styles
442 | \def\ps@mynsfc@empty{%
443 | \let\@oddhead\@empty%
444 | \let\@evenhead\@empty%
445 | \let\@oddfoot\@empty%
446 | \let\@evenfoot\@empty}
447 | % \end{macrocode}
448 | % \begin{macro}{\maketitle}
449 | % \begin{macrocode}
450 | \renewcommand{\maketitle}{%
451 | \begin{center}%
452 | \kaishu\zihao{3}\bfseries\@title%
453 | \end{center}}
454 | % \end{macrocode}
455 | % \end{macro}
456 | %
457 | % \begin{macro}{\part}
458 | % \begin{macrocode}
459 | \ctexset{
460 | part/name = {(,)},
461 | part/aftername = {},
462 | part/number = \chinese{part},
463 | part/format = \tocformat\bfseries\zihao{4},
464 | part/indent = 2em,
465 | }
466 | % \end{macrocode}
467 | % \end{macro}
468 | %
469 | % \begin{macro}{\section}
470 | % \begin{macrocode}
471 | \titleformat{\section}[block]{\tocformat\zihao{4}}
472 | {\bfseries\hskip2em\thesection{.}}{1ex}{}
473 | \titlespacing{\section}{0em}{4ex}{2ex}
474 | \let\oldsection\section
475 | \renewcommand{\section}[2]{\oldsection{\textbf{#1}{#2}}}
476 | \@addtoreset{section}{part}
477 | % \end{macrocode}
478 | % \end{macro}
479 | %
480 | % \begin{macro}{\subsection}
481 | % \begin{macrocode}
482 | \titleformat{\subsection}{\tocformat\bfseries\zihao{-4}}
483 | {\thesubsection{.}}{0.25em}{}
484 | \titlespacing{\subsection}{0em}{2ex}{1ex}
485 | % \end{macrocode}
486 | % \end{macro}
487 | %
488 | % \begin{macro}{\subsubsection}
489 | % \begin{macrocode}
490 | \renewcommand{\thesubsubsection}{(\arabic{subsubsection})}
491 | \titleformat{\subsubsection}{\CJKfamily{\mynsfc@tocfont}\bfseries\zihao{-4}}
492 | {\thesubsubsection}{0.25em}{}
493 | \titlespacing{\subsubsection}{0ex}{2ex}{1ex}
494 | \captionsetup{font=small}
495 | % \end{macrocode}
496 | % \end{macro}
497 | %
498 | % \begin{macro}{\cemph}
499 | % \begin{macrocode}
500 | \newcommand{\cemph}[1]{\textbf{\color[HTML]{\mynsfc@toccolor}#1}}
501 | % \end{macrocode}
502 | % \end{macro}
503 | %
504 | % \begin{macrocode}
505 | \let\mynsfc@begindocumenthook\@begindocumenthook
506 | \let\mynsfc@enddocumenthook\@enddocumenthook
507 | \def\AtBeginDocument{\g@addto@macro\mynsfc@begindocumenthook}
508 | \def\AtEndDocument{\g@addto@macro\mynsfc@enddocumenthook}
509 | \def\@begindocumenthook{\mynsfc@begindocumenthook}
510 | \def\@enddocumenthook{\mynsfc@enddocumenthook}
511 | \AtBeginDocument{\ps@mynsfc@empty}
512 | \endinput
513 | %
514 | % \end{macrocode}
515 | %\Finale
516 |
--------------------------------------------------------------------------------