emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Luca Ferrari <fluca1978@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: export outside of emacs
Date: Sun, 28 Jul 2019 08:20:54 -0400	[thread overview]
Message-ID: <CAFyQvY05z7f2aeoGP5k-gaN-GvQ=t_b82uf=zEi0cHyGZSk6_g@mail.gmail.com> (raw)
In-Reply-To: <CAKoxK+4Hfb-s2Df+LgOut8TSi=Z2zAeKHQ6xPW+H31rVJr=uwg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

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 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

>

[-- Attachment #2: Type: text/html, Size: 1616 bytes --]

  reply	other threads:[~2019-07-28 12:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-28 10:27 export outside of emacs Luca Ferrari
2019-07-28 12:20 ` Kaushal Modi [this message]
2019-07-29  7:24   ` Luca Ferrari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY05z7f2aeoGP5k-gaN-GvQ=t_b82uf=zEi0cHyGZSk6_g@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fluca1978@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).