按字母数字/自然顺序对速记进行排序

按字母数字/自然顺序对速记进行排序

在我的论文中,我列出了我正在使用的各种手稿的简写列表。我如何按字母数字/自然顺序对其进行排序,以便顺序A1、a7、a11(因为 7 在 11 之前)而不是默认的A1、a11、a7(因为 7 在 1 后面)?

梅威瑟:

\documentclass{article}

\usepackage[
    tools=manuscripts,
    bibstyle=unified,
]{biblatex-multiple-dm}

\usepackage[
    bibstyle=multiple-dm,
    citestyle=unified,
    backend=biber,
]{biblatex}

\begin{filecontents}{\jobname.bib}
@manuscript{kc:vorau,
    dating      = {4.~Viertel 12.~Jh.},
    library     = {Stiftsarchiv},
    location    = {Vorau},
    shelfmark   = {Ms~276},
    shorthand   = {A1},
    sortkey     = {kc:A01},
    sorttitle   = {kc:A01},
    sortyear    = {1176},
    keywords    = {mss},
}

@manuscript{kc:klagenfurt,
    dating      = {2.~Hälfte 12.~Jh.},
    library     = {Kärntner Landesarchiv},
    location    = {Klagenfurt},
    shelfmark   = {Cod.~GV 6/26},
    shorthand   = {a7},
    sortkey     = {kc:a07},
    sorttitle   = {kc:a07},
    sortyear    = {1151},
    keywords    = {mss},
}

@manuscript{kc:nuernberg,
    dating      = {1.~Hälfte 13.~Jh.},
    doi         = {10.11588/diglit.28408},
    library     = {Germanisches Nationalmuseum},
    location    = {Nürnberg},
    shelfmark   = {Hs.~22067},
    shorthand   = {a11},
    sortkey     = {kc:a11},
    sorttitle   = {kc:a11},
    sortyear    = {1201},
    keywords    = {mss},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printshorthands[keyword=mss]
\end{document}

编译结果

答案1

您可以使用sortshorthand强制对 s 进行稍微不同的排序shorthand。如果在 中的简写中添加前导零,则sortshorthand可以获得所需的顺序。(您已经sortkey对其他排序方案做了类似的事情。)

\documentclass{article}

\usepackage[
  tools=manuscripts,
  bibstyle=unified,
]{biblatex-multiple-dm}

\usepackage[
  bibstyle=multiple-dm,
  citestyle=unified,
  backend=biber,
]{biblatex}

\begin{filecontents}{\jobname.bib}
@manuscript{kc:vorau,
  dating      = {4.~Viertel 12.~Jh.},
  library     = {Stiftsarchiv},
  location    = {Vorau},
  shelfmark   = {Ms~276},
  sortshorthand = {A01},
  shorthand   = {A1},
  sortkey     = {kc:A01},
  sorttitle   = {kc:A01},
  sortyear    = {1176},
  keywords    = {mss},
}
@manuscript{kc:klagenfurt,
  dating      = {2.~Hälfte 12.~Jh.},
  library     = {Kärntner Landesarchiv},
  location    = {Klagenfurt},
  shelfmark   = {Cod.~GV 6/26},
  sortshorthand = {a07},
  shorthand   = {a7},
  sortkey     = {kc:a07},
  sorttitle   = {kc:a07},
  sortyear    = {1151},
  keywords    = {mss},
}

@manuscript{kc:nuernberg,
  dating      = {1.~Hälfte 13.~Jh.},
  doi         = {10.11588/diglit.28408},
  library     = {Germanisches Nationalmuseum},
  location    = {Nürnberg},
  shelfmark   = {Hs.~22067},
  sortshorthand = {a11},
  shorthand   = {a11},
  sortkey     = {kc:a11},
  sorttitle   = {kc:a11},
  sortyear    = {1201},
  keywords    = {mss},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\printshorthands[keyword=mss]
\end{document}

A1 Vorau:Stiftsarchiv,Ms 276. 4. Viertel 12. Jh. a7 克拉根福:Kärntner Landesarchiv,Cod. GV6/26。 2. 半场 12. Jh. a11 纽伦堡:日耳曼国家博物馆,Hs。 22067. 1. 半 13. Jh.

相关内容