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



_______________________________________________
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