From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Niessen Subject: Re: How to invoke org-export externally from outside Emacs Date: Thu, 25 Sep 2014 13:32:55 +0200 Message-ID: <86vbocszo8.fsf@somewhere.org> References: <20140925105626.14caee18@patti> <20140925090124.GB4563@cardamom.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Russell Adams wrote: > On Thu, Sep 25, 2014 at 10:56:26AM +0200, Miguel Telleria de Esteban wrote: >> I am using org-mode more and more everyday, congrats to the community for >> such a great program!! >> >> I would like to automate the generation of PDF/HTML/ODT... thorough a >> command line with a makefile. Something like: >> >> file.pdf: file.org >> >> >> Is there a way to externally launch, let's say org-latex-export-to-pdf from >> outside Emacs?. Maybe through a script. >> >> Probably this is more an Emacs-list question than an org-mode one but any >> suggestion here will be welcome. >> >> Cheers and thanks in advance for any suggestion. > > I use a Makefile to export to latex, then I use pdflatex to compile > the final version. Org does the same thing if you ask it to go > straight to PDF, but this lets me include my revision number. > > This also launches my pdf viewer (xpdf), and works for every .org file > in the directory. FWIW, I've written small standalone scripts (such as org2pdf, org2html, org2odt, etc.) to automate such tasks. If you're interested, have a look at https://github.com/fniessen/orgmk. Best regards, Fabrice -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/