\nocite에서 인용 정렬

\nocite에서 인용 정렬

나는 인터넷을 깊게 트롤링했음에도 불구하고 이해할 수 없는 문제가 있습니다. 나는 두 개의 참고문헌을 갖고 싶습니다. 하나는 내가 본문에 인용한 인용을 유지하는 것이고, 다른 하나는 모든 인용에 대한 것입니다(예: 전체 출판 목록). 전자는 내가 인용한 순서대로 정렬해야 하고, 후자는 연도별로 정렬해야 합니다.

후자의 문제는 를 사용하여 연도별로 정렬할 수 있지만 \nocite{*}bibtex에 작성된 (임의의) 순서대로 번호가 매겨진다는 것입니다. 최소 작업 예:

\documentclass{article}
\usepackage[backend=biber,style=numeric-comp,sorting=none]{biblatex}

\begin{filecontents}{mybib.bib}
@article{ref2014,
  author = {First, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2014},
  title = {Funny title 1},
  pages = {1--3}}
@article{ref2012,
  author = {Second, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2012},
  title = {Funny title 2},
  pages = {1--3}}
@article{ref2013,
  author = {Third, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2013},
  title = {Funny title 3},
  pages = {1--3}}
\end{filecontents}

\addbibresource{mybib.bib}

\begin{document}
\section{Interesting text}
\begin{refsection}[mybib]
Citing some stuff \cite{ref2013,ref2012} numbered in the order I cite     them\cite{ref2014}.
\printbibliography[title=Citations]   
\end{refsection}

\begin{refsection}[mybib]
\nocite{*} 
\printbibliography[sorting=ynt,title={Entire publication list sorted by year}]   
\end{refsection}
  \end{document}

이제 내연도별로 정렬된 전체 출판물 목록연도별로 정렬되어 있지만 순서대로 번호가 매겨져 있습니다 2,3,1. 나는 그것이 되기를 원한다 1,2,3. 누구든지 나를 도와줄 수 있나요?

답변1

biblatex-명령을 사용하여 인용된 bibentries와 인용되지 않은 bibentries를 구분할 수 \ateverycite있습니다 \addtocategory.

다양한 정렬의 경우 biblatex-option을 설정 하고 에서 옵션으로 defernumbers=true사용합니다 .resetnumbers=true\printbibliography

MWE:

\documentclass{article}
\usepackage[backend=biber,style=numeric-comp,
sorting=none,defernumbers=true]{biblatex}%mod.

\begin{filecontents}{mybib.bib}
@article{ref2014,
  author = {First, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2014},
  title = {Funny title 1},
  pages = {1--3}}
@article{ref2012,
  author = {Second, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2012},
  title = {Funny title 2},
  pages = {1--3}}
@article{ref2013,
  author = {Third, Author},
  volume = {54},
  number = {2},
  journal = {Phys. Rev. {\O}},
  year = {2013},
  title = {Funny title 3},
  pages = {1--3}}
\end{filecontents}

\addbibresource{mybib.bib}

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

\begin{document}
\section{Interesting text}
\begin{refsection}[mybib]
Citing some stuff \cite{ref2013,ref2012} numbered in the order I cite them.
\printbibliography[resetnumbers=true,title=Citations,category=cited]%mod
\end{refsection}

\begin{refsection}[mybib]
\nocite{*} 
\printbibliography[resetnumbers=true,sorting=ynt,%mod
title={Entire publication list sorted by year}]   
\end{refsection}
  \end{document}



산출:

여기에 이미지 설명을 입력하세요

관련 정보