12

\cite{key}pandoc を使用して tex および pdf ドキュメントを適切に作成できるように、マークダウンでラテックス スタイルの引用を使用したいと考えています。ただし、何かを引用すると、著者名や引用番号などの引用スタイルではなく、括弧内にキーワードが表示されます。つまり、PDF に「This is my citation [1]」と表示されるようにしたいのですが、代わりに「This is my citation [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

テストビブ

@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]
4

1 に答える 1

26

この--biblatexオプションは、biblatex をマークダウンで直接記述するためのものではありません。それが行うことは、ネイティブの pandoc マークダウン引用を変換することです。

[@Gepasil1993, p. 5] 

LaTeX出力のbiblatex引用に。

LaTeX の代わりに pandoc マークダウン引用を使用すると、引用が機能することがわかります。次のコマンドを使用します。

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 
于 2013-01-12T17:58:35.737 に答える