如何修改 biblatex 中的 backref 格式?

如何修改 biblatex 中的 backref 格式?

尝试让 backref 与 KOMA 的 biblatex 一起工作,我得到了以下代码:

 \documentclass{scrbook}
 
 \usepackage[natbib=true,backref=true,style=ieee]{biblatex}
 
 \usepackage{hyperref} \addbibresource{sample.bib}
 
 \DefineBibliographyStrings{english}{   backrefpage={See p.},  
 backrefpages={See pp.} }
 
 
 \begin{document}
 
 \chapter{Chap 1} Some text\cite{greenwade93}. 
 
 
 \printbibliography
 
 \end{document}

whereDefineBibliography允许我修改引用的读法。从

 . D. Greenwade, “The Comprehensive Tex Archive Network (CTAN),”TUGBoat,vol. 14, no. 3, pp. 342–351, 1993 (Cit. on p. 1).

 . D. Greenwade, “The Comprehensive Tex Archive Network (CTAN),”TUGBoat,vol. 14, no. 3, pp. 342–351, 1993 (see p. 1).

但是我该如何删除中间的括号(see p. 1)?或者我如何进一步修改格式,使数字变成上标,而没有其他内容?我在手动的

答案1

以下解决方案的灵感来自biblatex:更改反向引用的格式要在引用之后和 backref 引文之前添加句点,请\addperiod\DeclareFieldFormat命令中包含一个。

\documentclass{scrbook}
\usepackage[natbib=true,backref=true,style=ieee]{biblatex}
\usepackage{hyperref}
\addbibresource{sample.bib} 
\DefineBibliographyStrings{english}{
  %  backrefpage={see p.},
  backrefpage={},
  %  backrefpages={see pp.}
  backrefpages={}
}
\renewcommand*{\finentrypunct}{}
\usepackage{xpatch}
%\DeclareFieldFormat{backrefparens}{\mkbibparens{#1\addperiod}}
\DeclareFieldFormat{backrefparens}{\addperiod\raisebox{4pt}{\scriptsize{#1}}}
\xpatchbibmacro{pageref}{parens}{backrefparens}{}{}
 
\begin{document}
\chapter{Chap 1}
Some text\cite{greenwade93}.
\newpage
Some text\cite{greenwade93}.
\printbibliography
\end{document}

在此处输入图片描述

相关内容