我希望将我的子书目标题格式化为书籍文档类的子部分:
以下是一个例子:
\documentclass[12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber,style=authoryear]{biblatex}
\addbibresource{example.bib}
\begin{document}
\nocite{*}
\printbibheading
\section*{First category}
\printbibliography[keyword=aaa, heading=subbibliography, title={Subsection1}]
\printbibliography[keyword=bbb, heading=subbibliography, title={Subsection2}]
\section*{Second category}
\printbibliography[keyword=ccc, heading=subbibliography, title={Subsection3}]
\printbibliography[keyword=ddd, heading=subbibliography, title={Subsection4}]
\printbibliography
\end{document}
使用 example.bib :
@book{a,
author = {Doe, John},
title = {Super Book},
date = 2006,
publisher = {Publisher},
keywords = {aaa},
}
@book{b,
author = {Sponge, Bob},
title = {My Life},
date = 2006,
publisher = {Publisher},
keywords = {bbb},
}
@book{c,
author = {Doeee, John},
title = {Another Book},
date = 2006,
publisher = {Publisher},
keywords = {ccc},
}
@book{d,
author = {Doedoo, John},
title = {Book},
date = 2009,
publisher = {Publisher},
keywords = {ddd},
}
结果是:
标题(称为“第 1 节”、“第 2 节”、“第 3 节”和“第 4 节”)默认格式化为节。如何更改?
答案1
添加
\defbibheading{subbibliography}[\refname]{\subsection*{#1}}
似乎可以解决问题。