Skip to content

Commit

Permalink
支持国内外研究现状引用参考文献
Browse files Browse the repository at this point in the history
  • Loading branch information
note286 committed Jan 1, 2022
1 parent bd8bee1 commit 14ca53a
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,51 @@ xdupgtp-Xidian University Postgraduate Thesis Proposal

此外,在`examples`中已内置对应学位类型的`.tex`文件,用户可以将`xdupgtp.tex`中所有文件内容替换为相应的`xdupgtp-*.tex`文件内容,避免手动配置的麻烦。

## 参考文献引用

在开题报告表中,一般仅国内外研究现状处会出现参考文献引用,因此用户在撰写国内外研究现状时可以直接引用参考文献,对应的参考文献列表会自动出现在国内外研究现状后,无需用户干预,例如:

```latex
测试引用\cite{ChangHTD19,WangZSS21,GongL21}是否正常。
```

已添加部分常用类型参考文献条目样例至`xdupgtp.bib`,用户可以参考使用,需要注意的是,不要轻易使用分组即`{}`,尤其是`author`字段。关于样式标准请参考[参考文献条目样式](#参考文献条目样式),用户可以自行下载相应标准查看示例。用户可以使用[dblp](https://dblp.org/)生成的bib条目,[百度学术](https://xueshu.baidu.com/)[Google Scholar](https://scholar.google.com.hk/)导出的bib文件不是很规范,经常有很大问题,感兴趣的可以去[BibTeX format explained](https://www.bibtex.com/g/bibtex-format/)了解bib文件的合法格式,遇到[dblp](https://dblp.org/)没有的条目,可以手动整理。

[btxdoc](https://mirrors.ustc.edu.cn/CTAN/biblio/bibtex/base/btxdoc.pdf)文档中第3.1章节指出:

> `article`: An article from a journal or magazine. **Required fields**: author, title, journal, year. **Optional fields**: volume, number, pages, month, note.
>
> `book`: A book with an explicit publisher. **Required fields**: author or editor, title, publisher, year. **Optional fields**: volume or number, series, address, edition, month, note.
>
> `booklet`: A work that is printed and bound, but without a named publisher or sponsoring institution. Required field: title. **Optional fields**: author, howpublished, address, month, year, note.
>
> `conference`: The same as INPROCEEDINGS, included for Scribe compatibility.
>
> `inbook`: A part of a book, which may be a chapter (or section or whatever) and/or a range of pages. **Required fields**: author or editor, title, chapter and/or pages, publisher, year. **Optional fields**: volume or number, series, type, address, edition, month, note.
>
> `incollection`: A part of a book having its own title. **Required fields**: author, title, booktitle, publisher, year. **Optional fields**: editor, volume or number, series, type, chapter, pages, address, edition, month, note.
>
> `inproceedings`: An article in a conference proceedings. **Required fields**: author, title, booktitle, year. **Optional fields**: editor, volume or number, series, pages, address, month, organization, publisher, note.
>
> `manual`: Technical documentation. Required field: title. **Optional fields**: author, organization, address, edition, month, year, note.
>
> `mastersthesis`: A Master’s thesis. **Required fields**: author, title, school, year. **Optional fields**: type, address, month, note.
>
> `misc`: Use this type when nothing else fits. **Required fields**: none. **Optional fields**: author, title, howpublished, month, year, note.
>
> `phdthesis`: A PhD thesis. **Required fields**: author, title, school, year. **Optional fields**: type, address, month, note.
>
> `proceedings`: The proceedings of a conference. **Required fields**: title, year. **Optional fields**: editor, volume or number, series, address, month, organization, publisher, note.
>
> `techreport`: A report published by a school or other institution, usually numbered within a series. **Required fields**: author, title, institution, year. **Optional fields**: type, number, address, month, note.
>
> `unpublished`: A document having an author and title, but not formally published. **Required fields**: author, title, note. **Optional fields**: month, year.
在示例文件中已经提供了若干个条目供参考。需要注意的是,无论中英文,每个作者均使用`and`连接。除非文献卷号、期号和页码均无,否则不必提供DOI选项。对于网页链接,使用`misc`类型条目,填写`author``title``howpublished``year`选项即可。

# 版本记录

- `2022-01-01` [`v0.4.0`](https://github.com/note286/xdupgtp/releases/tag/v0.4.0) 支持国内外研究现状引用参考文献。
- `2022-01-01` [`v0.3.0`](https://github.com/note286/xdupgtp/releases/tag/v0.3.0) 新增专业学位硕士研究生模板。
- `2022-01-01` [`v0.2.2`](https://github.com/note286/xdupgtp/releases/tag/v0.2.2) 修改选题来源填写位置。
- `2021-12-31` [`v0.2.1`](https://github.com/note286/xdupgtp/releases/tag/v0.2.1) 增加不同学位类型示例文件。
Expand Down
39 changes: 39 additions & 0 deletions xdupgtp.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@article{ChangHTD19,
author = {Yuan{-}Hao Chang and Jingtong Hu and Mehdi Baradaran Tahoori and Ronald F. DeMara},
title = {Guest Editorial: {IEEE} Transactions on Computers Special Section on Emerging Non-Volatile Memory Technologies: From Devices to Architectures and Systems},
journal = {{IEEE} Trans. Computers},
volume = {68},
number = {8},
pages = {1111--1113},
year = {2019}
}
@article{WangZSS21,
author = {王鹏 and 张修社 and 索龙 and 史可懿},
title = {基于随机时变图的时间确定性网络路由算法},
journal = {通信学报},
volume = {42},
number = {9},
pages = {21--30},
year = {2021}
}
@article{GongL21,
author = {Ming{-}Yan Gong and Bin Lyu},
title = {Alternating Maximization and the {EM} Algorithm in Maximum-Likelihood Direction Finding},
journal = {{IEEE} Trans. Veh. Technol.},
year = {2021},
doi = {10.1109/TVT.2021.3106794}
}
@inproceedings{TsaiCLQLB13,
author = {Wei{-}Tek Tsai and Charles J. Colbourn and Jie Luo and Guanqiu Qi and Qingyang Li and Xiaoying Bai},
title = {Test algebra for combinatorial testing},
booktitle = {{AST}},
pages = {19--25},
publisher = {{IEEE} Computer Society},
year = {2013}
}
@misc{Collinson21,
author = {Stephen Collinson},
title = {Biden's refusal of executive privilege claim ignites new firestorm with {Trump}},
howpublished = {\url{https://edition.cnn.com/2021/10/26/politics/donald-trump-joe-biden-executive-privilege-january-6/index.html}},
year = {2021},
}
9 changes: 7 additions & 2 deletions xdupgtp.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{xdupgtp}[2022/01/01 Xidian University Postgraduate Thesis Proposal class, v0.3.0, created by @note286, published in https://note286.github.io/xdupgtp/]
\ProvidesClass{xdupgtp}[2022/01/01 Xidian University Postgraduate Thesis Proposal class, v0.4.0, created by @note286, published in https://note286.github.io/xdupgtp/]

% 学术学位博士研究生 Doctor of Academic
\newif\ifda\datrue
Expand Down Expand Up @@ -55,6 +55,9 @@
\RequirePackage[left=3cm,right=3cm,top=2.5cm,bottom=2.5cm,footskip=0cm,headsep=0cm,headheight=0cm]{geometry}
% 自定义环境
\RequirePackage{environ}
% 参考文献引用
\RequirePackage[sort&compress,square,super,comma]{natbib}
\setlength{\bibsep}{0pt}

% 设置页面样式为空
\pagestyle{empty}
Expand Down Expand Up @@ -429,7 +432,9 @@
\newenvironment{xtyj}
{\vspace*{-0.6\baselineskip-\boxrule}
\begin{mybox2}}
{\end{mybox2}}
{\bibliographystyle{gbt7714-numerical}
\bibliography{xdupgtp}
\end{mybox2}}

\newenvironment{yjfa}
{\vspace*{-0.6\baselineskip-\boxrule}
Expand Down

0 comments on commit 14ca53a

Please sign in to comment.