[英]More flexible citation formats
I love to use citations in my r bookdown projects. 我喜欢在我的r bookdown项目中使用引文。
The format is not very flexible, I can use @citeID to get "Author(Year)" or [@citeID] to get "(Author Year)". 格式不是很灵活,我可以使用@citeID获取“作者(年)”或[@citeID]获取“(作者年份)”。
Sometimes I only need "(Year)" or "Year" or I may only need "Author Year" with no parentheses at all. 有时我只需要“(年)”或“年”,或者我可能只需要“作者年”而没有括号。
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? 任何人都可以给我一个提示,相关代码位于源代码中,以便我可以开始添加一些如上所述的引用格式?
There are many citation modifications offered by Markdown, many of which you can find in the Pandoc Users Guide . Markdown提供了许多引用修改,其中许多可以在Pandoc用户指南中找到。 With them you can hide the author, make page references, etc.:
有了它们,你可以隐藏作者,制作页面引用等:
@Einstein1905
-- Einstein et al. @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) [see @Einstein1905, pp. 23-42]
- (见Einstein等,1905,第23-42页) Einstein was right [-@Einstein1905]
-- Einstein was right (1905) Einstein was right [-@Einstein1905]
- 爱因斯坦是对的(1905年) Details like switching off paranthesis or other punctuation related issues can be regulated in detail by designing your own biblatex style . 通过设计自己的biblatex风格,可以详细规定关闭paranthesis或其他标点符号相关问题的详细信息。 These style files can be tested here and can be referenced during markdown conversion using commands like
--biblatex
. 这些样式文件可以在此处测试,并可以在
--biblatex
转换期间使用--biblatex
命令进行引用 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.