emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Export LaTeX file to different directory?
Date: Mon, 13 Dec 2010 18:20:50 +0100	[thread overview]
Message-ID: <AANLkTimVF9rdca=+_RFp2jiKFLsyakk1T+A-78xqj=Gq@mail.gmail.com> (raw)
In-Reply-To: <20101213154329.GC283@pc201.uni-germanistik.gwdg.de>

Hi,

On Mon, Dec 13, 2010 at 4:43 PM, Joost Kremers <joostkremers@fastmail.fm> wrote:
> it works if i export a subtree (C-c C-e 1 l), but not if i export a region (set
> mark, highlight region, then C-c C-e l).

I think I had missed your earlier comment about exporting regions.

> also, it doesn't expand a tilde ~ to my
> home directory, so writing
>
> :EXPORT_FILE_NAME: ~/tmp/temp.tex
>
> doesn't do what one would expect. (note that i can't write the full path because
> i switch between linux and OS X, which expand ~ differently: linux to /home/<name>,
> OS X to /Users/<name>.)
>

On a quick look at the docs, I can't find anything. But it does say if
the property EXPORT_FILE_NAME is set, then the exporter will respect
it. So if you could set it with some lisp, then you might have a
working solution.

However you can still make this work but only for sub-trees (not
regions) by using relative paths, as in my example. However this does
require that your org directory is the same with respect to your $HOME
on both systems. So if your org files are in $HOME/org then maybe try
"../tmp/file.tex".

I know either of these are not exactly what you were looking for, but
I am just trying to work around my lack of knowledge about org-mode
internals to work out a possible solution.

> also, i'd like to be able to specify an export directory for the entire org
> file, not just a subtree.

Yes this is what I had mentioned in my first post as a feature that I
would like too (even more awesome if remote directories are permitted
:)). I think right now you can do this by specifying projects in your
init files, not sure though. I think I saw a thread related to that
within the last few of months, maybe worth a look?

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2010-12-13 17:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 10:47 Export LaTeX file to different directory? Joost Kremers
2010-12-13 11:07 ` suvayu ali
2010-12-13 11:34   ` Joost Kremers
2010-12-13 11:52     ` suvayu ali
2010-12-13 15:43       ` Joost Kremers
2010-12-13 17:20         ` suvayu ali [this message]
     [not found] ` <15397.1292255865@gamaville.dokosmarshall.org>
2010-12-13 17:15   ` Joost Kremers
2010-12-13 18:13     ` Jeff Horn
2010-12-13 18:34 ` Richard Lawrence
2010-12-13 18:36   ` Jeff Horn
2010-12-14  4:14     ` Richard Lawrence
2010-12-14  9:11       ` Joost Kremers

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='AANLkTimVF9rdca=+_RFp2jiKFLsyakk1T+A-78xqj=Gq@mail.gmail.com' \
    --to=fatkasuvayu+linux@gmail.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).