From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: customising org-latex-to-pdf-process for bibtex Date: Mon, 28 Feb 2011 18:31:52 -1000 Message-ID: References: <4DCBF55A-B3B5-4268-9456-3F2F7651581D@tsdye.com> <20110225181003.35eab1c7@bhishma.homelinux.net> <877hck5ekx.fsf@ucl.ac.uk> <20110228124536.6d142c10@bhishma.homelinux.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43510 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuHFg-0002k2-Qz for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 23:32:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuHFf-0006um-JQ for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 23:32:00 -0500 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:38749) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PuHFf-0006uN-8S for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 23:31:59 -0500 In-Reply-To: <20110228124536.6d142c10@bhishma.homelinux.net> 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: Suvayu Ali Cc: Org-mode mailing list Aloha Suvayu, I haven't looked into this in depth, but I think your problem might come from loading amssymb and amsmath. LaTeX is complaining that something is already defined; the AMS packages are a prime suspect here. Perhaps you could inhibit amssymb? All the best, Tom On Feb 28, 2011, at 10:45 AM, Suvayu Ali wrote: > 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.