我將嘗試解釋我想要的內容:我希望我的參考書目分為兩大類:首先是主要來源(僅包含少數項目),然後是次要來源。二手資源部分將依主題分為多個小節。我希望“主要來源”部分和“次要來源”部分之間不要有分頁符號。我已經嘗試了這裡給出的一些解決方案,但它們沒有起作用。我怎麼能讓它們都出現在同一頁上?感謝您的協助。
\documentclass[12pt,a4paper,oneside,openany]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[style=mla,showmedium=false]{biblatex}
\begin{filecontents}{test.bib}
@inreference{University2010,
title = {University, n.},
booktitle = {{{OED Online}}},
date = {2010},
edition = {Third Edition},
publisher = {{Oxford University Press}},
urldate = {2020-06-25},
keywords = {dico,secondary}
}
@book{byattPossessionRomance2009,
title = {Possession: A {{Romance}}},
shorttitle = {Possession},
author = {Byatt, A. S.},
date = {2009},
publisher = {{Vintage Classics}},
location = {{London}},
isbn = {978-0-09-950392-7},
keywords = {primary},
langid = {english},
pagetotal = {511}
}
\end{filecontents}
\addbibresource{test.bib}
\begin{document}
\nocite{*}
\printbibliography[keyword=primary,title=Primary Sources]
\chapter*{Secondary Sources}
\addcontentsline{toc}{chapter}{Secondary Sources}
\printbibliography[heading=subbibliography,keyword=dico,title=Dictionary Entries]
\end{document}
答案1
在您的文件類別中\chapter
並\chapter*
開始一個新的(雙)頁面,因此我不會使用\chapter*
“第二來源”標題。
我可能會選擇以下內容。這使用三個層次的參考書目標題。
- 一個總標題。
- 主要/次要標題。
- 關鍵字標題。
然後
\documentclass[12pt,a4paper,oneside,openany]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[style=mla,showmedium=false]{biblatex}
\defbibheading{subsubbibintoc}[\refname]{%
\subsection*{#1}%
\phantomsection
\addcontentsline{toc}{subsection}{#1}}
\begin{filecontents}{\jobname.bib}
@inreference{University2010,
title = {University, n.},
booktitle = {{{OED Online}}},
date = {2010},
edition = {Third Edition},
publisher = {{Oxford University Press}},
urldate = {2020-06-25},
keywords = {dico,secondary}
}
@book{byattPossessionRomance2009,
title = {Possession: A {{Romance}}},
shorttitle = {Possession},
author = {Byatt, A. S.},
date = {2009},
publisher = {{Vintage Classics}},
location = {{London}},
isbn = {978-0-09-950392-7},
keywords = {primary},
langid = {english},
pagetotal = {511}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibheading[heading=bibintoc]
\printbibliography[heading=subbibintoc, keyword=primary,title=Primary Sources]
\printbibheading[heading=subbibintoc,title=Secondary Sources]
\printbibliography[heading=subsubbibintoc,keyword=dico,title=Dictionary Entries]
\end{document}
產生