首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用BibTeX打印书目的部分?

使用BibTeX打印书目的部分?
EN

Stack Overflow用户
提问于 2020-02-23 17:20:08
回答 1查看 1.6K关注 0票数 3

几天来,我一直在试图解决以下问题,但我未能找到解决办法。我们非常感谢你的帮助。

我正在撰写一份很长的文件,就某些章节而言,我想从全部书目中打印一小部分内容,这些项目将在附录的末尾列出。

有办法这样做吗?我在玩倒影游戏,想象着:

代码语言:javascript
复制
 \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:

代码语言:javascript
复制
@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:

代码语言:javascript
复制
@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}
}

通过上面的代码,我得到了书目,但参考文献(数字)并不一致。

有谁知道解决这个问题的方法吗?我绝不局限于把文件分拆。这是我唯一能想到的解决办法。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-27 10:27:54

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

代码语言:javascript
复制
 \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}
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60364815

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档