From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: How to invoke org-export externally from outside Emacs
Date: Thu, 25 Sep 2014 13:32:55 +0200 [thread overview]
Message-ID: <86vbocszo8.fsf@somewhere.org> (raw)
In-Reply-To: 20140925090124.GB4563@cardamom.adamsinfoserv.com
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
>> <generation_command_here>
>>
>> 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/
prev parent reply other threads:[~2014-09-25 11:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 8:56 How to invoke org-export externally from outside Emacs Miguel Telleria de Esteban
2014-09-25 9:01 ` Russell Adams
2014-09-25 10:40 ` Miguel Telleria de Esteban
2014-09-25 11:32 ` Fabrice Niessen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vbocszo8.fsf@somewhere.org \
--to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.