Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Allows to load bibliography using native \bibliography command, for better editing experience in specific editors.
  • Loading branch information
Wang Wen committed Jan 31, 2018
1 parent 7d4f603 commit 5b89641
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 115 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ xelatex main.tex

参考文献使用`thesisbibliography`环境,在其中使用`\bibitem`命令加入文献条目。引用分直接引用`\cite`命令和上标引用命令`\citing`两种。直接引用在正文中的标号显示为正常字体,上标引用显示为上标字体。使用BibTeX录入参考文献由`\thesisloadbibliography`命令导入所使用的数据库,参考文献风格为thesis-uestc。这个命令有一个可选参数,在为`nocite`的情况下会在文档中列出数据库中的所有条目,无论是否引用。其他情况下只列出引用过的条目。

有些编辑器会识别`\bibliography`命令载入的数据库文件,并提供更好的编辑支持。所以模板也支持使用原生的`\bibliography`命令载入文献列表,只需要载入之前指定参考文献风格样式为`\bibliographystyle{thesis-uestc}`即可。

### 附录

附录由命令`\thesisappendix`开始,实际上是重新开始了一个无编号的章节。为了书写方便,附录中可以继续分小节,只不过附录中的小节不会在目录中显示。
Expand Down
8 changes: 8 additions & 0 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ \section{后续工作展望}

\thesisloadbibliography[nocite]{reference}

%
% Uncomment following codes to load bibliography database with native
% \bibliography command.
%
% \nocite{*}
% \bibliographystyle{thesis-uestc}
% \bibliography{reference}
%

\thesisappendix

Expand Down
Loading

0 comments on commit 5b89641

Please sign in to comment.