如何使用biblatex删除书目列表中的标签?

问题描述 投票:0回答:1

在bibtex中,删除书目中的所有标签是非常容易的,例如,这里描述的是https:/stackoverflow.coma30037596936361.

我找不到相当于

\makeatletter
\def\@biblabel#1{}
\makeatother

为biblatex。

如果我有,例如,这段代码。

\documentclass{scrartcl}
\usepackage[style=alphabetic]{biblatex}

\addbibresource{foo.bib}
\begin{document}

\nocite{*}
\printbibliography
\end{document}

我得到这个enter image description here

相反,我希望有这样的东西。enter image description here如何在不改变biblatex风格的情况下删除书目列表中的标签?

latex biblatex
1个回答
1
投票

作为一个快速黑客,你可以重新定义书目环境。

\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}

enter image description here

(我个人会使用 authoryear 风格,以避免文本中的标签在书目中没有任何对应关系)

© www.soinside.com 2019 - 2024. All rights reserved.