[英]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.