第二次更新

第二次更新

我正在使用scrreprt包并尝试制作两个标题为“参考文献”和“出版物列表”的部分。查看所需输出的屏幕截图-

所需输出的屏幕截图

请参阅下面的 MWE。请注意,这是一种解决方法,我想改进它-

\documentclass[paper=A4,fontsize=12pt,DIV=calc,BCOR=0mm,Ipagesize=auto,draft=false]{scrreprt}
\usepackage{cite}
\usepackage{hyperref}
\usepackage[nottoc]{tocbibind}
\usepackage{lipsum}

% for the top margin in publication section
\newcommand{\cuttop}{-0.5in}

\begin{document}
% \titlepage % (omitted to keep it short)
\tableofcontents
% \listoffigures % (omitted to keep it short)
\clearpage % start a new page

\chapter{My Chapter}
All of these citations~\cite{einstein05,goossens93,knuthwebsite} are kept inside references.bib file.
\lipsum[2-4]  % sample text

\renewcommand{\bibname}{References}
\bibliographystyle{unsrt}
\bibliography{references,publications}

\clearpage % start a new page
\section*{\Huge Publication List}
\addcontentsline{toc}{chapter}{Publication List}
\begingroup
% src: https://tex.stackexchange.com/a/114345/49520
\renewcommand{\addcontentsline}[3]{}
\let\clearpage\relax

\vspace*{\cuttop}
\renewcommand{\bibname}{\Large Journal Papers}
\begin{thebibliography}{10}
  \bibitem{ahu61}
  Kenneth~J. Arrow, Leonid Hurwicz, and Hirofumi Uzawa.
  \newblock Constraint qualifications in maximization problems.
  \newblock {\em Naval Research Logistics Quarterly}, 8:175--191, 1961.
\end{thebibliography}

\vspace*{\cuttop}
\renewcommand{\bibname}{\Large Conference Papers}
\begin{thebibliography}{10}
  \bibitem{ah2006}
  Gagan Aggarwal and Jason~D. Hartline.
  \newblock Knapsack auctions.
  \newblock In {\em Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete
  Algorithms}, pages 1083--1092, New York, 2006. Association for Computing
  Machinery.
\end{thebibliography}
\endgroup
\end{document}

我计划有两个.bib文件,例如references.bibpublications.bib。这就是我要执行的操作-

\documentclass[paper=A4,fontsize=12pt,DIV=calc,BCOR=0mm,Ipagesize=auto,draft=false]{scrreprt}
\usepackage{cite}
\usepackage{hyperref}
\usepackage[nottoc]{tocbibind}
\usepackage{lipsum}

% for the top margin in publication section
\newcommand{\cuttop}{-0.5in}

\begin{document}
% \titlepage % (omitted to keep it short)
\tableofcontents
% \listoffigures % (omitted to keep it short)
\clearpage % start a new page

\chapter{My Chapter}
All of these citations~\cite{einstein05,goossens93,knuthwebsite} are kept inside references.bib file.
\lipsum[2-4]  % sample text

\renewcommand{\bibname}{References}
\bibliographystyle{unsrt}
\bibliography{references,publications}

\clearpage % start a new page
\section*{\Huge Publication List}
\addcontentsline{toc}{chapter}{Publication List}
\begingroup
% src: https://tex.stackexchange.com/a/114345/49520
\renewcommand{\addcontentsline}[3]{}
\let\clearpage\relax

\vspace*{\cuttop}
\renewcommand{\bibname}{\Large Journal Papers}
\nocite{ahu61}

\vspace*{\cuttop}
\renewcommand{\bibname}{\Large Conference Papers}
\nocite{ah2006}
\endgroup
\end{document}

上述代码没有产生预期的结果(请参阅预期结果这里)。

文件references.bib显示如下。

