From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: export outside of emacs Date: Sun, 28 Jul 2019 08:20:54 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000049a1a3058ebccf2b" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49602) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hriAn-0004uh-Lc for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 08:21:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hriAm-00040Q-Mq for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 08:21:09 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:38035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hriAm-0003yx-Er for emacs-orgmode@gnu.org; Sun, 28 Jul 2019 08:21:08 -0400 Received: by mail-lj1-x243.google.com with SMTP id r9so55768824ljg.5 for ; Sun, 28 Jul 2019 05:21:07 -0700 (PDT) In-Reply-To: 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@gnu.org Sender: "Emacs-orgmode" To: Luca Ferrari Cc: emacs-org list --00000000000049a1a3058ebccf2b Content-Type: text/plain; charset="UTF-8" On Sun, Jul 28, 2019, 6:28 AM Luca Ferrari wrote: > Hi all, > how can I run emacs to export org-mode files from outside of Emacs? You just run with --batch. That starts "emacs -Q" in batch mode. If you need to load some elisp at that point to make your export work, you can pack all that in an elisp file and pass that to the --eval switch. Finally use -f switch to specify which function to run to do the export. Here's one example[1] (look at the "emacs-batch" target in there. I would like to provide a Makefile or a script to automatically build > PDFs (LaTeX and Beamer) out of my org file repository. > [1]: https://github.com/kaushalmodi/ox-hugo/blob/master/Makefile > --00000000000049a1a3058ebccf2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Jul = 28, 2019, 6:28 AM Luca Ferrari <fluca1978@gmail.com> wrote:
Hi all,
how can I run emacs to export org-mode files from outside of Emacs?

You just run= with --batch. That starts "emacs -Q" in batch mode. If you need = to load some elisp at that point to make your export work, you can pack all= that in an elisp file and pass that to the --eval switch. Finally use -f s= witch to specify which function to run to do the export.=C2=A0

Here's one example[1] (look at t= he "emacs-batch" target in there.=C2=A0
I would=C2=A0like to provide=C2=A0 a Makefile or a script to auto= matically build
PDFs (LaTeX and Beamer) out of my org file repository.

--00000000000049a1a3058ebccf2b--