From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export (as latex) a large number of org files in a directory Date: Sun, 30 Aug 2009 22:27:00 -0400 Message-ID: <24965.1251685620@gamaville.dokosmarshall.org> References: <894242.15667.qm@web39706.mail.mud.yahoo.com> <31875.1251644646@gamaville.dokosmarshall.org> <813754.54567.qm@web39708.mail.mud.yahoo.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhwdA-0002iD-J9 for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:28:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhwd6-0002fQ-2y for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:28:28 -0400 Received: from [199.232.76.173] (port=60999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhwd5-0002fM-Ru for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:28:23 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:55439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhwd5-0006Ao-FO for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 22:28:23 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KP700CJVYSSFC0B@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 21:26:52 -0500 (CDT) In-reply-to: Message from Stephen Tucker of "Sun, 30 Aug 2009 12:11:54 PDT." <813754.54567.qm@web39708.mail.mud.yahoo.com> 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: Stephen Tucker Cc: emacs-orgmode@gnu.org Stephen Tucker wrote: > Hi Nick, > thanks for the response! Actually in the code that I had pasted, the > emacs --batch call is all on one line (so no need to escape newlines > there). I tried your code with both > orglib=/Applications/Emacs.app/Contents/Resources/lisp/org > and > orglib=$HOME/elisp/org-mode/lisp You need the former - the latter is where I keep my org.el[c] > but got > Cannot open load file: org-macs > in both cases I also added a line, > --eval "(load \"/Applications/Emacs.app/Contents/Resources/lisp/org/org.elc\")" \ > to replace the --load option but same deal. > I do in fact have org-macs in my 'orglib' directories so I tried > loading them explicitly (with multiple --load specifications), but it > still doesn't work (Still "Cannot open load file" pointing to some org > file or subst-ksc, depending on how many or in what order org .el > files are loaded). Any more ideas? > The problem is probably that --batch implies -q, so .emacs is *not* loaded and you don't get your load-path customizations. Maybe something like this will work (the quoting gets hairy, so pay close attention to all the details): --8<---------------cut here---------------start------------->8--- #! /bin/bash orglib=/Applications/Emacs.app/Contents/Resources/lisp/org emacs --batch \ --eval "(add-to-list 'load-path \"$orglib\")" --load=$orglib/org.elc \ --eval "(setq org-export-headline-levels 2)" \ --visit=$1 --funcall org-export-as-latex-batch --8<---------------cut here---------------end--------------->8--- HTH, Nick