Hi Dokos, I am sorry for the mistake, but what happened, in my original files, the references are all correct but when I thought of giving examples in the email, I did not put correct references. Anyways, thanks for your valuable input. ----------------------------- *Sanjib Sikder *Ph.D. Fellow Chemical Engineering IIT Bombay* * On Wed, Oct 3, 2012 at 12:34 PM, Nick Dokos wrote: > 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 > > >