【问题标题】:Print parts of bibliography using BibTeX?使用 BibTeX 打印部分参考书目?
【发布时间】:2020-06-07 10:16:04
【问题描述】:

几天来,我一直在尝试解决以下我无法找到解决方案的问题。非常感谢您的帮助。

我正在写一个长文档,对于某些部分,我想打印总书目中的一部分项目,这些项目将包含在附录之前的最后。

有没有办法做到这一点?我正在玩反射并想象类似的东西:

 \documentclass[ twoside,openright,titlepage,numbers=noenddot,
            headinclude,footinclude,
            cleardoublepage=empty,abstract=on,
            BCOR=5mm,paper=a4,fontsize=11pt
            ]{scrreprt}

\usepackage{biblatex}

\addbibresource[label=ownpubs]{ownpubs.bib}
\addbibresource[label=refs]{references.bib}

\begin{document}

%here I want to print a selection of the complete bibliography
%References are required to be consistent throughout the whole document
\chapter*{Related Publications}
\begin{refsection}[references.bib]
    \nocite{*} 
    \printbibliography[heading=none]
\end{refsection}

%here goes all the other stuff: chapters, sections, whatever

%print complete bibliography
\nocite{*} 
\printbibliography

\end{document}

ownpubs.bib:

@article{einstein1935can,
  title={Can quantum-mechanical description of physical reality be considered complete?},
  author={Einstein, Albert and Podolsky, Boris and Rosen, Nathan},
  journal={Physical review},
  volume={47},
  number={10},
  pages={777},
  year={1935},
  publisher={APS}
}
@article{einstein1905movement,
  title={On the movement of small particles suspended in stationary liquids required by the molecularkinetic theory of heat},
  author={Einstein, A},
  journal={Ann. d. Phys},
  volume={17},
  number={549-560},
  pages={1},
  year={1905}
}

references.bib:

@article{schrodinger1935gegenwartige,
  title={Die gegenw{\"a}rtige Situation in der Quantenmechanik},
  author={Schr{\"o}dinger, Erwin},
  journal={Naturwissenschaften},
  volume={23},
  number={50},
  pages={844--849},
  year={1935},
  publisher={Springer-Verlag}
}

使用上面的代码,我打印了参考书目,但参考文献(数字)不一致。

有人知道解决这个问题的方法吗?我绝不限于拆分文件。这只是我能想出的唯一解决方案。

感谢您的帮助和热情的问候!

【问题讨论】:

  • 请使您的代码可编译。您正在使用 biblatex 包中的命令,但不要加载它。此外,我们没有必要的 bib 文件来编译您的代码。
  • 感谢您的反馈。我更新了一个为我编译的工作示例。

标签: latex bibliography biblatex


【解决方案1】:

您可以使用与https://tex.stackexchange.com/a/166018 类似的方法,并自动为references.bib 中的所有条目添加一些关键字。这将允许您在使用 \printbibliography 时过滤那些:

 \documentclass[ twoside,openright,titlepage,numbers=noenddot,
            headinclude,footinclude,
            cleardoublepage=empty,abstract=on,
            BCOR=5mm,paper=a4,fontsize=11pt
            ]{scrreprt}

\usepackage{biblatex}

\addbibresource[label=ownpubs]{ownpubs.bib}
\addbibresource[label=refs]{references.bib}

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map[overwrite]{
      \perdatasource{references.bib}
      \step[fieldset=keywords, fieldvalue={,Perhalo}, append]
    }
  }
}

\begin{document}

%here I want to print a selection of the complete bibliography
%References are required to be consistent throughout the whole document
\chapter*{Related Publications}
\printbibliography[heading=none,keyword={Perhalo}]

%here goes all the other stuff: chapters, sections, whatever

%print complete bibliography
\nocite{*} 
\printbibliography

\end{document}

【讨论】:

  • 谢谢,“关键字”结合 \refsection 和 \nocite 为我解决了这个问题!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-11-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多