emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Omid <omidlink@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Jay Kerns <gjkernsysu@gmail.com>
Subject: Re: How to get BibTeX to work with Org mode LaTeX export?
Date: Sat, 18 May 2013 17:36:43 -0400	[thread overview]
Message-ID: <CADekPiaPwejvJCEh9b-D03VNSr8i+s52Z2j0TKn1gya48ReOpg@mail.gmail.com> (raw)
In-Reply-To: <CAFiLVrY+FcD2__cSdvf9yn9eOUisRPoxGg8n78B66tpmhWf=Bg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]

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 <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
> 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
>

[-- Attachment #2: Type: text/html, Size: 2334 bytes --]

  parent reply	other threads:[~2013-05-18 21:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-18  7:09 How to get BibTeX to work with Org mode LaTeX export? Omid
2013-05-18  8:28 ` Yury Bulka
2013-05-18  8:40   ` Omid
2013-05-18  9:36     ` Jay Kerns
2013-05-18 14:37       ` Nick Dokos
2013-05-18 21:36       ` Omid [this message]
2013-05-18 14:17   ` Nick Dokos
2013-05-18 16:33 ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADekPiaPwejvJCEh9b-D03VNSr8i+s52Z2j0TKn1gya48ReOpg@mail.gmail.com \
    --to=omidlink@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gjkernsysu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).