多個參考文獻列表,少數帶有\notice{*},其他僅引用的項目。可能的?

多個參考文獻列表,少數帶有\notice{*},其他僅引用的項目。可能的?

哪裡需要它?論文準備。

我想實現什麼目標?需要兩個單獨的參考文獻/出版物清單。我有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}

相關內容