3

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

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

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

 \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}
}

参考书目:

@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}
}

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

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

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

4

1 回答 1

4

您可以使用与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}
于 2020-02-27T10:27:54.333 回答