【问题标题】:pandoc not converting latex style citations correctlypandoc 没有正确转换乳胶样式的引用
【发布时间】:2013-01-13 01:58:35
【问题描述】:

我想在我的 markdown 中使用乳胶风格的引用 \cite{key},这样我就可以使用 pandoc 很好地创建 tex 和 pdf 文档。但是,当我引用某些内容时,它会在括号中显示关键字而不是引用样式,例如作者姓名或引用编号。换句话说,我希望它在 PDF 中显示为“这是我的引文 [1]”,而是显示为“这是我的引文 [mykey]”。此外,在我添加 # References 标头后,我的参考列表没有显示。这是怎么回事?

以下是用于生成此命令的示例命令以及示例文件和我当前不正确的输出文件 (test.pdf)。

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

test.md

% My test pandoc-ument

I want to reference this: \cite{Gepasi1993}

# References

test.bib

@ARTICLE{Gepasi1993,
    Author         = {P. Mendes},
    Journal        = {Comput. Applic. Biosci.},
    Pages          = {563--571},
    Title          = {GEPASI: A software package for modelling the dynamics, steady states and control of biochemical and other systems.},
    Volume         = {9},
    Year           = {1993}
}

test.pdf

I want to reference this: [Gepasi1993]

【问题讨论】:

    标签: latex markdown pandoc biblatex


    【解决方案1】:

    --biblatex 选项不适用于直接在 markdown 中编写 biblatex。 它的作用是转换原生 pandoc markdown 引用,例如

    [@Gepasil1993, p. 5] 
    

    在 LaTeX 输出中引用 biblatex。

    如果您使用 pandoc markdown 引用而不是 LaTeX 引用,您将 发现引文有效。使用这个命令:

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

    使用此输入:

    I want to reference this: [@Gepasi1993] 
    

    Pandoc 的引用格式记录在 Pandoc User's Guide

    如果您真的想在降价输入中使用原始 biblatex 引文, 你可以,但是你需要照顾参考书目 你自己。你会这样做:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-11
      • 1970-01-01
      • 2020-12-02
      • 2015-05-19
      • 1970-01-01
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多