我想BibLaTeX 参考书目不带方括号,但不要把所有内容都放在一行上,因为这是 lncs 所要求的。
也就是说,我有
\documentclass{article}
\usepackage{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\bibliography{\jobname}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
我想要相同的参考书目(多行),但不带有方括号。
答案1
你只需要这一行
\DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1\adddot}}
以粗体打印标签,不带括号且后跟一个点。
平均能量损失
\documentclass{article}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbold{#1\adddot}}
\begin{document}
\nocite{cicero,baez/article,baez/online,wilde}
\printbibliography
\end{document}
答案2
在你的序言中添加以下几行:
\defbibenvironment{bibliography}
{\list
{%
\printfield{prefixnumber}%
\textbf{\printfield{labelnumber}}\addperiod}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
梅威瑟:
\documentclass{article}
\usepackage{biblatex}
\defbibenvironment{bibliography}
{\list
{%
\printfield{prefixnumber}%
\textbf{\printfield{labelnumber}}\addperiod}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
输出:
顺便说一句:我已改为\bibliography
,\addbibresource
因为前者已被弃用biblatex
。