% Created 2014-01-28 Tue 09:29
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{color}
\usepackage{listings}
\author{Eric Schulte}
\date{\today}
\title{An Example Demonstrating ox-bibtex Usage}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs 24.3.1 (Org mode 8.2.5g)}}
\begin{document}

\maketitle
An example document demonstrating generation of bibliographies for
\LaTeX{}, HTML and ASCII export using Org-mode \cite{dominik2010org} with
the \texttt{ox-bibtex} contributed package.  Included code blocks are
executable for reproducibility \cite{schulte2012multi}.

(taken from the comments at the top of \texttt{ox-bibtex.el})

\section{Introduction and Requirements}
\label{sec-1}
Use \texttt{cite} syntax for Org links (e.g., \texttt{cite:bibtexid}).  For HTML and
ascii it uses the bibtex2html software from
\url{http://www.lri.fr/~filliatr/bibtex2html/}, and for ascii it uses the
pandoc software from \url{http://johnmacfarlane.net/pandoc/}.
\section{Usage}
\label{sec-2}
The usage is as follows:

\begin{verbatim}
#+BIBLIOGRAPHY: bibfilebasename stylename optional-options
\end{verbatim}

e.g. given \texttt{foo.bib} and using style "plain":

\begin{verbatim}
#+BIBLIOGRAPHY: foo plain option:-d
\end{verbatim}

"stylename" can also be "nil", in which case no style will be used.

Optional options are of the form:

\begin{verbatim}
option:-foobar
\end{verbatim}

pass '-foobar' to bibtex2html

e.g.,

\begin{center}
\begin{tabular}{ll}
\texttt{option:-d} & sort by date\\
\texttt{option:-a} & sort as BibTeX (usually by author) \textbf{default}\\
\texttt{option:-u} & unsorted i.e. same order as in .bib file\\
\texttt{option:-r} & reverse the sort\\
\end{tabular}
\end{center}

See the bibtex2html man page for more.  Multiple options can be
combined like:

\begin{verbatim}
option:-d option:-r
\end{verbatim}

Limiting to only the entries cited in the document:

\begin{verbatim}
limit:t
\end{verbatim}

For \LaTeX{} export this simply inserts the lines

\begin{verbatim}
\bibliographystyle{plain}
\bibliography{foo}
\end{verbatim}

into the \TeX{} file when exporting.

For HTML export it:
\begin{enumerate}
\item converts all \texttt{\textbackslash{}cite\{foo\}} and =\cite{foo=} to links to the
bibliography,
\item creates a \texttt{foo.html} and \texttt{foo\_bib.html},
\item includes the contents of \texttt{foo.html} in the exported HTML file.
\end{enumerate}

For ascii export it:
\begin{enumerate}
\item converts all \texttt{\textbackslash{}cite\{foo\}} and =\cite{foo=} to links to the
bibliography,
\item creates a \texttt{foo.txt} and \texttt{foo\_bib.html},
\item includes the contents of foo.txt in the exported ascii file.
\end{enumerate}

For \LaTeX{} export it:
\begin{enumerate}
\item converts all \texttt{[[cite:foo=]] to =\textbackslash{}cite\{foo\}}.
\end{enumerate}
\section{Emacs Configuration}
\label{sec-3}
The \texttt{.emacs} configuration is simple.  With path to Org-mode's
\texttt{contrib/} repository in your load path, require \texttt{ox-bibtex} as in the
following example.

\lstset{language=Lisp,numbers=none}
\begin{lstlisting}
(add-to-list 'load-path "~/.emacs.d/src/org-mode/contrib/lisp/")
(require 'ox-bibtex)
\end{lstlisting}

\bibliographystyle{plain}
\bibliography{ox-bibtex-example}
% Emacs 24.3.1 (Org mode 8.2.5g)
\end{document}
