From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omid Subject: Re: How to get BibTeX to work with Org mode LaTeX export? Date: Sat, 18 May 2013 17:36:43 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d3808abae1a04dd04e754 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udooj-00030H-PU for emacs-orgmode@gnu.org; Sat, 18 May 2013 17:37:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udooe-0002f0-Bu for emacs-orgmode@gnu.org; Sat, 18 May 2013 17:37:29 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:38376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udooe-0002eg-2w for emacs-orgmode@gnu.org; Sat, 18 May 2013 17:37:24 -0400 Received: by mail-wi0-f181.google.com with SMTP id hi5so1152602wib.8 for ; Sat, 18 May 2013 14:37:23 -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: emacs-orgmode@gnu.org Cc: Jay Kerns --047d7b5d3808abae1a04dd04e754 Content-Type: text/plain; charset=ISO-8859-1 Hi Jay, Thanks for your suggestion, and thank you to all for your help. With a minor modification (changing "--clean" to "--build=local", since otherwise texi2dvi does not see my other included files unless I use "-I") it does solve the problem, except for the efficiency, as Nick pointed out. I think the only alternative would be to call a Makefile through a lisp function in this variable. For some reason, Org export to LaTeX (and full compilation) feels a little sluggish to me; the export to LaTeX (.org => .tex) part must be quick and the rest of compilation doesn't much have to do with Org. I could probably use only one invocation of "texi2dvi --pdf --clean --verbose --batch %f" and treat the PDF as a draft and then every once in while do a full compilation. Do you, or anyone else, have any comments or any other suggestions for speeding things up? -- Omid On Sat, May 18, 2013 at 5:36 AM, Jay Kerns wrote: > Hi Omid, > > On Sat, May 18, 2013 at 4:40 AM, Omid 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 > --047d7b5d3808abae1a04dd04e754 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Jay,

Thanks for your suggestion, and thank you t= o all for your help. With a minor modification (changing "--clean"= ; to "--build=3Dlocal", since otherwise texi2dvi does not see my = other included files unless I use "-I") it does solve the problem= , except for the efficiency, as Nick pointed out.
I think the only alternative would be to call a Makefile through a lisp fun= ction in this variable.
For some reason, Org export to LaTeX (and full c= ompilation) feels a little sluggish to me; the export to LaTeX (.org =3D>= ; .tex) part must be quick and the rest of compilation doesn't much hav= e to do with Org. I could probably use only one invocation of "texi2dv= i --pdf --clean --verbose --batch %f" and treat the PDF as a draft and= then every once in while do a full compilation.

Do you, or anyone else, have any comments or any other suggestions for = speeding things up?

--
Omid
<= br>
On Sat, May 18, 2013 at 5:36 AM, Jay Kern= s <gjkernsysu@gmail.com> wrote:
Hi Omid,

On Sat, May 18, 2013 at 4:40 AM, Omid <omidlink@gmail.com> 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 th= ere 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<= br> --batch %f" "bibtex %b" "texi2dvi --pdf --clean --verbo= se --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

--047d7b5d3808abae1a04dd04e754--