Hi Omid,
On Sat, May 18, 2013 at 4:40 AM, Omid <[email protected]> wrote:
> - The \bibliographystyle and \bibliography commands are at the end of the
> document.
> - The question is about how to get Org mode to do the whole job, as there is
> a command for it which is supposed to do exactly that but it doesn't.
>
Have you tried (something like) the following in your init file?
(setq org-latex-pdf-process (quote ("texi2dvi --pdf --clean --verbose
--batch %f" "bibtex %b" "texi2dvi --pdf --clean --verbose --batch %f"
"texi2dvi --pdf --clean --verbose --batch %f")))
You can read more about this variable (and customize it) with
C-h v org-latex-pdf-process RET
I hope this helps,
--
Jay