From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Fwd: Citation in org mode does not compile Date: Wed, 03 Oct 2012 03:04:38 -0400 Message-ID: <12297.1349247878@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJJ0c-0008BS-U4 for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:04:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJJ0b-00070r-JT for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:04:42 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:19404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJJ0b-00070j-Cx for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:04:41 -0400 In-Reply-To: Message from Sanjib Sikder of "Thu, 27 Sep 2012 08:13:46 +0530." 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: Sanjib Sikder Cc: emacs-orgmode@gnu.org, "Thomas S. Dye" Sanjib Sikder wrote: > HI, > > (setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f")) > > I have incorporated above line in my .emacs file. Now the C-c C-e p is not showing the error > "Undefined citation" but the problem is still there. In place of refrences, I am getting questions > marks. > I haven't gone through the whole thread, but I did go back and unpacked your files from the original message. The problem there was indeed missing references: your org file contains ,---- | hi \citep{biswas2008generalized} | hello \citep{cai1992length} `---- which did not match anything in the .bib file you attached to that message. When I replaced them with the ones that *did* occur in your bib file, like this: --8<---------------cut here---------------start------------->8--- hi \citep{ashu1995molecular} hello \citep{brush1967} --8<---------------cut here---------------end--------------->8--- and I fixed a couple of things at the beginning of the file: --8<---------------cut here---------------start------------->8--- # -*- mode: org -*- #+TITLE: The Impact of Beer Consumption on Scientific Collaboration --8<---------------cut here---------------end--------------->8--- everything worked fine (assuming that you added a call to bibtex somewhere, either explicitly or by using texi2dvi, as indicated previously). The mode-setting line *has* to be on the first line: you can't leave empty lines before it. The only exception is when the first line is a shebang line, something like #! /bin/bash in a shell script: then the mode-setting line has to be the second line. Emacs imposes this restriction, not org. There has to be a space after the # on that line: otherwise, it's not interpreted as a comment and is included in the export output. That's an org restriction. Specifying the title is good practice, since otherwise the file name becomes the title. Nick