emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: "Martin Schöön" <martin.schoon@gmail.com>,
	org-mode <emacs-orgmode@gnu.org>,
	"Sharon Kimble" <boudiccas@skimble.plus.com>
Subject: Re: First attempt at exporting to PDF.
Date: Sat, 3 May 2014 16:11:33 -0400	[thread overview]
Message-ID: <CAJ51ETr=Uisv3VJjk=AKr=i3gh8VC+TC4Sm9AV2diMG_0Jcq=g@mail.gmail.com> (raw)
In-Reply-To: <m2lhuiws1y.fsf@tsdye.com>

[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

you should be able to get references with \cite{key1} and \cite{key2}.
where key1 and key2 are bibtex keys in a bibtex file called references.bib.

you need at the end of your org-file where you want the bibliography to
appear:

\bibliographystyle{unsrt}
\bibliography{references}


In your init file, you may need to do this:
;; for minted you must run latex with -shell-escape because it calls
pygmentize as an external program
(setq org-latex-pdf-process
      '("pdflatex -shell-escape -interaction nonstopmode -output-directory
%o %b"
        "bibtex %b"
        "pdflatex -shell-escape -interaction nonstopmode -output-directory
%o %b"
        "pdflatex -shell-escape -interaction nonstopmode -output-directory
%o %b"))

I do not think org-mode runs bibtex by default. After that you should see
the references.

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sat, May 3, 2014 at 4:00 PM, Thomas S. Dye <tsd@tsdye.com> wrote:

> Aloha Sharon,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
> >> I have never tried what you are trying to do with references so
> >> someone
> >> else must step in and help you there.
> >
> > Just hope someone steps up to the plate?
>
> This was written for the old exporter, but it might be useful to you:
>
> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17
>
> Also, the BibTeX entry in your original post was mal-formed.  It lacked
> a key and the author field looked wrong, IIRC.  You might want to check out
> the BibTeX file format:
>
> http://www.bibtex.org/Format/
>
> hth,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>
>

[-- Attachment #2: Type: text/html, Size: 2847 bytes --]

  reply	other threads:[~2014-05-03 20:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 15:55 First attempt at exporting to PDF Sharon Kimble
2014-05-03 17:32 ` Martin Schöön
2014-05-03 19:05   ` Sharon Kimble
2014-05-03 20:00     ` Thomas S. Dye
2014-05-03 20:11       ` John Kitchin [this message]
2014-05-04  8:05         ` Sharon Kimble
2014-05-03 17:41 ` Nick Dokos
2014-05-05 16:47 ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ51ETr=Uisv3VJjk=AKr=i3gh8VC+TC4Sm9AV2diMG_0Jcq=g@mail.gmail.com' \
    --to=jkitchin@andrew.cmu.edu \
    --cc=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=martin.schoon@gmail.com \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).