設定“哲學現代”引文風格:顯示第一作者姓名並為重複的第一作者添加“a”或“b”?

設定“哲學現代”引文風格:顯示第一作者姓名並為重複的第一作者添加“a”或“b”?

我目前正在寫我的碩士論文,我對 Latex 還很陌生。我想更改引用樣式“哲學經典”的輸出。當我有兩篇第一作者相同但年份和第二作者不同的論文時,我得到以下文本:

(作者 A 與作者 B,2019 年;作者 A 與作者 C,2021 年)

相反,我想只使用第一作者,因為年份不同,這樣仍然可以清楚地區分。我希望它顯示為:

(作者 A,2019 年;作者 A,2021 年)

但還有第二種情況,我想加上小寫字母。如果我有兩篇論文具有相同的第一作者,並且在同一年發表,我希望它顯示為:

(作者 A,2019a 和作者 A,2019b)

根據第二作者的姓名,小寫字母 a 用於字母表中的第一作者,b 用於字母表中第二作者的論文。

這是我的範例程式碼:

\documentclass{article}

\usepackage[style = philosophy-classic, sorting = nyt, backend = biber, scauthors=all, dashed = FALSE]{biblatex} 

\renewcommand*{\nameyeardelim}{\addcomma\space}

\DeclareNameAlias{author}{last-first}
\DeclareNameAlias{editor}{last-first}

\addbibresource{bibfile.bib}

\DefineBibliographyStrings{ngerman}{
    andothers = {{et\,al\adddot}},
}

\begin{document}
    Here I would like to cite two papers written by the same author, but published in different years \parencite{paper1, paper2}.
    
    Here I would like to cite two papers written by the same author, but published in the same year \parencite{paper1, paper3}.
    
    \printbibliography
\end{document}

這是我的範例書目文件:

@article{paper1,
    title={Title of Paper 1},
    author={AuthorA, A. and AuthorB, B.},
    journal={Journal},
    volume={1},
    number={2},
    pages={5--10},
    year={2019}
}

@article{paper2,
    title={Title of Paper 2},
    author={AuthorA, A. and AuthorC, C.},
    journal={Journal},
    volume={2},
    number={3},
    pages={2--11},
    year={2021}
}

@article{paper3,
    title={Title of Paper 3},
    author={AuthorA, A. and AuthorD, D.},
    journal={Journal},
    volume={3},
    number={2},
    pages={11--30},
    year={2019}
}

我非常感謝您的幫助!

相關內容