pandoc not converting latex style citations correctly

后端 未结 1 971
逝去的感伤
逝去的感伤 2021-02-05 18:35

I want to use latex-style citations \\cite{key} in my markdown so that I can create tex and pdf documents nicely using pandoc. However, when I cite something, it sh

1条回答
  •  梦毁少年i
    2021-02-05 19:14

    The --biblatex option is not for writing biblatex directly in markdown. What it does is convert native pandoc markdown citations, like

    [@Gepasil1993, p. 5] 
    

    to biblatex citations in LaTeX output.

    If you use pandoc markdown citations instead of the LaTeX ones, you'll find that the citations work. Use this command:

    pandoc test.md --biblio test.bib --csl chicago-author-date.csl -o test.pdf 
    

    with this input:

    I want to reference this: [@Gepasi1993] 
    

    Pandoc's citation format is documented in the Pandoc User's Guide.

    If you really want to use raw biblatex citations in your markdown input, you can, but then you need to take care of the bibliography stuff yourself. You'd do it this way:

    pandoc test.md --parse-raw -t latex -s > test.tex 
    pdflatex test 
    biber test 
    pdflatex test 
    pdfltatex test 
    

    0 讨论(0)
提交回复
热议问题