\textcite 同一作者不同年份 - Biblatex

\textcite 同一作者不同年份 - Biblatex

我想为三篇论文添加文本引用,其中两篇由同一作者撰写,但发表于不同年份。我在序言中使用这些代码

\usepackage[style=apa,backend=biber]{biblatex}
\DeclareCiteCommand{\textcite}
  {\boolfalse{cbx:parens}}
  {\usebibmacro{citeindex}%
   \printtext[bibhyperref]{\usebibmacro{textcite}}}
  {\ifbool{cbx:parens}
    {\bibcloseparen\global\boolfalse{cbx:parens}}
    {}%
   \multicitedelim}
 {\usebibmacro{textcite:postnote}}

这是打印参考部分的代码

\printbibliography[heading=bibnumbered]

这是插入文内引用的代码

\textcite{azar2019measuring, azar2020concentration, azar2022labor}

但输出是“Azar et al. (2019); 2022; Azar et al. (2020)”

为什么 2022 年的论文单独列出而没有括号?我希望输出为“Azar 等人(2019;2022);Azar 等人(2020)”

有什么帮助吗?

答案1

Al alchemist 在他们的评论中建议,标准\textcite作品,我只修改了分隔符。

\begin{filecontents}[overwrite]{bib.bib}
@inproceedings{azar2019measuring,
  title={Measuring labor market power two ways},
  author={Azar, Jos{\'e} and Marinescu, Ioana and Steinbaum, Marshall},
  booktitle={AEA Papers and Proceedings},
  volume={109},
  pages={317--21},
  year={2019}
}
@article{azar2020concentration,
  title={Concentration in US labor markets: Evidence from online vacancy data},
  author={Azar, Jos{\'e} and Marinescu, Ioana and Steinbaum, Marshall and Taska, Bledi},
  journal={Labour Economics},
  volume={66},
  pages={101886},
  year={2020},
  publisher={Elsevier}
}
@article{azar2022labor,
  title={Labor market concentration},
  author={Azar, Jos{\'e} and Marinescu, Ioana and Steinbaum, Marshall},
  journal={Journal of Human Resources},
  volume={57},
  number={S},
  pages={S167--S199},
  year={2022},
  publisher={University of Wisconsin Press}
}
\end{filecontents}

\documentclass{article} 

\usepackage[style=apa,backend=biber]{biblatex}
\renewcommand*{\textcitedelim}{\addsemicolon\addspace}
\renewcommand*{\compcitedelim}{\addsemicolon\addspace}

\addbibresource{bib.bib}

\begin{document}
\textcite{azar2019measuring, azar2020concentration, azar2022labor}

\printbibliography[heading=bibnumbered]

\end{document}

在此处输入图片描述

PS = 我从 Google Scholar 下载了 bibitems,不知道你用的是不是这个。下次请添加完整的 MWEB:如何编写 MWEB(带有参考书目的最小工作示例)?

相关内容