我的參考書目有兩個部分。怎樣才能取對名字呢?

我的參考書目有兩個部分。怎樣才能取對名字呢?

我正在使用基礎類別文章/scrartcl。我有一個(手動創建的)參考書目,由兩部分組成。我可以將不同名稱下的不同部分新增到目錄中

\addcontentsline{toc}{section}{Primärliteratur}
\begin{thebibliography}
...
\end{thebibliography}
\addcontentsline{toc}{section}{Internetquellen}
\begin{thebibliography}
...
\end{thebibliography}

但當然,我在參考書目部分的兩個部分上都得到了“文學”標題。如果我嘗試插入 \renewcommand{\bibname}{Internetquellen}

在第二個 thebibliography-environment 之前沒有幫助。我該怎麼做才能獲得 2 個參考書目的不同標題?

答案1

你應該使用\refname;此外,\addcontentsline應該進入thebibliography環境內部:

\renewcommand{\refname}{Primärliteratur}
\begin{thebibliography}{99}% <-- fix the number
\addcontentsline{toc}{section}{Primärliteratur}
...
\end{thebibliography}

\renewcommand{\refname}{Internetquellen}
\begin{thebibliography}{99}% <-- fix the number
\addcontentsline{toc}{section}{Internetquellen}
...
\end{thebibliography}

我怎麼知道\refname而不是\bibname?因為在中ngermanb.ldf我發現「Literatur」與 相關聯\refname,而預設值\bibname是「Literaturverzeichnis」。

類別article使用\refname,而reportbook類別使用\bibname

不要忘記 的強制參數\begin{thebibliography}

相關內容