Thanks yet again! That makes sense... works now!!
> 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]
(sorry, forgot to mention that I created and copied my files to the latter
directory to try it out)
> #! /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
>
(yes, caught that!)
Thanks again very much, Nick - this had been on my mind for a while.
Stephen
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode