Re: [Orgmode] Re: Export LaTeX file to different directory?
Thanks, everyone, at least now I know there's no easy and straightforward way to do this. May I suggest a feature addition? ;-) On Mon, Dec 13, 2010 at 08:14:11PM -0800, Richard Lawrence wrote: Yes, there is a Publish current file option in the export dispatcher, though I've never used it myself. Using this option with the right combination of :base-directory, :publishing-directory, and :exclude/:include in org-publish-project-alist might do the trick, depending on the OP's exact scenario. TBH it really sounds like too much configuration for the occasional export that I do... So the next time the need occurs, I'll have forgotten how I did it. But because WHEN I need to export stuff, it's usually more than a single region, it's annoying that the export to buffer, save to temp dir, run latex-sequence cannot be automated... J. -- Joost Kremers Life has its moments ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Export LaTeX file to different directory?
Hi Joost, If I export (part of) an org-mode file to LaTeX, the LaTeX file is created in the same directory as the org-mode file. Is there a way to specify the file should go somewhere else? Googling and looking through the manual didn't give me anything concrete. There is apparently a property EXPORT_FILE_NAME, but setting this doesn't seem to have any effect. (Though I may be using it wrong, there wasn't any description or example of it in the manual... Plus, I'd like to be able to specify just the export directory, not necessarily the file name as well.) As far as I know (though others may know better) this isn't possible using per-file configuration with the simple export functions (C-c C-e l and friends). It *is* possible through the publishing framework, though. When you define a publishing target in org-publish-project-alist, you can specify both the :base-directory and :publishing-directory options. For example: (setq org-publish-project-alist '((orgfiles :base-directory ~/org :publishing-directory ~/tmp :publishing-function org-publish-org-to-html :base-extension org$))) See the documentation for Publishing. This approach, however, requires you to do some Elisp customization, and it requires you to statically define your source and destination directories. You may need something more flexible or configurable on a per-file (or per-export, even) basis. The only solution I know of there is to export to a temporary buffer, then save that buffer in the location you want -- though of course this requires interaction from you. If others know of a middle road between using the publishing framework and just doing C-c C-e L C-x C-s every time, I would be interested in hearing about it too. (If there isn't a middle road, consider this my +1 on adding this feature.) Best, Richard ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Export LaTeX file to different directory?
On Mon, Dec 13, 2010 at 1:34 PM, Richard Lawrence richard.lawre...@berkeley.edu wrote: When you define a publishing target in org-publish-project-alist, you can specify both the :base-directory and :publishing-directory options. For example: (setq org-publish-project-alist '((orgfiles :base-directory ~/org :publishing-directory ~/tmp :publishing-function org-publish-org-to-html :base-extension org$))) Ah... I'm not sure how that'd work. If you want to publish a single project, one that dumps all the files in the tmp directory, it would publish all files in the source directory (definitely not what the OP had in mind, I think). If you publish only this file, it might work. I'm away from my computer with emacs at the moment, so I can't test it out. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Export LaTeX file to different directory?
Jeff Horn jrhorn...@gmail.com writes: If you want to publish a single project, one that dumps all the files in the tmp directory, it would publish all files in the source directory (definitely not what the OP had in mind, I think). If you publish only this file, it might work. Yes, there is a Publish current file option in the export dispatcher, though I've never used it myself. Using this option with the right combination of :base-directory, :publishing-directory, and :exclude/:include in org-publish-project-alist might do the trick, depending on the OP's exact scenario. Richard ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode