From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: References in Latex Date: Tue, 26 Jul 2011 04:01:35 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlWy5-0000wW-D4 for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:01:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlWy4-0004Dg-Cs for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:01:57 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:62894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlWy4-0004Da-8O for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 22:01:56 -0400 Received: by eyx24 with SMTP id 24so6753641eyx.19 for ; Mon, 25 Jul 2011 19:01:55 -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: Aditya Mandayam Cc: emacs-orgmode@gnu.org On Tue, Jul 26, 2011 at 3:33 AM, Aditya Mandayam wrote: >> Internal references (using \ref{..}) (e.g. to figures, tables, >> equations) are shown just fine here. Whereas for external citations >> (using \cite{..}), it is customary to list them in a bibliography. You >> need to use the bibtex command to achieve that. >> > > does this mean running bibtex on the tex file again? > > incidentally, i used to run rubber with xelatex using the following > commented line at the top of my tex files: > > % rubber: set program xelatex > > now, upon looking at the tex file generated by org, i added the above > line and ran rubber again on the tex file, and the bibliography came > out just fine. > > is this expected? to massage the tex generated by org? or am i seeing > it wrong and it is assumed that i have a tex file in the first place? > You need to customise org-latex-to-pdf-process. This is what I use: (setq org-latex-to-pdf-process '("pdflatex -interaction nonstopmode %b" "/usr/bin/bibtex %b" "pdflatex -interaction nonstopmode %b" "pdflatex -interaction nonstopmode %b")) -- Suvayu Open source is the future. It sets us free.