![使用 APA 文档类时显示 BibTeX 条目的标题](https://linux22.com/image/243688/%E4%BD%BF%E7%94%A8%20APA%20%E6%96%87%E6%A1%A3%E7%B1%BB%E6%97%B6%E6%98%BE%E7%A4%BA%20BibTeX%20%E6%9D%A1%E7%9B%AE%E7%9A%84%E6%A0%87%E9%A2%98.png)
当引用一本书时,我可以使用\citeA[p.~10]{AuthorYear}
显示作者姓名和其他引用信息。有没有一种方便的方法可以让文内引用显示书名?
例如\citetitle{AuthorYear}
将显示书名。
答案1
假设 AuthorYear 是您的 bibkey:
\documentclass[noapacite]{apa}
\usepackage[style=apa]{biblatex}
\begin{filecontents}{\jobname.bib}
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareCiteCommand{\citetitle}{}{\printfield{title}}{;}{}
\begin{document}
\citetitle{texbook}
\end{document}