
我正在使用基礎類別文章/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
,而report
和book
類別使用\bibname
。
不要忘記 的強制參數\begin{thebibliography}
。