emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [new exporter] problems exporting mathmode to LaTeX


From: Nicolas Goaziou
Subject: Re: [O] [new exporter] problems exporting mathmode to LaTeX
Date: Wed, 18 Jul 2012 15:46:55 +0200

Hello,

Thomas Holst <address@hidden> writes:

> So here is the next one:
> #+BEGIN_SRC org
>   160\(^\circ\}\nbsp{}C
>   -11^{\circ}\nbsp{}C
> #+END_SRC
>
> With the old exporter this becomes:
> #+BEGIN_SRC latex
>   160\(^\circ\)~C
>   -11$^{\circ}$~C
> #+END_SRC
> in LaTeX. Which looks well in pdf.
>
> With the new exporter it becomes:
> #+BEGIN_SRC latex
>   160\(^\circ\)~C
>   -11$^{\mathrm{\^{}}}$~C
> #+END_SRC
> in LaTeX. Where the second construct obviously is not what is expected
> and looks totaly wrong in pdf.

I don't know how you obtain this result, you may have settings different
than mine.

Anyway, the new exporter doesn't change anything with regards to src
blocks. It basically runs `org-export-blocks-preprocess' in a temporary
clone of the buffer being exported and then parses the obtained
expansion.

If you want to have a glimpse at what is really parsed, you can evaluate
the following snippet in the buffer you want to export:

  (let ((org-current-export-file (current-buffer)))
    (org-export-blocks-preprocess))

It may help to understand what is going on.


Regards,

-- 
Nicolas Goaziou



reply via email to

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