Hi,

the docstring of org-export-as-latex contains incorrectly escaped \
characters resulting in two passages being rendered like
^Hegin{document}...^Hnd{document}.

The attached patch should fix the problem (The patch is against the
org-mode version included in GNU Emacs).

Emacs  : GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of
2010-05-07 on azurit
Package: Org-mode version 6.35i
--- org-latex.el	2010-05-09 14:06:43.000000000 +0200
+++ org-latex.el	2010-05-07 16:41:05.000000000 +0200
@@ -580,8 +580,8 @@
 buffer.  If TO-BUFFER is the symbol `string', don't leave any
 buffer behind but just return the resulting LaTeX as a string.
 When BODY-ONLY is set, don't produce the file header and footer,
-simply return the content of \\begin{document}...\\end{document},
-without even the \\begin{document} and \\end{document} commands.
+simply return the content of \begin{document}...\end{document},
+without even the \begin{document} and \end{document} commands.
 when PUB-DIR is set, use this as the publishing directory."
   (interactive "P")
   (run-hooks 'org-export-first-hook)
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to