更灵活的引文格式 [英] More flexible citation formats

查看:52
本文介绍了更灵活的引文格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢在我的Bookbook项目中使用引用.

I love to use citations in my r bookdown projects.

格式不是很灵活,我可以使用@citeID获得作者(年份)"或使用[@citeID]获得(作者年份)".

The format is not very flexible, I can use @citeID to get "Author(Year)" or [@citeID] to get "(Author Year)".

有时候,我只需要(年份)"或年份",或者我可能只需要作者年份",就不用括号了.

Sometimes I only need "(Year)" or "Year" or I may only need "Author Year" with no parentheses at all.

最后,我需要添加对引用的页面引用,例如作者(Year:Pages)"

Finally I need to add a page reference to the citation like "Author (Year:Pages)"

有人可以给我一个提示,相关代码位于源代码中,以便我可以如上所述开始添加一些引用格式吗?

Can anybody give me a hint, where the relevant code sits in the source so that I can start adding some cite-formats as described above?

推荐答案

Markdown提供了许多引用修改,您可以在

There are many citation modifications offered by Markdown, many of which you can find in the Pandoc Users Guide. With them you can hide the author, make page references, etc.:

  • @ Einstein1905 -爱因斯坦等人.(1905年)
  • [@ Einstein1905] -(Einstein et al.,1905)
  • [请参阅@ Einstein1905,第23-42页] -(请参阅Einstein等人,1905,第23-42页)
  • 爱因斯坦是对的[-@ Einstein1905] -爱因斯坦是对的(1905)
  • @Einstein1905 -- Einstein et al. (1905)
  • [@Einstein1905] -- (Einstein et al., 1905)
  • [see @Einstein1905, pp. 23-42] -- (see Einstein et al., 1905, pp. 23-42)
  • Einstein was right [-@Einstein1905] -- Einstein was right (1905)

诸如设计自己的biblatex样式.这些样式文件可以在此处进行测试,并且可以

Details like switching off paranthesis or other punctuation related issues can be regulated in detail by designing your own biblatex style. These style files can be tested here and can be referenced during markdown conversion using commands like --biblatex.

这篇关于更灵活的引文格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