How does pandoc-citeproc sort citations?

前端 未结 1 1951
谎友^
谎友^ 2020-12-11 16:31

I have a pandoc-style Markdown text where I cite two papers by the same author in the same place:

Lorem ipsum [@Author2000;@Author2001] dolor sit amet.


        
相关标签:
1条回答
  • 2020-12-11 17:03

    In-text citation formatting is defined by your CSL between <citation></citation> tags. The sorting of your citations is defined between the <sort></sort> tags. The CSL you are using sorts by author and then by descending date issued - (Author 2001, 2000):

    <citation ...>
        <sort>
            <key macro="author"/>
            <key macro="issued" sort="descending"/>
        </sort>
        ...
    </citation>
    

    To sort by author and then by ascending date issued - (Author 2000, 2001):

    <citation ...>
        <sort>
            <key macro="author"/>
            <key macro="issued" sort="ascending"/>
        </sort>
        ...
    </citation>
    

    To not sort the citations, just remove everything between the <sort></sort> tags.

    <citation ...>
        <sort>
        </sort>
        ...
    </citation>
    
    0 讨论(0)
提交回复
热议问题