Hi Carsten,

It seems that a minor old bug in LaTeX exporter was exposed recently by
your timestamp change.  When exporting a simple Org file that contains
just the following two lines to LaTeX format, I got an error message
saying "Invalid use of `\' in replacement text":

* DONE Test
  CLOSED: [2009-04-14 Tue 20:12]

A patch is attached at the end of this email.  Please let me know if you
see any problem with the fix.

Thanks,
Baoqiu

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 41f0e24..da80caf 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1096,7 +1096,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		    ".*" ; including the time stamp....
 		    )))
     (while (re-search-forward re nil t)
-      (replace-match (format "\\\\texttt{%s}" (match-string 0)) t))))
+      (replace-match (format "\\texttt{%s}" (match-string 0)) t t))))
 
 (defun org-export-latex-fixed-width (opt)
   "When OPT is non-nil convert fixed-width sections to LaTeX."
_______________________________________________
Emacs-orgmode mailing list
Remember: 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