
어디에 필요한가요? 논문 준비.
내가 달성하고 싶은 것은 무엇입니까? 두 개의 별도 참고문헌/출판 목록이 필요합니다. 나는 mine.bib
내 자신의 출판물에 대한 파일을 가지고 있으며 main.bib
이는 논문에서 참고문헌을 인용하는 데 사용됩니다.
처럼여기에 표시됨, 내 출판물은 참조 번호 없이 표시되어야 하며 모든 mine.bib
항목이 나열되어야 합니다.
main.bib
단, 인용된 문헌만 참고문헌 목록 에 나열되어야 합니다 .
MWE(여기에서):
\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}
하지만 *
PDF로만 인쇄되고 경고가 발생합니다.Empty bibliography on input line 123
왜 \DeclareRobustCommand
? 수행원이것 두 번 입력하는 것을 방지하기 위해.
답변1
귀하의 코드
\DeclareRobustCommand\nocite[1]{%
{\def\cite##1{\ignorespaces}#1}}
재정의합니다 \nocite
. 이는 좋은 생각이 아닙니다. 특히 나중에 \nocite
일반 정의와 함께 사용하려는 경우에는 더욱 그렇습니다 .
다른 이름을 선택하세요. 기존 이름을 덮어쓰는 데 문제가 없으므로 내가 사용하는 이름이 이미 사용되지 않았는지 확인하기 위해 \DeclareRobustCommand
불필요해 보이는 이름을 던졌습니다 .\newcommand
\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}