更改印刷书目标题的格式

更改印刷书目标题的格式

我想使用 printbibliography 命令生成几个不同的参考书目块,但我不希望每个块都被格式化为一个章节,如 MWE 中所示。

我希望每个块的标题的格式更像一个部分,而不是位于单独的页面上。

梅威瑟:

移动终端

\documentclass[a4paper, 12pt, oneside]{book}

\usepackage[spanish,es-tabla]{babel}
\usepackage[utf8]{inputenc}
\usepackage[Rejne]{fncychap}
\usepackage{titlesec, titletoc}
\usepackage{lipsum}

\usepackage[style=authoryear,backend=bibtex]{biblatex}

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

\bibliography{references}
\nocite{*}

\newrobustcmd{\mklocalfilter}[1]{%
  \defbibfilter{#1}{%
    segment=0
    or
    segment=\therefsegment
  }}

\begin{document}

\chapter{Test chapter}

\lipsum[1-3]

\printbibliography[keyword={algebra},heading=subbibliography,heading=bibintoc,title={Bibliografía de aritmética y álgebra}]
\printbibliography[keyword={calculo},heading=bibintoc,title={Bibliografía de cálculo}]

\end{document}

参考文献.bib

@book{algebra_1,
title={Álgebra Lineal},
author={Grossman, S.L. and Ibarra, J.},
year={2015},
publisher={McGRAWHILL, Madrid},
keywords={algebra}
}

@book{algebra_2,
title={Álgebra Lineal y Geometría},
author={Hernández, E. and Vázquez, M.J. and Zurro, M.A.},
year={2012},
publisher={Pearson, Madrid},
keywords={algebra}
}

@book{algebra_3,
title={Álgebra básica},
author={Queysanne, M.},
year={1975},
publisher={Vicens-Vives, Barcelona},
keywords={algebra}
}

@book{algebra_4,
title={Elementos de Análisis Algebraico},
author={Rey, J.},
year={1966},
publisher={Biblioteca Matemática, Madrid},
keywords={algebra}
}

@book{calculo_1,
title={Cálculo. Una variable},
author={Rogawski, J.},
year={2012},
publisher={Rerverté, Barcelona},
keywords={calculo}
}

@book{calculo_2,
title={Calculus},
volume={Volumen I},
author={Salas, Hille y Etgen},
year={2002},
publisher={Rerverté, Barcelona},
keywords={calculo}
}

答案1

您可以\defbibheading使用节而不是章:

\documentclass[a4paper, 12pt, oneside]{book}

\usepackage[spanish,es-tabla]{babel}
\usepackage[utf8]{inputenc}
\usepackage[Rejne]{fncychap}
\usepackage{titlesec, titletoc}
\usepackage{lipsum}

\usepackage[style=authoryear,backend=bibtex]{biblatex}

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

\addbibresource{references.bib}
%\bibliography{references}
\nocite{*}

\newrobustcmd{\mklocalfilter}[1]{%
  \defbibfilter{#1}{%
    segment=0
    or
    segment=\therefsegment
  }}

\defbibheading{bibliography}[\refname]{%
  \section{#1}
}


\begin{document}

\chapter{Test chapter}

\lipsum[1-3]

\printbibliography[keyword={algebra},title={Bibliografía de aritmética y álgebra}]
\printbibliography[keyword={calculo},title={Bibliografía de cálculo}]

\end{document}

相关内容