@article{einstein05,
    author  = {Albert Einstein},
    title   = {{Zur Elektrodynamik bewegter K{\"o}rper. (German) [On the electrodynamics of moving bodies]}},
    journal = {Annalen der Physik},
    volume  = {322},
    number  = {10},
    pages   = {891--921},
    year    = {1905},
    DOI     = {http://dx.doi.org/10.1002/andp.19053221004}
}

@book{goossens93,
    author    = {Michel Goossens and Frank Mittelbach and Alexander Samarin},
    title     = {{The \LaTeX\ Companion}},
    year      = {1993},
    publisher = {Addison-Wesley},
    address   = {Reading, Massachusetts}
}

@misc{knuthwebsite,
    author = {Donald Knuth},
    title  = {{Knuth: Computers and Typesetting}},
    url    = {http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html}
}

文件publications.bib显示如下。

@article{ahu61,
   author  = {Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
   title   = {Constraint qualifications in maximization problems},
   journal = {Naval Research Logistics Quarterly},
   volume  = {8},
   year    = 1961,
   pages   = {175-191}
}

@inproceedings{ah2006,
   author    = {Aggarwal, Gagan and Hartline, Jason D.},
   year      = {2006},
   title     = {Knapsack auctions},
   booktitle = {Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete Algorithms},
   pages     = {1083-1092},
   publisher = {Association for Computing Machinery},
   address   = {New York}
}

我正在寻找改进该问题开头发布的 MWE 的建议。

更新

根据约翰内斯·B,我切换到biblatex使用biber后端。请参阅下面的更新代码-

\documentclass[paper=A4,fontsize=12pt,DIV=calc,BCOR=0mm,Ipagesize=auto,draft=false]{scrreprt}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\usepackage[nottoc]{tocbibind}
\usepackage{lipsum}

% for the top margin in publication section
\newcommand{\cutmargin}{-0.5in}

\addbibresource{references.bib}
\addbibresource{publications.bib}

\begin{document}
% \titlepage % (omitted to keep it short)
\tableofcontents
% \listoffigures % (omitted to keep it short)
\clearpage % start a new page

\chapter{My Chapter}
All of these citations~\cite{einstein05,goossens93,knuthwebsite} are kept inside references.bib file.
\lipsum[2-4]  % sample text

\renewcommand{\bibname}{References}
\printbibliography

\clearpage % start a new page
\section*{\Huge Publication List}
\addcontentsline{toc}{chapter}{Publication List}
\begingroup
% src: https://tex.stackexchange.com/a/114345/49520
\renewcommand{\addcontentsline}[3]{}
\let\clearpage\relax

\vspace*{\cutmargin}
\renewcommand{\bibname}{\Large Journal Papers}
\nocite{ahu61}

\vspace*{\cutmargin}
\renewcommand{\bibname}{\Large Conference Papers}
\nocite{ah2006}
\endgroup
\end{document}

请参阅下面生成的输出文件(这里显示了比较)-

在此处输入图片描述

以下是限制(需要解决)-

  • 第 1 页:“参考文献”不再是目录的一部分。如何添加?
  • 第 3 页:“参考文献”也包含出版物。请注意,前两个参考文献未在\cite命令中使用。我希望“参考文献”仅包含\cite项目。
  • 第 4 页:“出版物列表”页面为空。如何恢复?

第二次更新

查看下面的答案。

非常感谢。

答案1

我按照以下建议完成了它:约翰内斯·B。以下是 MWE-

\documentclass[paper=A4,fontsize=12pt,DIV=calc,BCOR=0mm,Ipagesize=auto,draft=false]{scrreprt}
\usepackage[backend=biber,refsection=section,defernumbers=true]{biblatex}
\addbibresource{publications.bib}
\addbibresource{references.bib}

\usepackage{hyperref}

\begin{document}
\tableofcontents

\chapter{My Chapter}
All of these citations~\cite{einstein05,goossens93,knuthwebsite} are kept inside references.bib file.

\clearpage
\printbibliography[heading=bibintoc,title={References}]

\clearpage
\addchap{Publication List}
\nocite{*}
\printbibliography[heading=subbibliography,resetnumbers=true,keyword={journal},title={Journal Papers}]
\printbibliography[heading=subbibliography,resetnumbers=true,keyword={conference},title={Conference Papers}]
\end{document}

相关内容