将版本打印为年份后的顶部/上标

将版本打印为年份后的顶部/上标

我的机构要求在书目中指定版本作为出版年份的顶点。

我使用的是 verbose-trad2 风格和意大利 babel 规范,因此此条目:

@book{fittizio,
author       = {Paolo Polesana},
title        = {De Polesanis},
year         = {1980},
edition = {2},
publisher    = {s.n.},
location     = {Bresso},
}

给出这个结果

在此处输入图片描述

我必须获得这个:

在此处输入图片描述

答案1

正如建议的那样biblatex-extsuperedition手册第 34 页,定义之后要使用的宏\usebibmacro{date}

\documentclass[italian]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=ext-verbose-trad2, backend=biber]{biblatex}

\renewbibmacro*{edition}{}
\DeclareFieldFormat{superedition}{\textsuperscript{#1}} 

\newbibmacro*{superedition}{%
  \iffieldnums{edition} 
    {\printfield[superedition]{edition}} 
    {\printfield{edition}%
     \setunit{\addspace}}}

\renewcommand*{\pubdatedelim}{\addspace} 
\renewcommand*{\locdatedelim}{\pubdatedelim} 

\renewbibmacro*{pubinstorg+location+date}[1]{%
  \printlist{location}% 
  \iflistundef{#1}
    {\setunit*{\locdatedelim}}
    {\setunit*{\locpubdelim}}% 
  \printlist{#1}% 
  \setunit*{\pubdatedelim}% 
  \usebibmacro{date}% 
  \usebibmacro{superedition}% 
  \newunit}

\begin{filecontents}{\jobname.bib}
@book{fittizio,
  author     = {Paolo Polesana},
  title      = {De Polesanis},
  year       = {1980},
  edition    = {2},
  publisher  = {s.n.},
  location   = {Bresso},
}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}
Lorem \autocite{fittizio}
\printbibliography
\end{document}

波莱萨纳,保罗。德波莱萨尼斯。布雷索:sn 19802。

相关内容