將版本列印為年份之後的頂點/上標

將版本列印為年份之後的頂點/上標

我的機構要求在參考書目中將版本指定為出版年份的最高點。

我使用 verbose-trad2 風格和義大利 babel 規範,所以這個條目:

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

給出這個結果

在此輸入影像描述

我必須得到這個:

在此輸入影像描述

答案1

正如建議的biblatex 擴展superedition手冊第 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。

相關內容