
Tenho um problema que simplesmente não consigo resolver, apesar de ter vasculhado profundamente a rede. Eu gostaria de ter duas bibliografias. Um que mantenha as citações que eu cito no texto e outro para todas as citações (por exemplo, uma lista completa de publicações). Os primeiros devem ser ordenados na ordem em que os cito, enquanto os últimos devem ser ordenados por ano.
O problema deste último é que posso ordená-lo por ano usando o \nocite{*}
, mas eles serão numerados na ordem (arbitrária) em que foram escritos no bibtex. Um exemplo mínimo de trabalho:
\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}
Agora meuLista completa de publicações classificada por anoé classificado por ano, mas numerado na ordem 2,3,1
. Eu quero que seja 1,2,3
. Alguém pode me ajudar?
Responder1
Você pode usar os biblatex
comandos \ateverycite
-e \addtocategory
para diferenciar entre bibentries citadas e não citadas.
Para as diferentes ordenações você define a opção biblatex defernumbers=true
e usa resetnumbers=true
como opção no arquivo \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}
Saída: