HI Yagnesh,

I have tried with

(setq org-latex-to-pdf-process
      '("pdflatex -interaction nonstopmode %b"
        "/usr/bin/bibtex %b"
        "pdflatex -interaction nonstopmode %b"
        "pdflatex -interaction nonstopmode %b"))

and the problem seems solved.

I can see there are two instances of emacs one is Emacs Snapshot (GTK) and the other is Emacs Snapshot (Client). The GTK is properly producing the pdf with references.

What is the difference between clint and GTK? Which on shall I use and when ?

Thanks a lot. :)

-----------------------------
Sanjib Sikder
Ph.D. Fellow
Chemical Engineering
IIT Bombay






On Thu, Sep 27, 2012 at 9:16 AM, Yagnesh Raghava Yakkala <hi@yagnesh.org> wrote:

Hello Sanjib,

Sanjib Sikder <sanjibju2002@gmail.com> writes:

> HI,
>
> Just now I have found that now I am not even getting the pdf. I am pasting the
> error messages below.
>
> /usr/bin/texi2dvi: Processing /home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex ...
> /usr/bin/texi2dvi: BIBINPUTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: BSTINPUTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: DVIPSHEADERS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: INDEXSTYLE='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: MFINPUTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: MPINPUTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: TEXINPUTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: TFMFONTS='.:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB:/home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB::'
> /usr/bin/texi2dvi: cd /home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.t2d/pdf/build
> /usr/bin/texi2dvi: Cycle 1 for /home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex
> /usr/bin/texi2dvi: Running rm -f TestSciDocu.tex
> /usr/bin/texi2dvi: Running ln -s /home/sanjib/Ubuntu
> One/EmacsFilesUO/OrgFilesUO/PhD_IITB/TestSciDocu.tex
> /usr/bin/texi2dvi: /usr/bin/texi2dvi: Running pdflatex --file-line-error
> </dev/null '
> onstopmode' 'This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
> entering extended mode
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang,
> noh
> yphenation, loaded.
>
> (./TestSciDocu.tex (/usr/share/texmf-texlive/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/share/texmf-texlive/tex/latex/base/size11.clo))
> (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
> (/usr/share/texmf-texlive/tex/latex/base/utf8.def
> (/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
> (/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
> (/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
> (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
> (/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
> (/usr/share/texmf-texlive/tex/latex/base/fixltx2e.sty)
> (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
> (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
> (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
> (/etc/texmf/tex/latex/config/graphics.cfg)
> (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def)))
> (/usr/share/texmf-texlive/tex/latex/tools/longtable.sty)
> (/usr/share/texmf-texlive/tex/latex/float/float.sty)
> (/usr/share/texmf-texlive/tex/latex/wrapfig/wrapfig.sty)
> (/usr/share/texmf-texlive/tex/latex/soul/soul.sty)
> (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
> (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def
> (/usr/share/texmf-texlive/tex/latex/base/ts1enc.dfu)))
> (/usr/share/texmf-texlive/tex/latex/marvosym/marvosym.sty)
> (/usr/share/texmf-texlive/tex/latex/wasysym/wasysym.sty)
> (/usr/share/texmf-texlive/tex/latex/base/latexsym.sty)
> (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
> (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))
> (/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
> (/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
> (/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
> (/usr/share/texmf-texlive/tex/latex/oberdiek/hycolor.sty
> (/usr/share/texmf-texlive/tex/latex/oberdiek/xcolor-patch.sty))
> (/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)
> (/usr/share/texmf-texlive/tex/generic/oberdiek/etexcmds.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty))
> (/usr/share/texmf-texlive/tex/latex/latexconfig/hyperref.cfg)
> (/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty))
> Implicit mode ON; LaTeX internals redefined
> (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
> (/usr/share/texmf-texlive/tex/generic/oberdiek/bitset.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/intcalc.sty)
> (/usr/share/texmf-texlive/tex/generic/oberdiek/bigintcalc.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/pdftexcmds.sty
> (/usr/share/texmf-texlive/tex/generic/oberdiek/ifluatex.sty)
> (/usr/share/texmf-texlive/tex/generic/oberdiek/ltxcmds.sty))))
> (/usr/share/texmf-texlive/tex/generic/oberdiek/atbegshi.sty))
> *hyperref using default driver hpdftex*
> (/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def)
> (/usr/share/texmf-texlive/tex/latex/natbib/natbib.sty)
> No file TestSciDocu.aux.
> (/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
> (/usr/share/texmf-texlive/tex/context/base/supp-pdf.mkii
> [Loading MPS to PDF converter (version 2006.09.02).]
> ) (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
> (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty))
> (/usr/share/texmf-texlive/tex/latex/wasysym/uwasy.fd)
> (/usr/share/texmf-texlive/tex/latex/base/ulasy.fd)
> (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
> (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
>
> Package natbib Warning: Citation `biswas2008generalized' on page 1 undefined
> on
> input line 52.
>
> Package natbib Warning: Citation `cai1992length' on page 1 undefined on input
> l
> ine 53.
>
> (/usr/share/texmf-texlive/tex/latex/base/t1cmtt.fd)
>
> LaTeX Warning: Hyper reference `sec-1' on page 1 undefined on input line 76.
>
> [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
> No file TestSciDocu.bbl.
> [2]
>
> Package natbib Warning: There were undefined citations.
>
> (./TestSciDocu.aux)
>
> LaTeX Warning: There were undefined references.
>
> LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
>
> )pdfTeX warning (dest): name{??} has been referenced but does not exist, repla
> ced by a fixed one
>
> </home/sanjib/.texmf-var/fonts/pk/ljfour/jknappen/ec/ectt1095.600pk> </home/sa
> njib/.texmf-var/fonts/pk/ljfour/jknappen/ec/tcrm1095.600pk>
> </home/sanjib/.texm
> f-var/fonts/pk/ljfour/jknappen/ec/ecbx1095.600pk>
> </home/sanjib/.texmf-var/font
> s/pk/ljfour/jknappen/ec/ecrm1095.600pk>
> </home/sanjib/.texmf-var/fonts/pk/ljfou
> r/jknappen/ec/ecbx1200.600pk>
> </home/sanjib/.texmf-var/fonts/pk/ljfour/jknappen
> /ec/ecbx1440.600pk>
> </home/sanjib/.texmf-var/fonts/pk/ljfour/jknappen/ec/ecrm12
> 00.600pk>
> </home/sanjib/.texmf-var/fonts/pk/ljfour/jknappen/ec/ecrm1728.600pk><
> /usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/
> texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
> Output written on TestSciDocu.pdf (2 pages, 68665 bytes).
> Transcript written on TestSciDocu.log.
> /usr/bin/texi2dvi: 1: cd: can't cd to /home/sanjib/Ubuntu
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Seems problem with texi2dvi, unable to handle spaces in the path ("Ubuntu One"
has space).I haven't followed the discussion. I am not sure why you have texi2dvi in the
processes list.

I set org-latex-to-pdf-process to the following whenever I want bibtex to
process the exported document.

--8<---------------cut here---------------start------------->8---
(setq org-latex-to-pdf-process
      '("pdflatex -interaction nonstopmode %b"
        "/usr/bin/bibtex %b"
        "pdflatex -interaction nonstopmode %b"
        "pdflatex -interaction nonstopmode %b"))
--8<---------------cut here---------------end--------------->8---


Thanks.,
--
ఎందరో మహానుభావులు అందరికి వందనములు
YYR