From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: First attempt at exporting to PDF. Date: Sat, 3 May 2014 16:11:33 -0400 Message-ID: References: <87wqe2eu16.fsf@skimble.plus.com> <877g621y4e.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b111dd92bbb0704f884814b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WggHe-0006YW-3v for emacs-orgmode@gnu.org; Sat, 03 May 2014 16:11:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WggHX-00010i-9Y for emacs-orgmode@gnu.org; Sat, 03 May 2014 16:11:42 -0400 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:54178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WggHW-00010V-U7 for emacs-orgmode@gnu.org; Sat, 03 May 2014 16:11:35 -0400 Received: by mail-pd0-f174.google.com with SMTP id w10so5202633pde.19 for ; Sat, 03 May 2014 13:11:33 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: =?UTF-8?B?TWFydGluIFNjaMO2w7Zu?= , org-mode , Sharon Kimble --047d7b111dd92bbb0704f884814b Content-Type: text/plain; charset=UTF-8 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 wrote: > Aloha Sharon, > > Sharon Kimble 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 > > --047d7b111dd92bbb0704f884814b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
you should be able to get referen= ces with \cite{key1} and \cite{key2}. where key1 and key2 are bibtex keys i= n 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}
<= br>
In your init file, you may need to do this:
;; for minted y= ou must run latex with -shell-escape because it calls pygmentize as an exte= rnal program
(setq org-latex-pdf-process
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '("p= dflatex -shell-escape -interaction nonstopmode -output-directory %o %b"= ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "bibtex %b"
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "pdflatex -shell-escape -in= teraction nonstopmode -output-directory %o %b"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "pdflatex -shell-escape -in= teraction nonstopmode -output-directory %o %b"))

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

John

-----------------------------------
J= ohn Kitchin
Associate Professor
Doherty Hall A207F
Department of C= hemical 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@s= kimble.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-expor= t.html#sec-17

Also, the BibTeX entry in your original post was mal-formed. =C2=A0It lacke= d
a key and the author field looked wrong, IIRC. =C2=A0You might want to chec= k out
the BibTeX file format:

http://www.bibt= ex.org/Format/

hth,
Tom

--
Thomas S. Dye
http://www.tsdye.com=


--047d7b111dd92bbb0704f884814b--