emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: Re: Latex exporting
Date: Thu, 25 Sep 2008 00:42:45 -0500	[thread overview]
Message-ID: <20080925054245.GJ11943@thinkpad.adamsinfoserv.com> (raw)
In-Reply-To: <loom.20080924T004517-271@post.gmane.org>

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

On Wed, Sep 24, 2008 at 12:52:46AM +0000, Frank Dekens wrote:
> 
> All that to say: Can you please post a copy of that makefile, because I
> have no idea how to invoke all those commands that way.

Poof! And there was a Makefile, and it was good.

Place it in the directory with the org file you want to export, and
run make. It grabs *.org.

Enjoy!

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

[-- Attachment #2: Makefile --]
[-- Type: text/plain, Size: 539 bytes --]

.PHONY: all clean

OBJS := $(patsubst %.org, %.pdf, $(wildcard *.org))

CRAP := $(patsubst %.org, %.pdf, $(wildcard *.org))
CRAP += $(patsubst %.org, %.aux, $(wildcard *.org))
CRAP += $(patsubst %.org, %.log, $(wildcard *.org))
CRAP += $(patsubst %.org, %.out, $(wildcard *.org))
CRAP += $(patsubst %.org, %.toc, $(wildcard *.org))

all: $(OBJS)

clean:
	rm -f $(CRAP)

%.tex: %.org
	emacs --eval '(setq enable-local-variables :all)' \
		$< \
		-f org-export-as-latex \
		-f save-buffers-kill-emacs

%.pdf: %.tex
	pdflatex $<
	pdflatex $<

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2008-09-25  5:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 23:46 Latex exporting Russell Adams
2008-08-06 21:32 ` Russell Adams
2008-08-07  4:08   ` Daniel Goldin
2008-09-10 18:54   ` Frank Dekens
2008-09-10 22:32     ` Russell Adams
2008-09-24  0:52       ` Frank Dekens
2008-09-25  5:42         ` Russell Adams [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

  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=20080925054245.GJ11943@thinkpad.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.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 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).