emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Re: [Orgmode] customising org-latex-to-pdf-process for bibtex


From: Thomas S. Dye
Subject: [O] Re: [Orgmode] customising org-latex-to-pdf-process for bibtex
Date: Mon, 28 Feb 2011 18:31:52 -1000

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 <address@hidden> 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 <return>  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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]