From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Subject: Re: batch exporting Date: Tue, 22 Dec 2009 10:20:11 +0100 Message-ID: References: <19518.1261336145@gamaville.dokosmarshall.org> <24751328-FAA8-44CF-896B-BC2552DB9132@gmail.com> <23292.1261405508@gamaville.dokosmarshall.org> <23834.1261415451@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NN0v4-0002YO-Bb for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 04:20:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NN0uz-0002Vl-Nc for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 04:20:41 -0500 Received: from [199.232.76.173] (port=37837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NN0uz-0002Vc-Jt for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 04:20:37 -0500 Received: from lo.gmane.org ([80.91.229.12]:60997) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NN0uz-000753-0p for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 04:20:37 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NN0uv-0007E5-Tz for emacs-orgmode@gnu.org; Tue, 22 Dec 2009 10:20:33 +0100 Received: from ip116-027.hgracht.rwth-aachen.de ([134.130.116.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Dec 2009 10:20:33 +0100 Received: from andrea.crotti.0 by ip116-027.hgracht.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Dec 2009 10:20:33 +0100 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: emacs-orgmode@gnu.org Nick Dokos writes: > andrea wrote: > > > Then prepare a skeleton .emacs just for export and load that: > > emacs --batch --load ~/.skeleton-emacs-for-export ... > Eh eh solved, I was just using the builtin emacs version on snow leopard (22.1), which for some reasons don't work at all.. This is enough, now I'll have to play with getopt a little bit --8<---------------cut here---------------start------------->8--- FILE=$1 ORG="$HOME/.emacs.d/org-mode/lisp/" EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs" if ! test -f $FILE then help else echo "converting file $FILE" $EMACS --batch \ --eval "(add-to-list 'load-path \"$ORG\")" \ --eval "(require 'org)" \ --visit=$FILE --funcall org-export-as-latex-batch fi --8<---------------cut here---------------end--------------->8---