如何使用 biblatex 删除参考书目列表中的标签?
How can I remove the labels in a bibliography list with biblatex?
在 bibtex 中,很容易删除参考书目中的所有标签;例如,如此处所述
.
我找不到等价于
\makeatletter
\def\@biblabel#1{}
\makeatother
对于 biblatex。
如果我有,例如,这个代码:
\documentclass{scrartcl}
\usepackage[style=alphabetic]{biblatex}
\addbibresource{foo.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
我明白了
相反,我想要这样的东西:
如何在不更改 biblatex 样式的情况下删除参考书目列表中的标签?
作为快速技巧,您可以重新定义书目环境:
\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
样式来避免文本中的标签与参考书目中没有任何对应关系)
在 bibtex 中,很容易删除参考书目中的所有标签;例如,如此处所述 .
我找不到等价于
\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
样式来避免文本中的标签与参考书目中没有任何对应关系)