无论是natbib
还是biblatex
都提供了多种不同的命令用于插入引文。
然而,在 R Markdown 中,只有其中几个命令可用:
描述 | R Markdown | natbib 命令 | biblatex 命令 |
---|---|---|---|
经典引用方式: 作者、年份和括号(圆括号或方括号取决于引文样式) | [@key] |
\citep{key} |
\parencite[前缀][后缀]{key} |
内文引用方式: 作者(年份)(根据引文样式可能不带方括号或者带方括号) | @key |
\citet{key} |
\cite[前缀][后缀]{key} |
仅列出年份/不列出作者: (年份) | [-@key] |
\citeyear{key} |
\citeyear[前缀][后缀]{key} |
在参考文献中列出项目但不在文档中进行引用 | 未使用的参考文献(nocite) | \nocite{key} |
\nocite{key} |
通常希望使用更高级的命令,例如:只引用作者并省略年份。
是否有方法将以下引用命令添加到 R Markdown 文档中,并编译为多种输出格式,特别是 PDF 和 HTML?
\citetitle{key} Returns the title of the source.
\citeauthor{key} Returns the author(s) of the cited source.
\footcite{key} Creates a footnote within the document.
\fullcite{key} Creates a complete quote like in the bibliography
\footfullcite{key} Creates a complete citation, as in the bibliography, in a footnote.
相关的SO问题: 仅引用作者并在正文引用中添加所有格; 更灵活的引用格式
Bob&Dylan(1965年,第365页)
指的是滚石乐队。” 有人知道如何以这种方式扭曲或扩展@key
或[@key]
吗? - mavericks