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: Mon, 31 Aug 2009 00:38:37 -0400 Message-ID: <3757.1251693517@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> <24965.1251685620@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mhygr-00078T-6W for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 00:40:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mhygm-00077Y-MR for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 00:40:24 -0400 Received: from [199.232.76.173] (port=50536 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mhygm-00077V-BZ for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 00:40:20 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:28062) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mhygl-0002Lu-VO for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 00:40:20 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KP800H5E4W5SC70@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 23:38:29 -0500 (CDT) In-reply-to: Message from Nick Dokos of "Sun, 30 Aug 2009 22:27:00 EDT." <24965.1251685620@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: Stephen Tucker , emacs-orgmode@gnu.org Nick Dokos wrote: > 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): > > #! /bin/bash > > orglib=/Applications/Emacs.app/Contents/Resources/lisp/org > emacs --batch \ > --eval "(add-to-list 'load-path \"$orglib\")" \ # need a backslash here. > --load=$orglib/org.elc \ > --eval "(setq org-export-headline-levels 2)" \ > --visit=$1 --funcall org-export-as-latex-batch > > ... and I just noticed that I missed a backslash on the added line. Sorry about that. Nick