From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: customising org-latex-to-pdf-process for bibtex Date: Mon, 28 Feb 2011 12:45:36 -0800 Message-ID: <20110228124536.6d142c10@bhishma.homelinux.net> References: <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> <20110225181003.35eab1c7@bhishma.homelinux.net> <877hck5ekx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu9zW-0002hA-9n for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 15:46:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu9yU-0005g1-Ge for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 15:45:47 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:46457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu9yU-0005fu-C3 for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 15:45:46 -0500 Received: by fxm5 with SMTP id 5so4835920fxm.0 for ; Mon, 28 Feb 2011 12:45:44 -0800 (PST) In-Reply-To: <877hck5ekx.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: Org-mode mailing list Hi Eric, On Mon, 28 Feb 2011 16:06:06 +0000 Eric S Fraga wrote: > You could try creating a shell script (such as attached) which invokes > both pdflatex and bibtex and tell org to use that command for > exporting to pdf instead. Then all the output should come out to the > screen. > > I've tried this and all the output (3 pdflatex and 1 bibtex > invocations) comes out into the =*Org PDF Latex Output*= buffer. > Thank you for this nice idea. I tried it, but every time I (without the -interaction nonstopmode option) the pdflatex process stops at this: > ! LaTeX Error: Command \iint already defined. > Or name \end... illegal, see p.192 of the manual. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H for immediate help. > ... > > l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} > > ? > ! Emergency stop. > ... > > l.506 ...d{\iint}{\DOTSI\protect\MultiIntegral{2}} > > ! ==> Fatal error occurred, no output PDF file produced! > Transcript written on msthesis.log. The amsmath package is loaded before this. In my preamble in the org file I have the following LaTeX options: > #+LaTeX_HEADER: \usepackage{cancel} > #+LaTeX_HEADER: \usepackage{amsmath} > #+LaTeX_HEADER: \usepackage{mathtools} > #+LaTeX_HEADER: \numberwithin{equation}{section} > #+LaTeX_CLASS_OPTIONS: [colorlinks] > # #+LaTeX_HEADER: \definecolor{myblue}{rgb}{0.235,0.263,0.867} > # #+LaTeX_HEADER: \definecolor{mygreen}{rgb}{0.012,0.467,0.059} In the tex file this exports to: > % Created 2011-02-28 Mon 12:34 > \documentclass[colorlinks]{article} > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{fixltx2e} > \usepackage{graphicx} > \usepackage{longtable} > \usepackage{float} > \usepackage{wrapfig} > \usepackage{soul} > \usepackage{textcomp} > \usepackage{marvosym} > \usepackage{wasysym} > \usepackage{latexsym} > \usepackage{amssymb} > \usepackage{hyperref} > \tolerance=1000 > \usepackage{cancel} > \usepackage{amsmath} > \usepackage{mathtools} > \numberwithin{equation}{section} > \providecommand{\alert}[1]{\textbf{#1}} At first I thought its a problem with the mathtools package, but removing it doesn't help either. Is this a problem with my Latex installation? I tried both my distribution provided texlive-2007 and texlive-2010 from the CTAN archives with the same result. If its a problem with my texlive installation, do you have any ideas where I can seek help? I'm rather pressed for time. Thanks a lot for being so patient. :) -- Suvayu Open source is the future. It sets us free.