hushidong / biblatex-gb7714-2015

A biblatex implementation of the GB/T7714-2015 bibliography style || GB/T 7714-2015 参考文献著录和标注的biblatex样式包
742 stars 84 forks source link

`incollection` 中作者和编者相同时编者未显示 #199

Closed TomBener closed 1 month ago

TomBener commented 1 month ago

汇编或论文集析出中的文献 incollection 条目中,作者和编者相同时,// 后面只有一个多余的句点 .,编者名字未显示。MWE 如下:

\documentclass{article}

\usepackage[backend=biber,style=gb7714-2015ay,gbnamefmt=lowercase]{biblatex}

\begin{filecontents}[force,noheader]{\jobname.bib}
    @incollection{fairbank1968,
        title = {A {{Preliminary Framework}}},
        booktitle = {The {{Chinese World Order}}: {{Traditional China}}'s {{Foreign Relations}}},
        author = {Fairbank, John King},
        editor = {Fairbank, John King},
        date = {1968},
        pages = {1--19},
        publisher = {Harvard University Press},
        location = {Cambridge, MA},
        doi = {10.4159/harvard.9780674333482.c3}
    }

    @incollection{tilly1975,
        title = {Reflections on the {{History}} of {{European State-Making}}},
        booktitle = {The {{Formation}} of {{National States}} in {{Western Europe}}},
        author = {Tilly, Charles},
        editor = {Tilly, Charles},
        date = {1975},
        pages = {3--83},
        publisher = {Princeton University Press},
        location = {Princeton}
    }

    @incollection{breward2023,
        title = {Preface},
        booktitle = {The {{Cambridge Global History}} of {{Fashion}}: {{From}} the {{Nineteenth Century}} to the {{Present}}},
        author = {Lemire, Beverly and Breward, Christopher and Riello, Giorgio},
        editor = {Lemire, Beverly and Breward, Christopher and Riello, Giorgio},
        date = {2023},
        volume = {2},
        pages={xxiii--xxv},
        publisher = {Cambridge University Press},
        location = {Cambridge}
    }

  \end{filecontents}
  \addbibresource{\jobname.bib}

\begin{document}

\cite{fairbank1968,tilly1975,breward2023}

\printbibliography[heading=bibliography]

\end{document}

生成的 PDF 截图:

CleanShot 2024-05-17 at 11 05 45@2x

hushidong commented 1 month ago

这是个bug,之前没有处理完全。

fixed by https://github.com/hushidong/biblatex-gb7714-2015/commit/8c9d50bc57277e245f6cae0e0ee51e471a6fead4