Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chapterbib
Browse files Browse the repository at this point in the history
zepinglee committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 8d60887 commit fa0ce47
Showing 5 changed files with 26 additions and 12 deletions.
3 changes: 3 additions & 0 deletions chapters/citations.tex
Original file line number Diff line number Diff line change
@@ -61,3 +61,6 @@ \section{著者-出版年制标注法}

% 注意,参考文献列表中的每条文献在正文中都要被引用。这里只是为了示例。
\nocite{*}

\bibliographystyle{ustcthesis-numerical}
\bibliography{bib/ustc}
5 changes: 5 additions & 0 deletions chapters/floats.tex
Original file line number Diff line number Diff line change
@@ -97,3 +97,8 @@ \section{算法环境}

注意,我们可以在论文中插入算法,但是插入大段的代码是愚蠢的。
然而这并不妨碍有的同学选择这么做,对于这些同学,建议用 \pkg{listings} 宏包。

\cite{buseck2018subsolidus}

\bibliographystyle{ustcthesis-numerical}
\bibliography{bib/ustc}
5 changes: 5 additions & 0 deletions chapters/intro.tex
Original file line number Diff line number Diff line change
@@ -36,3 +36,8 @@ \section{脚注}
nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
eu fugiat nulla pariatur.}

\cite{baker1995future}

\bibliographystyle{ustcthesis-numerical}
\bibliography{bib/ustc}
22 changes: 11 additions & 11 deletions main.tex
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
% fontset = windows | mac | ubuntu | fandol

% 加载宏包、全部的配置
\input{ustcsetup.tex}
\include{ustcsetup}


\begin{document}
@@ -18,26 +18,26 @@
\copyrightpage

\frontmatter
\input{chapters/abstract.tex}
\include{chapters/abstract}
\tableofcontents
% \listoffigures
% \listoftables
\input{chapters/notation.tex}
\include{chapters/notation}

\mainmatter
\input{chapters/intro.tex}
\input{chapters/floats.tex}
\input{chapters/math.tex}
\input{chapters/citations.tex}
\include{chapters/intro}
\include{chapters/floats}
\include{chapters/math}
\include{chapters/citations}

\bibliography{bib/ustc} % 参考文献使用 BibTeX 编译
% \bibliography{bib/ustc} % 参考文献使用 BibTeX 编译
% \printbibliography % 参考文献使用 BibLaTeX 编译

\appendix
\input{chapters/complementary.tex}
\include{chapters/complementary}

\backmatter
\input{chapters/acknowledgements.tex}
\input{chapters/publications.tex}
\include{chapters/acknowledgements}
\include{chapters/publications}

\end{document}
3 changes: 2 additions & 1 deletion ustcsetup.tex
Original file line number Diff line number Diff line change
@@ -51,8 +51,9 @@

% 参考文献使用 BibTeX + natbib 宏包
% 顺序编码制
\usepackage[sort]{natbib}
\usepackage[sort, sectionbib]{natbib}
\bibliographystyle{ustcthesis-numerical}
\usepackage{chapterbib}

% 著者-出版年制
% \usepackage{natbib}

0 comments on commit fa0ce47

Please sign in to comment.