From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [PATCH] IMPORTANT: (possibly) incompatible Change Date: Thu, 01 Apr 2010 19:29:28 -0600 Message-ID: <87wrwqlk07.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxVhY-0007i9-JT for emacs-orgmode@gnu.org; Thu, 01 Apr 2010 21:29:36 -0400 Received: from [140.186.70.92] (port=37204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxVhX-0007gv-7q for emacs-orgmode@gnu.org; Thu, 01 Apr 2010 21:29:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxVhV-0008Pa-09 for emacs-orgmode@gnu.org; Thu, 01 Apr 2010 21:29:35 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:59193) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxVhU-0008PS-N2 for emacs-orgmode@gnu.org; Thu, 01 Apr 2010 21:29:32 -0400 Received: by pwi2 with SMTP id 2so1899861pwi.0 for ; Thu, 01 Apr 2010 18:29:31 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Wed, 31 Mar 2010 00:24:04 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org Mode --=-=-= After updating to the current git head, I have to make the following changes for latex image generation to work. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=latex-packages-alist-fix.patch 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 Carsten Dominik writes: > Dear all, > > I have just checked in an important change - if you use LaTeX > export, you need to be aware of it. > > 1. Org contains now a much better system for handling special entities > that are written like LaTeX macros, for example \therefore, > \emptyset, > etc. I will write more about this in the release notes for 6.35. > But > already now thanks go to Ulf Stegemann without whom this would not > have happened. > > 2. I could no longer keep the old setup for LaTeX export in > org-export-latex-classes. The disadvantage was that whenever you > needed to make changes to the header, you would fix the value of > this > variable so that any changes I'd make in the future would not be > visible > to you. > > The way this is solved now is (excerpt from the upcoming release > notes) > > ----------------------------------------------------------------------------- > * =org-export-latex-classes= no longer should be customized for packages > > The HEADER part of this variable should now only contain the > documentclass macro, nothing else - at least normally. All the > package calls via usepackage should go into > org-export-latex-packages-alist. I moved all the default packages > that into a new variable org-export-latex-default-packages-alist. > This will allow me to add more packages (as needed) in the > future, withour requiring you to erase and then redo your > configuration of org-export-latex-classes. > > So if you have customized this variable, please remove once more > (hopefully for the last time) your customization, so that it can > revert to its now much simpler default value. Put all your > package definitions into org-export-latex-packages-alist. > I hope this works, and we will not get conflicts because of the > sequence in which packages are called. If there are problems, > please let me know so that we can find a solution. > ----------------------------------------------------------------------------- > > I have not yet put this onto the master branch, but I will soon. > If you want to help testing this new setup, please check out the branch > new-entity-support from the git repo and let me know if you run into any > problems. > > Thanks! > > - Carsten (and Ulf) > > > > _______________________________________________ > 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--