jspitz / biblatex-publist

BibLaTeX bibliography support for publication lists
40 stars 4 forks source link

Letter after year #57

Closed austinj closed 1 month ago

austinj commented 1 month ago

Hi, thanks for the excellent package. Is there a way to suppress the letter after the year when there are multiple entries published in the same year? For instance: going from Lastname, Firstname M. (2022b). Article name, etc.to Lastname, Firstname M. (2022). Article name, etc. when there are multiple entries from 2022.

jspitz commented 1 month ago

No option or somesuch. You'd need the following redefinition:

\renewbibmacro*{bpl:date:makedate}{%
    \printtext{%
        \iffieldundef{year}{%
            \iffieldundef{pubstate}%
                {}
                {\printfield{pubstate}}%
          }{\printdate}%
    }%
}
austinj commented 1 month ago

Thank you very much. For anyone looking for this in the future, I'm using APA style with \newcommand*\publistbasestyle{apa}, so I also had to modify the apa.bbx file to remove letters after years. Those changes to apa.bbx are:

The code below

\newbibmacro*{labelyear+extradate}{% \iffieldundef{labelyear} {\iffieldundef{origyear} {} {\printtext[apadate]{\printorigdate}}}% {\printtext[apadate]{\printlabeldateextra}}}

Changes to

\newbibmacro*{labelyear+extradate}{% \iffieldundef{labelyear} {\iffieldundef{origyear} {} {\printtext[apadate]{\printorigdate}}}% {\printtext[apadate]{\printlabeldate}}}

And these two lines are deleted

uniquelist=minyear,% uniquename=init,%