使用\printbibliography时如何调整文献的行间距

发布于 2022-02-07 16:38:29

我在使用overleaf写作毕业论文时希望调整调整参考文献中条目间的行间距(我在main文件里使用printbibliography加载参考文献),尝试过调用natbib和bibstring两个宏包的办法,但似乎无法调用。目前在尝试使用\thebibliography调整\parskip和\itemsep默认值的方法,运行也有报错,不知语法正确的写法应该是怎样。希望能获得帮助,谢谢。
代码如下:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% .cls文件内容
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RequirePackage{biblatex}

\renewcommand\thebibliography[1]
{
  \OLDthebibliography{#1}
  \setlength{\parskip}{10pt}
  \setlength{\itemsep}{0pt plus 0.3ex}
}
\renewcommand\printbibliography[1]
{
    \thebibliography \printbibliography
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% main.tex文件内容
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[]{ctexbook}
\addbibresource{reference.bib}

begin{document}
\printbibliography
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% reference.bib文件内容
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@book{knuth1984texbook,
    title={The texbook},
    author={Knuth, Donald Ervin and Bibby, Duane},
    volume={15},
    year={1984},
    publisher={Addison-Wesley Reading}
}
@book{lamport1994latex,
    title={LATEX: a document preparation system: user's guide and reference manual},
    author={Lamport, Leslie},
    year={1994},
    publisher={Addison-wesley}
}
@book{严蔚敏1997数据结构,
    title={数据结构(C语言版)},
    author={严蔚敏 and 吴伟民},
    year={1997},
    month={6},
    publisher={清华大学出版社},
    address={北京},
}
@book{沈晴霓2002程序设计,
    title={现代程序设计—C++与数据结构面向对象的方法与实现},
    author={沈晴霓 and 聂青 and 苏京霞},
    year={2002},
    month={8},
    publisher={北京理工大学出版社},
    address={北京},
}

查看更多

关注者
0
被浏览
381
zepinglee
zepinglee 2022-02-08

使用 biblatex 的话应该优先使用该宏包提供的接口,直接 \setlength\bibitemsep{} 即可,不应重定义 thebibliography\printbibliography

natbib 则是设置 \setlength\bibsep{}

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览