
¿Dónde se necesita? Preparación de tesis.
¿Qué quiero lograr? Necesita dos listas separadas de referencias/publicaciones. Tengo mine.bib
archivo para mis propias publicaciones y main.bib
el cual se utiliza para citar Referencias en la tesis.
Comomostrado aquí, mis publicaciones deben presentarse sin número de referencia y todos los mine.bib
elementos deben estar listados.
Pero solo las referencias citadas deben figurar main.bib
en la lista de referencias.
MWE (de aquí):
\documentclass{article}
\usepackage[backend=biber,
natbib=true,
style=ieee,
citestyle=numeric-comp,
sorting=none,
doi=false,
isbn=false,
url=true,
]{biblatex}
\DeclareRobustCommand\nocite[1]{%
{\def\cite##1{\ignorespaces}#1}}
\newcommand\nocitecaption[1]{\caption[\nocite{#1}]{#1}}
\begin{filecontents}{mine.bib}
@book{appleby,
author = {Humphrey Appleby},
title = {On the Importance of the Civil Service},
date = {1980},
}
\end{filecontents}
\addbibresource{mine.bib}
\begin{document}
\begin{refsection}[mine.bib] % also tried [mine]
\nocite{*}
\printbibliography[title={List of Publications}]
\end{refsection}
\end{document}
Pero solo imprime *
en pdf y arroja advertencia:Empty bibliography on input line 123
Por qué \DeclareRobustCommand
? Siguienteeste para evitar escribir cosas dos veces.
Respuesta1
Tu codigo
\DeclareRobustCommand\nocite[1]{%
{\def\cite##1{\ignorespaces}#1}}
redefine \nocite
. Esa no es una buena idea, especialmente si luego desea utilizar \nocite
su definición normal.
Elija un nombre diferente. Como \DeclareRobustCommand
no tiene problemas para sobrescribir nombres existentes, agregué un nombre aparentemente innecesario \newcommand
para asegurarme de que el nombre que estoy usando no esté ya en uso.
\documentclass{article}
\usepackage[backend=biber,
natbib=true,
style=ieee,
citestyle=numeric-comp,
sorting=none,
doi=false,
isbn=false,
url=true,
]{biblatex}
\newcommand*{\suppresscite}{}
\DeclareRobustCommand\suppresscite[1]{%
{\def\cite##1{\ignorespaces}#1}}
\newcommand\nocitecaption[1]{\caption[\suppresscite{#1}]{#1}}
\begin{filecontents}{mine.bib}
@book{appleby,
author = {Humphrey Appleby},
title = {On the Importance of the Civil Service},
date = {1980},
}
\end{filecontents}
\addbibresource{mine.bib}
\begin{document}
\begin{refsection}[mine.bib] % also tried [mine]
\nocite{*}
\printbibliography[title={List of Publications}]
\end{refsection}
\end{document}