Markdown Pandoc(md,latex)应在参考书目中生成bibitem
在pandoc中,我试图通过组合Markdown Pandoc(md,latex)应在参考书目中生成bibitem,markdown,pandoc,pdflatex,bibtex,citations,Markdown,Pandoc,Pdflatex,Bibtex,Citations,在pandoc中,我试图通过组合.md和.bib文件来生成.tex文件。在生成的latex文件中,Pandoc已经格式化为纯文本内联引用以及参考书目中的完整引用。但是,我希望引用分别采用\cite和\bibitem格式 example.md --- title: Plain Text Workflow author: Dennis Tenen, Grant Wythoff date: January 20, 2014 bibliography: example.bib --- # Sectio
.md
和.bib
文件来生成.tex
文件。在生成的latex文件中,Pandoc已经格式化为纯文本内联引用以及参考书目中的完整引用。但是,我希望引用分别采用\cite
和\bibitem
格式
example.md
---
title: Plain Text Workflow
author: Dennis Tenen, Grant Wythoff
date: January 20, 2014
bibliography: example.bib
---
# Section 1
Some sentence that needs citation [@fyfe_digital_2011 argues that too].
# Bibliography
比伯
@article{fyfe_digital_2011,
title = {Digital Pedagogy Unplugged},
volume = {5},
url = {http://digitalhumanities.org/dhq/vol/5/3/000106/000106.html},
number = {3},
urldate = {2013-09-28},
author = {Fyfe, Paul},
year = {2011},
file = {fyfe_digital_pedagogy_unplugged_2011.pdf}
}
潘多克司令部
pandoc example.md -t latex -s -S --filter pandoc-citeproc -o example.tex
example.tex(节选)
然而,我想要的是这个(基本上是bibtex生成的.bbl
文件中的内容):
我知道我可以用--natbib--书目=example.bib运行pandoc,然后用pdflatex和bibtex编译,并使用\input{example.bbl}
。但是,有没有一种方法可以在不使用bibtex(手动或管道)的情况下正确使用pandoc
顺便问一下,当pandoc直接用——filter pandoc citeproc
生成pdf时,它是如何在内部完成的?如果它也仅仅使用这些预先格式化的纯文本引用,我将深感失望。因为latex模板前言中定义的各个样式似乎不适用于这种情况。1)您不能。要么你
- 让pandoc为您生成参考和参考书目(
pandoc citeproc
,参见第2点)
或
- 将其格式化为natbib(
--natbib
)或biblatex(--biblatex
),但您必须依赖外部bibtex文件(或)。然后您需要bibtex
或biber
来设置引用的格式
2) pandoc citeproc
依赖csl风格。你可以找到一些,你可以很容易地定制它们。使用--csl=
或YAML标题栏中的csl:
行将其传递给您的pandoc命令。Pandoc在~/.csl
中查找文件,如果不存在完整路径或与标记文件位于同一目录中,则必须提供完整路径
Some sentence that needs citation (Fyfe 2011 argues that too).
\section*{Bibliography}\label{bibliography}
\addcontentsline{toc}{section}{Bibliography}
Fyfe, Paul. 2011. ``Digital Pedagogy Unplugged'' 5 (3).
\url{http://digitalhumanities.org/dhq/vol/5/3/000106/000106.html}.
Some sentence that needs citation \citep[ argues that too]{fyfe_digital_2011}.
\begin{thebibliography}{1}
\providecommand{\natexlab}[1]{#1}
\providecommand{\url}[1]{\texttt{#1}}
\expandafter\ifx\csname urlstyle\endcsname\relax
\providecommand{\doi}[1]{doi: #1}\else
\providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi
\bibitem[Fyfe(2011)]{fyfe_digital_2011}
Paul Fyfe.
\newblock Digital pedagogy unplugged.
\newblock 5\penalty0 (3), 2011.
\newblock URL
\url{http://digitalhumanities.org/dhq/vol/5/3/000106/000106.html}.
\end{thebibliography}