提问于:
浏览数:
2591
## 编译环境
操作系统
* [x] Windows 7/8/10
* [ ] macOS
* [ ] Linux
`若需勾选,请把[ ]改成[x]`
Tex发行版
* [x] TexLive `2020`
* [ ] MikTeX `版本号`
* [ ] CTeX
`若需勾选,请把[ ]改成[x]`
## 我的问题
我在编写学位论文模板时,格式要求最后会有一个“攻读学位期间发表的学术论文”部分,并且这个里面的文献要和“参考文献”那个章节的格式保持一样(当然这里的文献一般很少就是个位数)。
我看到有前辈说使用“chapterbib”这个宏包,我用了一下导致有些错乱。主要遇到的问题是:
1. “攻读学位期间发表的学术论文”里的文献总是全部的文献,而不是我想要的那么一两个文献;
2. 在后面插入文献了导致前面“参考文献”这个章节格式也变了,本来是一级标题的,最后在正文里变成了二级。
我的主文件内容为
```
\documentclass[12pt,a4paper,openany,twoside]{book}
\usepackage{ctex}
\usepackage[sectionbib]{natbib}
\usepackage{chapterbib}
\usepackage[unicode=true,colorlinks=false,pdfborder={0 0 0}]{hyperref}
\begin{document}
\addcontentsline{toc}{chapter}{目~~~~录}
\tableofcontents
\chapter{这是正文}
这是文献\cite{toms1948some},还有\cite{lumley1969drag},以及\cite{groisman2000elastic}。
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{参考文献}
\bibliographystyle{unsrt}
\bibliography{references/reference.bib}
\input{mywork.tex}
\end{document}
```
参考文献有三篇,为:
```
@article{toms1948some,
author = {Toms, Be A},
title = {Some observations on the flow of linear polymer solutions through straight tubes at large Reynolds numbers},
journal = {Proc. of In. Cong. On Rheology, 1948},
volume = {135},
year = {1948},
type = {Journal Article}
}
@article{groisman2000elastic,
author = {Groisman, Alexander and Steinberg, Victor},
title = {Elastic turbulence in a polymer solution flow},
journal = {Nature},
volume = {405},
number = {6782},
pages = {53-55},
ISSN = {1476-4687},
year = {2000},
type = {Journal Article}
}
@article{lumley1969drag,
author = {Lumley, John L},
title = {Drag reduction by additives},
journal = {Annual review of fluid mechanics},
volume = {1},
number = {1},
pages = {367-384},
ISSN = {0066-4189},
year = {1969},
type = {Journal Article}
}
```
其中还有一个子文件,就是“攻读学位期间发表的学术论文”章节,内容为:
```
\chapter*{攻读学位期间发表的学术论文}
\addcontentsline{toc}{chapter}{攻读学位期间发表的学术论文}
\nocite{toms1948some}
\bibliographystyle{plain}
\bibliography{references/mywork.bib}
\clearpage
\endinput
```
为了和前面“参考文献”进行区分,我还特别重建了一个.bib文件,当然里面的文献数目一般更少,在此我举一个:
```
@article{toms1948some,
author = {Toms, Be A},
title = {Some observations on the flow of linear polymer solutions through straight tubes at large Reynolds numbers},
journal = {Proc. of In. Cong. On Rheology, 1948},
volume = {135},
year = {1948},
type = {Journal Article}
}
```
请问遇到这样的情况我该如何修改呢?也就是说把“攻读学位期间发表的学术论文”章节里只保留我想要的那一篇文献,如果可以的话我还想把这里的二级标题“参考文献”给改一下名字;另一个就是怎样让原来“参考文献”这个章节恢复正常。谢谢啦!