
ネットを徹底的に調べたにもかかわらず、どうしても解決できない問題があります。 2 つの参考文献を用意したいと思っています。 1 つはテキストで引用した引用文献を保存するもので、もう 1 つはすべての引用文献 (完全な出版物リストなど) を保存するものです。 前者は引用順に並べ、後者は年順に並べる必要があります。
後者の問題は、 を使用して年順に並べることはできる\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
-コマンドと -コマンドを使用して\ateverycite
、\addtocategory
引用された bibentry と引用されていない bibentry を区別できます。
異なるソートを行うには、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}
出力: