2

I'm using the alphabetic biblatex style and have to format my sources the following way, if there are two sources with the same author:

  • either as "KEY-1" (where -1 replaces a)
  • or as "KEY1" (where 1 replaces a).

How can I achieve this?

Current status:

references

\documentclass{scrartcl}

\usepackage[backend=biber,style=alphabetic,maxbibnames=1,maxcitenames=1,defernumbers,%
    doi=false,isbn=false,clearlang=false,backref=false]{biblatex}
\DeclareFieldFormat{labelalpha}{\textsc{#1}}

\begin{filecontents}{bib.bib}
@ONLINE{text:source,
    author={B. Obby},
    title={Sources today},
    url={http://www.example.com},
    urldate={2017-02-20},}
@ONLINE{text:src,
    author={B. Obby},
    title={Sources tomorrow},
    url={http://www.example.com},
    urldate={2017-02-20},}
\end{filecontents}

\bibliography{bib}
\nocite{*}

\begin{document}

Text with citation: \autocite{text:source}

\printbibliography

\end{document}
12
  • 2
    \DeclareFieldFormat{extraalpha}{#1}?
    – moewe
    Feb 22, 2017 at 13:39
  • 1
    @moewe I was wondering who chooses the name of biblatex options, shouldn't something like labelsuffix have been better? :):):):)
    – CarLaTeX
    Feb 22, 2017 at 14:40
  • 1
    Exactly! You're not the only one who have searched an option for "hours" and then discovers that it has an unthinkable name! :):):):):):)
    – CarLaTeX
    Feb 22, 2017 at 15:04
  • 1
    @moewe Even extrayear is not much clear... also in that case I'd have chosen yearsuffix... :)
    – CarLaTeX
    Feb 22, 2017 at 16:49
  • 1
    @CarLaTeX That's a great idea. I would definitely participate!
    – TeXnician
    Feb 23, 2017 at 8:30

1 Answer 1

0

As @moewe suggested, it is very simple: \DeclareFieldFormat{extraalpha}{#1} is sufficient to fullfill the task, because it is as customizable as every field format.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .