emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [PATCH] IMPORTANT: (possibly) incompatible Change


From: Mark Elston
Subject: Re: [Orgmode] [PATCH] IMPORTANT: (possibly) incompatible Change
Date: Thu, 01 Apr 2010 19:47:58 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

It appears that the cadr -> cdr change is also necessary in org-latex.el
(at least for Emacs 22.3).

Mark

On 4/1/2010 6:29 PM, Eric Schulte wrote:
After updating to the current git head, I have to make the following
changes for latex image generation to work.

diff --git a/lisp/org.el b/lisp/org.el
index dc45871..443f881 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2936,7 +2936,7 @@ appears on the page."
 ;; when formatting latex fragments.  Originally it was part of the
 ;; LaTeX exporter, which is why the name includes "export".
 (defcustom org-export-latex-default-packages-alist
-  '(("AUTO" . "inputenc")
+  '(("" . "inputenc")
     ("T1"   . "fontenc")
     (""     . "graphicx")
     (""     . "longtable")
@@ -15247,9 +15247,9 @@ Some of the options can be changed using the variable
                  (concat "\n"
                          (mapconcat (lambda(p)
                                       (if (equal "" (car p))
-                                          (format "\\usepackage{%s}" (cadr p))
+                                          (format "\\usepackage{%s}" (cdr p))
                                         (format "\\usepackage[%s]{%s}"
-                                                (car p) (cadr p))))
+                                                (car p) (cdr p))))
                                     (append
                                      org-export-latex-default-packages-alist
                                      org-export-latex-packages-alist)






The "AUTO" change is because the AUTO.def file is not present on my
fairly complete Ubuntu texlive latex install

: ERROR: LaTeX Error: File `AUTO.def' not found.

The other change is because `org-export-latex-default-packages-alist' is
now a simple cons cell rather than a list so cadr was throwing errors.

It seems to me these may be general problems, not just specific to my
setup.

Best -- Eric





reply via email to

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