[英]Can I remove the labels from the bibliography, while keeping them in citations?
[英]How can I remove the labels in a bibliography list with biblatex?
在 bibtex 中,很容易删除参考书目中的所有标签; 例如,这里描述的https://stackoverflow.com/a/3003759/6936361 。
我找不到相当于
\makeatletter
\def\@biblabel#1{}
\makeatother
为 biblatex。
例如,如果我有以下代码:
\documentclass{scrartcl}
\usepackage[style=alphabetic]{biblatex}
\addbibresource{foo.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
作为一个快速破解,您可以重新定义参考书目环境:
\documentclass{scrartcl}
\usepackage[style=alphabetic]{biblatex}
\addbibresource{biblatex-examples.bib}
\defbibenvironment{bibliography}
{\list
{}
{%
\setlength{\labelwidth}{0pt}%
\setlength{\leftmargin}{0pt}%
\setlength{\labelsep}{0pt}%
\addtolength{\leftmargin}{0pt}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{##1\hss}}
{\endlist}
{\item}
\begin{document}
\cite{knuth:ct:a}
\nocite{*}
\printbibliography
\end{document}
(我个人会使用authoryear
风格来避免在文本中出现标签而在参考书目中没有任何对应关系)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.